The Easy Proxy For Ubuntu
The ‘easiest’ way to create a proxy with Ubuntu is creating a tunnel through SSH.
For a quick overview, you first must have an Ubuntu server with SSH access available to you. You can do this by having a server on your home connection, work connection, or wherever you want your proxy to sit.
Once you have that set up, you follow the process in the article to use the “SOCKS” protocol to tell your browser to use that proxy location to download all information from.
This method also works if you have a wireless router that supports SSH, such as Tomato or DD-WRT.
The Almost-Easy Proxy For Ubuntu
The second way you can do this is to use a web proxy. As long as your Ubuntu system is set up to serve websites, you can install a web app named GlypeProxy which will act as a proxy for your web browsing session. Simon has a great how-to on setting up GlypeProxy and it would work the same way if you were running a web server on your own Ubuntu system.
Using this method has its pluses and minuses. On the upside, you do not need to modify your own browser settings to use this web proxy. This would be essential if you are in an environment where you do not have the ability to specify a proxy server in your browser options.
On the downside, unless your web server is set up to use SSL encryption, it is also very insecure. Anyone watching the traffic from your machine would still be able to view your content with no problem at all.
The Complicated-To-Install But Full-Featured Proxy
On the more involved side of things, you can install a “real” proxy server on your Ubuntu Linux machine. Proxy software has been developed specifically to address many issues spoken of above and there is a lot of software out there available that can do the job for you.
There are two main types of proxies we will go over, a “normal” proxy and a “transparent” proxy. The normal proxy works as above – you specifically have to enter the proxy information in your browser for it to be used in your web browsing. The second kind, a transparent proxy, works in such a way that all of your web browsing goes through the machine whether you specify it in your browser settings or not.
A real proxy server on Ubuntu usually centers around a piece of software named Squid. Squid is an open source proxy server in wide use across the internet. Squid is easy to install and configure. Install and edit the configuration file:
$ sudo apt-get install squid3
$ vi /etc/squid3/squid.conf
And add:
http_access allow local_net
acl local_net src 192.168.0.0/255.255.255.0
Where 192.168.0.0 is your local network. Restart squid and you have a basic proxy server set up – you would modify your settings to use a web proxy on port 3128 and the IP address of your Ubuntu system.
You can really get fancy with how you set up a proxy server in Ubuntu Linux. Howtoforge has this great tutorial on setting up Squid with Dansguardian and ClamAV for antivirus and malware protection.