Home | Research | My Gallery | About | Contact Me | Subscribe RSS Feed

Hiding your IP address with Squid and OpenVPN

Squid proxy itself will not hide your external IP address but I will show you how to do that when squid combined with OpenVPN. First you need to have a working OpenVPN connection from your PV to the Linux machine. Guide on how to install OpenVPN can be found here.

If you have a success OpenVPN connection, then you can proceed to next step to install Squid.

1. You can use yum to install squid

#yum install squid

2. Open the squid configuration file

#vi /etc/squid/squid.conf

3. Edit squid configuration to allow you to access to the web via the squid proxy.

Locate “http_port”, default port number is 3128, you can change it to any port you like. In this example I change it to 8080.

http_port 8080

Because you want to hide your IP address, you must connect to squid via OpenVPN tunnels. Now we need to create acl list to allow your VPN ip address to get through your squid proxy server. Search for “acl our_networks” then uncomment and modify it as follows:

acl our_networks src 10.8.0.2  #assume your client VPN address is 10.8.0.2
http_access allow our_networks

4. Save your squid.conf and restart your squid.

#/etc/init.d/squid restart

5. Config you web browser connection settings to access the web via your squid proxy

Firefox user:

Tools -> Options -> Network -> Settings , Select manual proxy configuration
HTTP Proxy: 10.8.0.1 and Port: 8080


IE User:

Tools -> Internet Options -> Connections -> LAN Settings , Tick the check box “Use a proxy server for your LAN…”
Address: 10.8.0.1 and Port: 8080

6. Go to http://www.whatismyip.com and check your IP address. You should be browsing with your squid server IP address now. Good luck.


Leave a Reply

Google