Tunneling/Port Forwarding
Linux
Local port forwarding
ssh <gateway> -L <local port>:<remote host>:<remote port>Remote port forwarding
ssh <gateway> -R <remote port>:<local host>:<local port>Dynamic port forwarding
ssh -D <local port> -p <remote port> <target>HTTPTunnel or stunnelWindows
Netsh
netsh interface portproxy add v4tov4 listenport=$port listenaddress=$ip connectport=$port connectaddress=$ipnetsh advfirewall firewall add rule name="forward_port_rule" protocol=TCP dir=in localip=$ip localport=$port action=allowPlink.exe
Meterpreter
Last updated