Open N-Mi opened 11 years ago
I am using this code, thus I maintain it as needed. I never tried UDP yet... Not sure if it deals with UDP at all yet . Disclaimer: I am not the author of the library. I only applied some fixes I needed. When I have some spare time I will look into this issue. nslookup/host should be a good way to see if it works or not, like you did.
Hi,
I don't know if you still maintain this code, but in doubt I fill this issue here.
I just compiled and installed force_bind from latest git, and could successfully use telnet and ping (after setuid the .so file).
I then tried to do some snmpget/snmpwalk on an equipment, and this doesn't work, while telnet and ping use the bind address configured in force_bind variables.
I checked with tcpdump and can observe that outgoing traffic for snmp requests are sourced with default interface IP, instead of the one declared in FORCE_BIND_ADDRESS_V4.
Here is the content of log file using verbose level 999 :
We can see in this trace that force_bind is loaded, and tries to bind on given address, but traffic is actually sent with another address.
I had the same behaviour trying to perform a DNS request using nslookup, so I believe the problem is with UDP in general.
Regard,
N-Mi.