SSH Tunneling
MITRE ATT&CK™ Protocol Tunneling - Technique T1572
Theory
Practice
SSH Port Forwarding
Port ForwardingSshuttle
# Create Tunnel
# SUBNET: specify your subnet (e.g 172.16.0.0/24)
sshuttle -r <USER>@<TARGET_IP> <SUBNET>
# Automatically determine the subnets
sshuttle -r <USER>@<TARGET_IP> -N
# Exclude the specific ip (-x)
sshuttle -r <USER>@<TARGET_IP> <SUBNET> -x <remote-ip>sshuttle -r <USER>@<TARGET_IP> --ssh-cmd "ssh -i KEYFILE" <SUBNET>sudo systemctl enable systemd-resolved.service
sudo resolvectl flush-cachesResources
Last updated