Created
June 25, 2018 17:30
-
-
Save simbalinux/172296c5affe72e65447bd830e148f5e to your computer and use it in GitHub Desktop.
socks 5 proxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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