Issue while using socket_wrapper

I was testing out The socket_wrapper library and was following the example on their webpage and ran the command:- LD_PRELOAD=libsocket_wrapper.so \ SOCKET_WRAPPER_DIR=/tmp/tmp.vukAHWfufj \ SOCKET_WRAPPER_DEFAULT_IFACE=10 \ nc -v -l 127.0.0.10 7 The server seems to run but when I use LD_PRELOAD=libsocket_wrapper.so \ SOCKET_WRAPPER_DIR=/tmp/tmp.vukAHWfufj \ SOCKET_WRAPPER_DEFAULT_IFACE=20 \ nc -v 127.0.0.10 7 to connect to that server it results in Error: Couldn't create connection (err=-5): No route to host tracepath 127.0.0.10 -p 7 1: 127.0.0.10 0.063ms reached Resume: pmtu 65535 hops 1 back 1 Thanks for the help!!

Mar 26, 2025 - 09:19
 0
Issue while using socket_wrapper

I was testing out The socket_wrapper library and was following the example on their webpage and ran the command:-

LD_PRELOAD=libsocket_wrapper.so \
SOCKET_WRAPPER_DIR=/tmp/tmp.vukAHWfufj \ 
SOCKET_WRAPPER_DEFAULT_IFACE=10 \
nc -v -l 127.0.0.10 7

The server seems to run but when I use

LD_PRELOAD=libsocket_wrapper.so \
SOCKET_WRAPPER_DIR=/tmp/tmp.vukAHWfufj \
SOCKET_WRAPPER_DEFAULT_IFACE=20 \
nc -v 127.0.0.10 7

to connect to that server it results in

Error: Couldn't create connection (err=-5): No route to host

tracepath 127.0.0.10 -p 7 1: 127.0.0.10 0.063ms reached Resume: pmtu 65535 hops 1 back 1

Thanks for the help!!