![]() |
|
|
|||
|
|||
This tutorial covers how to run a proxy server using squid on Linux Ubuntu. I assume that you already have a running Ubuntu PC.
Hardware requirements: Processor with clock speed of 100Mhz or above (AMD or INTEL). Ram with size of 256mb or higher (The higher the better). Hard Drive must be 40GB 7200rpm (Optional : Extra Hard Drive for caching). Network Interface Card10/100 (2 Pieces... I prefer 3COM). Okay lets assume that eth0 is the one connected to the internet (192.168.0.1). And eth1 is the one that will distribute the internet connection to your local network (10.0.0.1). Step1: Updating the system Let's update first our Ubuntu box. Open a terminal console and key-in Code:
$sudo apt-get update && sudo apt-get upgrade Click System ---> Administration ---> Networking. A window will appear. On the connection tab choose eth1 interface and click on properties. Change the gateway to 192.168.0.1. Then click close. step3: Installing Squid On the terminal console key-in the command Code:
$sudo apt-get install squid The squid main configuration file resides in /etc/squid directory (/etc/squid/squid.conf). In the terminal console key-in the following to back-up your squid config file. Code:
$sudo cp /etc/squid/squid.conf /etc/squid/squid.conf_bak I will show to you how easy to configure squid as a proxyserver. First open the config file. Code:
$gksu gedit /etc/squid/squid.conf http_port 10.0.0.1 3128 (Port 3128 is the default port you change it to 8080 if you want) visible_hostname "yourhostnamehere" (Put the hostname of your server without quotes) http_access allow all (The default is deny all) Voila your done configuring your proxy server. All we need is to restart our proxy server and here is the command. Code:
$sudo /etc/init.d/squid restart |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|