Back to All Modules

Tunnels and Proxies

#Overview

Tunnels and proxies provide full network-layer access through a compromised host. Unlike port forwarding (one port at a time), tunnels give you a SOCKS proxy or TUN interface that supports any protocol — scanning, multi-service access, and lateral movement all become possible.

For foundational SOCKS/proxy setup (SSH -D, Chisel, Ligolo-ng, proxychains), see 07 - Post-Exploitation. This section covers advanced tools and configurations beyond those basics.

#Technique Selection

Egress AvailableBest TechniqueFile
All TCP (no filtering)SSH -D / SSHuttleSOCKS & HTTP Proxies
HTTP/HTTPS onlyNeo-reGeorg / EarthwormWeb Tunnels
DNS onlydnscat2 / iodineDNS & Protocol Tunnels
Cloud (NAT traversal)ngrok / Cloudflare tunnelCloud Tunnels
Restricted/monitoredRpivot / WireGuardSOCKS & HTTP Proxies / Cloud Tunnels

#Technique Files

FileCoversComplexity
SOCKS & HTTP ProxiesSSH -D extended, SSHuttle, Chisel/Ligolo advanced, RpivotMedium
Web TunnelsNeo-reGeorg, reGeorg, Tunna, EarthwormMedium-High
DNS & Protocol Tunnelsdnscat2, iodine, ICMP tunnels, httptunnelHigh
Cloud Tunnelsngrok, Cloudflare tunnel, WireGuard, NPS/FRP/3proxyMedium

#Cross-References