Local Port Forwarding
Socat
socat -ddd TCP-LISTEN:<local_port>,fork TCP:<remote_ip>:<remote_port>Netsh
netsh interface portproxy add v4tov4 listenport=<LISTEN_PORT> listenaddress=<LISTEN_IP> connectport=<TARGET_PORT> connectaddress=<TARGET_IP>netsh interface portproxy show allnetsh advfirewall firewall add rule name="<RULE_NAME>" protocol=TCP dir=in localip=<LISTEN_IP> localport=<LISTEN_PORT> action=allowSSH
Last updated