-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple physical NICs #9
Comments
Halo Aqua1ung |
Yes, both NICs are connected to the Internet: is that not supported? And yes, I am using the absolute path for bindToInterface. |
Can you please post the output of |
See also here. [Edit] Once in a blue moon I also get |
Please uncomment the line |
Not sure what "uncomment" would mean in C. Should I remove the whole |
Just remove the |
Here goes:
[Edit] As far as I can tell, it looks like the |
It looks like LD_PRELOAD isn't respected every time. That is really strange and seems some kind of Linux issue. |
You mean move |
Here goes:
And here's an even more interesting one:
[Edit] Also, I've seen some opinions that LD_PRELOAD is unsuitable for this task, and I quote: "Because LD_PRELOAD does not control the route that the processes uses. It will use the first route. And since it always uses the same route, it will default to the interface registered to the route.(which is not what we want)" |
Thats really strange and currently I have no idea whats happening there. |
Currently testing BindToInterface on my Ubuntu Kinetic. I have two physical NICs, one wired, and one wireless. Need ssmtp to use the wireless one:
BIND_INTERFACE=wlp1s0 DNS_OVERRIDE_IP=8.8.8.8 LD_PRELOAD=./bindToInterface.so /usr/sbin/ssmtp
, however, regardless of the value of BIND_INTERFACE, it still uses the wired NIC. (Testing withcurl ifconfig.me
tells me precisely that.) What am I doing wrong? Should I go to the trouble of messing with the route metrics? Does that not defeat the purpose of using BindToInterface in the first place?The text was updated successfully, but these errors were encountered: