BindToInterface icon indicating copy to clipboard operation
BindToInterface copied to clipboard

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

Open john9527 opened this issue 3 years ago • 1 comments

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.

john9527 avatar Oct 15 '22 05:10 john9527

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.

JsBergbau avatar Oct 17 '22 07:10 JsBergbau