On Thu, 15 Sep 2005 14:04:23 +0200 mark wrote:
MK> Currently the agent (5.1) on windows system which have multiple IP
MK> addresses returns a response for which the source address is different
MK> then the destination address in the request message (using udp ipv4), this
MK> creates problems with firewalls.
MK> 
MK> 1. Is there anything I've missing? Was it changed in 5.2.x ?

There is a client-addr token, which will let you pick the address used for
responses (instead of letting the OS pick it). But nothing like using the
destination address.

You might also try explicitly listing all listening addresses (eg
'udp:192.168.1.1,udp:192.168.1.2') to listen on, and see if that changes the
behavior (it will be OS dependent).

MK> 2. If this is the designed behaviour, what would be the best way to change 
MK> it? Idealy I would like to pass to the UDP transport layer a source
MK> address as well as a destination, but I can't find an appropriate API to
MK> use.

I think you'd have to have a socket bound to each IP you wanted to use, and
send the packet on that socket. The OS would do the rest.

MK> 3. What about traps? currently I don't need to support them, but I would 
MK> like to get your opinions whether there needs to be a "source address" 
MK> optional token for the trap destination configuration.

There is the client address, but that's global, not per target. Probably
wouldn't be too hard to do though.

-- 
NOTE: messages sent directly to me, instead of the lists, will be deleted
      unless they are requests for paid consulting services.

Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to