_____________________________________________________________________
724-746-5500 | blackbox.com
Page 251
There’s good documentation about using the
iptables
command at the Linux
netfilter
website
http://netfilter.org/documentation/index.html
. There are also many high-‐quality tutorials and HOWTOs available
via
the
netfilter
website, in particular peruse the tutorials listed on the
netfilter
HOWTO page.
15.5 Modifying SNMP configuration
15.5.1
/etc/config/snmpd.conf
The
net-‐snmpd
is an extensible SNMP agent which
responds to SNMP queries for management information from SNMP
management software. Upon receiving a request, it processes the request(s), collects the requested information and/or
performs the requested operation(s) and returns the information to the sender.
This includes built-‐in support for a wide range of MIB information modules, and can be extended using dynamically
loaded modules, external scripts and commands.
snmpd
when enabled should run with a default configuration. You can
customize its behavior via the options in
/etc/config/snmpd.conf.
To change standard system information such as system contact, name, and location, edit
/etc/config/snmpd.conf
file
and locate the following lines:
sysdescr
"
Black Box
"
syscontact
root <root@localhost>(configure /etc/default/snmpd.conf)
sysname
Not defined (edit /etc/default/snmpd.conf)
syslocation
Not defined (edit /etc/default/snmpd.conf)
Simply change the values of
sysdescr, syscontact, sysname
and
syslocation
to the desired settings and restart
snmpd
.
The
snmpd.conf
provides is extremely powerful and too flexible to completely cover here. The configuration file itself is
commented extensively and good documentation is available at the
net-‐snmp
website
http://www.net-‐snmp.org
,
specifically:
Man Page:
http://www.net-‐snmp.org/docs/man/snmpd.conf.html
FAQ:
http://www.net-‐snmp.org/docs/FAQ.html
Net-‐SNMPD Tutorial:
http://www.net-‐snmp.org/tutorial/tutorial-‐5/demon/snmpd.html
15.5.2 Adding more than one SNMP server
To add more than one SNMP server for alert traps add the first SNMP server using the Management Console (refer
Chapter 7) or the command line
config
tool. Secondary and any further SNMP servers are added manually using
config.
Log in to the
console server
’s command line shell as root or an admin user. Refer back to the Management Console UI or
user documentation for descriptions of each field.
To set the Manager Protocol field:
config -‐-‐set config.system.snmp.protocol2=UDP
or
config -‐-‐set config.system.snmp.protocol2=TCP
To set the Manager Address field:
config -‐-‐set config.system.snmp.address2=w.x.y.z
.. replacing
w.x.y.z
with the IP address or DNS name.