Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. 1. open `~/.ssh/config` and add
  2.  
  3. Host socksproxy
  4. HostName 1.2.3.4
  5. BatchMode yes
  6. RequestTTY no
  7. Compression yes
  8. DynamicForward localhost:8123
  9. IdentityFile ~/.ssh/proxy_rsa
  10. User username
  11.  
  12. 2. open `~/.bashrc` and add
  13.  
  14. alias socksproxy='/usr/bin/firefox -no-remote -P socksproxy && ssh -nkN socksproxy'
  15.  
  16. 3. open firefox, in the url bar type `about:profiles` and create a new profile called `socksproxy`
  17. load socksproxy profile
  18. open Preferences -> Network Settings -> Manual proxy configuration -> SOCKS Host set to localhost and Port to 8123,
  19. under `No proxy for` add `localhost, 127.0.0.1`. Activate `Proxy DNS when using SOCKS v5` and click ok.
  20.  
  21. 4. open terminal and type
  22.  
  23. $ socksproxy
  24.  
  25. 5. wait until firefox profile is open and check your ip address. It should be the ip address of the proxy server.
  26.  
  27. Warning: May show warning `Firefox is already running`. Just click ok and refresh socksproxy profile of firefox.
  28.  
  29. For chrome browser to use proxy server open `~/.bashrc` and add
  30.  
  31. chromeproxy() { /usr/bin/google-chrome --proxy-server="socks5://localhost:8123" --host-resolver-rules="MAP * ~NOTFOUND , EXCLUDE localhost" "$@" & }
  32.  
  33. alias socksproxychrome='chromeproxy && ssh -nkN socksproxy'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement