DEV Community

Discussion on: Poor man's ngrok with tcp proxy and ssh reverse tunnel

Collapse
 
leeeeme profile image
leeee-me

Better to add some fault-and-failover:
-o BatchMode=yes -o ServerAliveCountMax=15 -o ServerAliveInterval=300 -o ExitOnForwardFailure=yes

By the way, ssh cannot help binding privileged ports smaller than 1024, only if we remote ssh as root@remotehost (or any UID 0 identity)... safe but inconvenient.

Collapse
 
k4ml profile image
Kamal Mustafa

Hi, thanks for the tips. Haven't try this but for binding to lower port, maybe we can use setcap to allow tcpproxy to bind to port < 1024.