ssf icon indicating copy to clipboard operation
ssf copied to clipboard

Possible to bind port for UDP forwards

Open smarek opened this issue 4 years ago • 2 comments

Using ssf to proxy udp traffic, i need to force ssf to send out udp traffic from specific port. Now when I do

// 10.0.0.2 ssf server
./ssf 10.0.0.2 -V server_ip:server_port:remote_ip:remote_port

the datagram gets send from random bound port while I need it to be sent out from specific port. Would it be possible to expand the configuration like

./ssf 10.0.0.1 -V server_ip:server_port:remote_ip:remote_port[:server_out_port]

eg. force port which will be used to send UDP dgram to remote_ip:remote_port ? Same goes for -U

smarek avatar Jan 23 '21 12:01 smarek

Specifically also it could support situation where listening for input on eg. port 1234 (packet incoming from port 4321) the other side of tunnel would ad-hoc send the packet (if possible) from 4321 to port 1234, thus making the client port agnostic and transport as transparent as possible

smarek avatar Jan 24 '21 14:01 smarek

Need this too, to forward dhcp relay

T-Bonhagen avatar Jul 26 '22 06:07 T-Bonhagen