Skip to content
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

Unable to bind on Debian 11.5 (kernel: 5.10.0-18-amd64) #6

Open
john9527 opened this issue Oct 15, 2022 · 1 comment
Open

Unable to bind on Debian 11.5 (kernel: 5.10.0-18-amd64) #6

john9527 opened this issue Oct 15, 2022 · 1 comment

Comments

@john9527
Copy link

Testing on Debian 11 as a possible new server....compiled with debug enabled.

$ sudo BIND_INTERFACE=enp0s31f6 LD_PRELOAD=/usr/lib/bindToInterface.so curl ifconfig.me
connecting to: 192.168.1.1:53
Bound Interface: none. Socket not bound to desired interface (Bound to: none). Binding to interface: enp0s31f6
connecting to: 34.160.111.145:80
Bound Interface: none. Socket not bound to desired interface (Bound to: none). Binding to interface: enp0s31f6
"my_internet_ip"

Actually started trying to bind channels-dvr to a bonded vlan without any success, so dropped back to the curl test case.

@JsBergbau
Copy link
Owner

Hallo john9527,
these messages are correct. If your software, in this case curl didn't bind the socket then this message is displayed.

BIND_INTERFACE=eth0 DNS_OVERRIDE_IP=8.8.8.8 LD_PRELOAD=./bindToInterface.so curl ifconfig.me

Detected DNS query to: 192.168.178.2:53, overwriting with 8.8.8.8:53
connecting to: 8.8.8.8:53
Bound Interface: none. Socket not bound to desired interface (Bound to: none). Binding to interface: eth0
connecting to: 34.160.111.145:80
Bound Interface: none. Socket not bound to desired interface (Bound to: none). Binding to interface: eth0
<my_ip>

So far it looks correct.
However I don't have bonded interfaces to test with, but it should work as intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants