Create a local TCP port for a remote server on a ubuntu/debian server

You can do this stuff with netcat and inetd

apt-get install openbsd-inetd (netcat is installed by default)

nano /etc/inetd.conf

LOCALIP:443 stream tcp nowait root /bin/nc nc REMOTEIP 443

/etc/init.d/openbsd-inetd restart

Have fun!

Author: Thomas Faddegon

Do you like my posts and want to do something back? You can buy me a beer :)