Local Port Forwarding
Local forwarding allows to forward a port on your local machine to a port on a remote target.
Socat
A tool for bidirectional data transfer between two endpoints.
Opens a listening TCP port on the local machine on given port and uses fork
to handle multiple connections. Then forwards the incoming traffic to the remote IP on given port
-ddd
: Enables debug mode with detailed output
Netsh
netsh (Network Shell) is a command-line utility in Windows that allows for the configuration and management of networking components and settings.
Local Admin is required to use this tool. In order to bypass UAC use it through RDP running batch shell as administrator
Adds a rule to forward traffic from <LISTEN_IP>:<LISTEN_PORT>
to <TARGET_IP>:<TARGET_PORT>
.
Displays the existing port forwarding rules.
Allows incoming traffic for <LISTEN_IP>:<LISTEN_PORT>
via TCP.
Removes a specified firewall rule.
Deletes the port forwarding rule for <LISTEN_IP>:<LISTEN_PORT>
.
SSH
Last updated