Andy Lemin <a...@brandwatch.com> writes: > Hi, > > TLDR; Is there a way of fixing the "source address" that SNMPD should use? > > > We are having issues with reply snmpd packets sourcing from the egress > interface and not the loopback interface which the poll request was sent to > :( > > We have many GRE tunnels and various routes which traffic can take to and > from our OpenBSD boxes. As such we poll the loopback interfaces instead of > a specific interface, however the snmpwalk replies reply with the source IP > of the egress interface and not the IP which was connected to. > > We tried setting "listen on $IP_Lo1" etc, and this seemed to work, but it > is unstable. That is, occasionally packets start being sourced from the > egress interface again when something changes until snmpd is restarted.
I don't understand why binding on a loopback doesn't work. What is "when something changes" here? > Also traps are always sourced from the Egress interface regardless of > "listen on", however our monitoring system only knows about the loopback > interface and so the traps are dropped. > > Cheers, Andy. -- jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE