securesocketfunneling / ssf

Secure Socket Funneling - Network tool and toolkit - TCP and UDP port forwarding, SOCKS proxy, remote shell, standalone and cross platform
https://securesocketfunneling.github.io/ssf/
Other
1.59k stars 235 forks source link

Wrong explanation for gateway ports option #108

Open colemar opened 5 months ago

colemar commented 5 months ago

This option description in the main page is misleading: -g: Allow gateway ports. Allow client to bind local sockets for a service to a specific address rather than "localhost" Actually, it should read: -g: Allow gateway ports. Allow client to bind local sockets for a service to a specific address rather than "any" address because this command line triggers a warning

sudo ./ssf 127.0.0.1 -p 8011 -U 127.0.0.1:53:127.0.0.53:53 -v trace
...
[warning] [microservice] [datagram_listener]: cannot listen on network interface <127.0.0.1> without gateway ports option
...

while this does not sudo ./ssf 127.0.0.1 -p 8011 -U 127.0.0.1:53:127.0.0.53:53 -g -v trace

I guess this is not important tough, because the warning is also wrong, in fact the client proceeds to listen on 127.0.0.1:53 nonetheless.