Thursday, May 22, 2014

Vyatta - How to enable SNMP



Go to Vyatta firewall and switch to configure mode

configure
set service snmp community GodBless authorization ro
set service snmp description "Vyatta FW-LoadBalancer"
set service snmp location HellOnEarth
set service snmp contact handsome@mydomain.vn
set service snmp listen-address 192.168.1.2
set service snmp listen-address 192.168.1.2 port 161
set service snmp trap-target 192.20.5.201
commit
save

Have a look at the configuration
cat /etc/snmp/snmpd.conf

vyatta@vyatta# show service snmp
 community GodBless {
     authorization ro
 }
 contact handsome@mydomain.vn
 description "Vyatta FW-LoadBalancer"
 listen-address 192.168.1.2 {
     port 161
 }
 location HellOnEarth

vyatta@vyatta:~$ netstat -ntlp
tcp 0 0 127.0.0.1:199 0.0.0.0:* LISTEN - SNMPD
snmp running on port 161 and warpped around by port 199 which is SmuxC Protocol: http://uw714doc.sco.com/en/SDK_netapi/smuxC.works.html


0 comments:

Post a Comment