Skip to content

Instantly share code, notes, and snippets.

@simbalinux
Created June 25, 2018 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simbalinux/172296c5affe72e65447bd830e148f5e to your computer and use it in GitHub Desktop.
Save simbalinux/172296c5affe72e65447bd830e148f5e to your computer and use it in GitHub Desktop.
socks 5 proxy
#Create a secure server on your lan e.g. raspi
#invoke the following command from the server you will use as socks5 proxy specify port.
ssh -o ServerAliveInterval=60 -D0.0.0.0:8888 -f -N "host_with_www_connection"
#we have forked a background ssh process creating a socks5 proxy dynamically on ALL interfaces using 8888 on localhost, check with...
netstat -ntlp
#turn on the firewalld service
systemctl status firewalld.service
#check ports
firewall-cmd --list-ports
#add 8888 & 22 if needed.
firewall-cmd --add-port 8888/tcp --permanent
fireall-cmd --reload
#run firewall-cmd list ports again to check open ports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment