Dynamic Port Forwarding
Dynamic port forwarding uses SSH to create a SOCKS proxy, allowing traffic to be routed through a tunnel to access external resources.
SSH
ssh -N -D <ssh_client_ip>:<ssh_client_port> <ssh_server_username>@<ssh_server_ip>
This creates a SOCKS proxy on specified port , routing traffic through the pivot machine interface.
To use it with proxychains
, add to /etc/proxychains4.conf
:
socks5 <ip> <port>
Remote dynamic forwarding
ssh -N -R <local_port> <ssh_server_username>@<ssh_server_ip>
Last updated