Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###force proxy on programs
- ## NOTE - We are using port 8123,
- ## but you can pick any port not being used
- ## that you have permission to access
- #install tsocks
- sudo apt install tsocks
- ##put the following in ~/.tsocks.conf
- server = 127.0.0.1
- server_port = 8123
- server_type = 5
- local = 127.0.0.0/255.255.255.0
- #setup an SSH server to tunnel through (cloudssh is just one of many options)
- https://cloudssh.us/
- #setup ssh proxy tunnel
- ssh -ND 8123 <USERNAME>@<IP-ADDRESS>
- #check your real IP ADDRESS
- wget -qO- http://ipecho.net/plain
- #or
- curl http://ipecho.net/plain
- #now through the proxy using tsocks
- tsocks wget -qO- http://ipecho.net/plain
- #or
- tsocks curl http://ipecho.net/plain
- #if all went well, your IP should now show as the ssh server's ip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement