Selected from Linux Selected from PHP
- Ubuntu 17.10 Install google's mod pagespeed for apache - PHP-Ubuntu-Youtube-dl simple script for converting and downloading youtube video or mp3
- Ubuntu SSH tunnel via proxy - PHP while loop with every row with a different color
- Install GoAccess Apache Log Analyzer Tool on Ubuntu 17.10 - PHP use while loop in function
- SSHFS and map folder with a proxy - PHP List Files And Folders As links
- How to connect to SSH server with a proxy - PHP Extract Text From String
➥ Ubuntu ssh tunnel via proxy ...
Added by sonik on 22-06-2018 and keywords: ubuntu, ssh, tunnel, proxy, traffic [ Print Article ]
In the terminal type:
ssh -D 9999 -C root@yourwebsite -o "ProxyCommand=nc -X connect -x PROXYSERVER:PROXYPORT %h %p"

In the browser in proxy settings:

For firefox to pass dns via the tunnel
Using the ssh SOCKS5 proxy all of your info is passed through the tunnel except DNS requests. DNS requests are requests that look up names like and turn them into IP addresses. If you want your DNS requests to go through the SOCKS5 proxy (yes you want this feature -- trust me if you are going through all the trouble to create this encrypted tunnel), you need to do the following.

1. Open up firefox
2. Type about:config on the location bar
3. Filter for the following: network.proxy.socks_remote_dns
4. Set the value to True (Right Click on the value in the column)
5. Restart Firefox

Now all DNS requests will go through the SOCKS5 proxy rather than the local network.

@All rights reserved with Copyright 2018 by Sonik_Blast [ Site Map ] [ RSS ] [ YouTube Mp3 Downloader and converter ]