-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
allow source IP binding #12
Conversation
Hi sh4dowb, thanks for your contribution. I didn't test the code, but looks good so far. Can you please add a section in Readme.md for documentation of the new env variable Sorry for the late reply, was busy. |
done! |
Thanks. On which operating system and kernel version are you using it? I did some tests. Basic IP binding works, when there are 2 IPs on eth0, but no other network connection on Debian 11 (Kernel 5.15.x). IP Binding doesn't work anymore on Debian 10 (Kernel 5.10.x) with multiple VPNs (wherefore I have developed it). Even with multiple IPs on eth0 and using the added IP for |
you still need to set the interface if it's not default, this is to set the source IP for when one interface has more than one IP address attached. in my case I have 5 IP addresses on enp4s0f0, and for example default IP is ....15
this will return IP as ...16, without the module it returns ...15 it's my default interface, so I didn't need to set the interface as well. did you try supplying both interface and source ip variables? Ubuntu 22.04 LTS kernel 5.15.0-86 edit: curl --interface x.x.x.x does the same I guess, also try like that maybe? |
For eth0 I have
|
in my case I was testing with this setup:
|
I've added a warning and merged the request. Thanks for your contribution. |
@JsBergbau just an idea, not sure if it's going to work but, can you try switching the order of interface/ip binding? I added ip binding after interface binding. the other way around might work better |
Changing the order of env variables doesn't make a difference. Shouldn't change anything in the runtime behavior, because both variables are set, when program executes. |
I know, I mean in the program. Its currently setting the interface then IP, maybe switching the order will work |
allow source IP binding for when there's multiple IPs on one interface