Created
August 10, 2018 13:43
-
-
Save zjhuntin/0e77eeb1d693828fb299edae501a1eeb to your computer and use it in GitHub Desktop.
Socks!
This file contains 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
This is a basic example of using SOCKS. | |
From the computer you want to browse on you'll make an ssh connection to the computer you want to browse from. | |
In this example it'll be my laptop connecting to my desktop. | |
Run: ssh -D <port, I use 10000> <user>@<hostname of desktop> | |
Now, in a browser you don't normally use (I'm using firefox), go to network proxy. | |
Set Manual porxy configuration | |
Under Socks host use localhost and set the port for the port you used in the ssh command. | |
Make sure it's set for SOCKS v5. | |
Check the "Proxy DNS when using SOCK v5" | |
Click OK | |
You're good to go! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For an example, this is what I do to use a SOCKS proxy on my laptop to access VMs on my workstation:
-p
if you use the default 22ssh -p 40000 -D 30000 -q -C -N jomitsch@$HYPERVISOR