Linux Netfilter discussions
 help / color / mirror / Atom feed
* Need to translate source IP prior to routing for SNMP issue
@ 2010-12-09 15:55 Matty Sarro
  2010-12-09 19:20 ` fuzzy_4711
  0 siblings, 1 reply; 2+ messages in thread
From: Matty Sarro @ 2010-12-09 15:55 UTC (permalink / raw)
  To: netfilter

Hey everyone! I am running into a rather interesting issue and was
hoping someone may be able to help. We are running a custom SNMP
daemon on a server (its part of a vendor application). The servers are
all multihomed, with one NIC on a service/public facing subnet, and
the other NIC on a management subnet. We need all SNMP traffic to use
the management subnet.

We have set up 2 routing tables in IPROUTE2 to ensure all traffic goes
out the interface that it comes in. It's tested, and everything is
working except for SNMP. What happens with snmp is the snmp manager
sends a request (for example, GET). The request is received by the
SNMP daemon on the target server. The target server then generates a
reply, but when it does, it uses the IP address of the service
interface, not the management interface. We have reconfigured the
application, but its still insisting on using that IP. The reply
packet is then routed out the service interface because of the source
IP. I have numerous packet traces verifying that this is the behavior.

So what I need is the source IP address to be re-written from the
service IP, to the management ip, so it can be routed out the correct
interface. This ONLY needs to be done for snmp traffic, and it needs
to be done prior to any routing. Is this possible? Any help would
really be appreciated, this appears to be an application issue but we
need to find a workaround until the vendor fixes it.

Thank you everyone!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-09 19:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-09 15:55 Need to translate source IP prior to routing for SNMP issue Matty Sarro
2010-12-09 19:20 ` fuzzy_4711

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox