Skip to content

Instantly share code, notes, and snippets.

@fiddyschmitt
Created April 15, 2026 10:19
Show Gist options
  • Select an option

  • Save fiddyschmitt/76203df2c445f1a49e878678003ce5f9 to your computer and use it in GitHub Desktop.

Select an option

Save fiddyschmitt/76203df2c445f1a49e878678003ce5f9 to your computer and use it in GitHub Desktop.
SSH reverse socks proxy
Run SOCKS proxy
Host B
Linux VM
VM properties
Give it a NAT NIC
Click the Port Forwarding button
Forward 22 to 22
Configure it to allow SSH to listen to other machines:
vi /etc/ssh/sshd_config
Add:
GatewayPorts clientspecified
dhclient
service ssh start
Host A
ssh -R 192.168.56.100:8080 -o ExitOnForwardFailure=yes user@hostb
Host B
Run Firefox
Set its SOCKS proxy to 192.168.56.100:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment