I'm still still struggling with this. Using wireshark I can see serverA 
receiving snmp traps. I want to forward the traps to serverB.

Both serverA and serverB have no rules for iptables, ie:
# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination


serverA = 192.168.1.5
serverB = 192.168.1.3


On serverA I have:
/etc/snmp/snmpd.conf:
# cat snmpd.conf
rocommunity public
rocommunity public localhost
trapsink  192.168.1.3 public 162
trap2sink  192.168.1.3 public 162
trapcommunity  public
master yes


/etc/snmp/snmptrapd.conf:
# cat snmptrapd.conf
disableAuthorization yes
authCommunity net public
forward default udp:192.168.1.3:162 public


If snmpd and snmptrapd are not running ports 161 and 162 are not open. 
Once I start snmpd and snmptrapd 161 and 162 are open. That's good.
If I stop and start snmpd, I DO see coldStart traps on serverB, so I'm 
not sure forwarding is really my problem.


If I run: # snmptrapd -f -Le -c /etc/snmp/snmptrapd.conf
NET-SNMP version 5.3.2.2 AgentX subagent connected
NET-SNMP version 5.3.2.2

That's all  I ever see on the screen. Should I see more? Should I see 
snmptrapd processing the traps that wireshark sees hitting the box? If 
so, any thoughts on why snmptrapd is not processing?

Any suggestions are appreciated!!!!

Thanks,
James

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to