Re: SNMP Informs sent from snmpd do not work if firewall is enabled on the machine

Xiang Li <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 6/1/2011 10:58 PM, Dattaram Porob wrote:

> In case of a v2 inform, the Inform message is sent by the agent
> (net-snmp 5.6.1) and received by the receiver but the ACK sent by the
> receiver does not reach the agent since it is blocked by the firewall.
> This results in the agent sending the Inform message again (n times
> depending on the number of retries configured) and so there are
> duplicate Informs at the receiver.
>
> In case of a v3 Inform, before sending the actual Inform message, the
> agent tries to discover the engineId of the receiver. The response to
> the discover is not received by the agent and so it is not be able to
> send out the Inform message itself.
>
> We are using 'iptables' as the firewall on the linux machine where the
> agent is running. The problem is that the Inform response is always on
> a different UDP port, so it is not possible to configure a specific
> port to allow incoming traffic.
>

You can try using  'clientaddr' to force traps using a fixed local port.
snmp.conf

clientaddr [<transport-specifier>:]<transport-address>

    specifies the source address to be used by command-line applications
    when sending SNMP requests. See /snmpcmd
    <http://www.net-snmp.org/docs/man/snmpcmd.html>(1)/ for more
    information about the format of addresses. 

    This value is also used by *snmpd* when generating notifications. 


This way, it is  possible to configure a specific port to allow incoming 
traffic.





-- 
Xiang Li
http://www.champnms.com

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.