Friday 18 June 2021

Unix/Linux Simple TCP Port Forwarding -socat

socat: Linux / UNIX TCP Port Forwarder


On Redhat/CenOS/Oracle Linux

sudo yum install socat

On Debian/Ubuntu

sudo apt install socat




Example: 

sudo socat TCP-LISTEN:8589,fork TCP:10.50.x.x:443

socat will listen on 8589 TCP on local machine where is it installed. 10.50.x.x is remote server IP and 443 is port where you client want to connect. 





No comments:

Post a Comment