Force Chrome to tunnel DNS requests through a SSH socks proxy

On your local machine, make the SSH connection :

ssh -D 8888 server

Force Chrome to use the ssh tunnel for DNS requests :

google-chrome --proxy-server="socks5://localhost:8888" 

You can check if it works by running this command on the ssh server :

tcpdump -i eth0 port 53

tcpdump will show dns trafic for any activity in Chrome.

Quickly generate a public/private SSH key (ie. to use with git)

In a linux command shell :

ssh-keygen -t rsa -b 4096 -C "email.address@domain.com"

This generates a public key ( ~/.ssh/idrsa ) and a private key ( ~/.ssh/idrsa.pub ) in your home directory.

This website uses cookies to improve usability and analyze traffic.
Accept or learn more