Tunnel DNS and Web Traffic Through PPTP VPN
It is possible to tunnel all your web traffic including http and dns requests through a SOCKS 4/5 proxy. In this scenario we have followed this tutorial to set up a PPTP VPN
connection and this tutorial to set up Squid. PPTP is compatible with all Microsoft clients without having to install any third party software, such as OpenVPN.
Now we want to make all our web surfing and DNS traffic go through bubba. We first have to set up a new VPN connection in WIndows XP.
Some ideal scenarios where you may want to do this:
- You suspect the company viewing your web logs
- The country you are in is performing data packet session recording, for example they record the content of all traffic for x number of days
- You are on travel and do not trust the networks you are using.
On the client:
Go to network connetions in Control panel and create a new connection, select Connect to workplace using VPN, select VPN, select a company name, for example "bubba", and enter
your DynDNS host name, click Finish. Now, you can select the connection from Network connections. Disable WIndows XP Firewall and enter the username and password you created in the above tutorial for the PPTP VPN.
You should now be able to connect to your bubba through VPN. Now edit yoiur Firefox settings as following:
Write into Firefox:
Now set the following parameter and restart the browser: (Search for it and it will appear).
network.proxy.socks_remote_dns = true
Now in your Firefox, go to Tools -> Options -> Network -> Settings -> Manual Proxy Configuration
Select "Use this proxy server for all protocols". Now go to www.whatismyip.com and check your address.
Have fun and be safe on your journey :)