Sunday, May 30, 2010

Install & Configure Your Own Linux Proxy Server

Hi Guys,

Here you will learn how to install and configure your own proxy server step by step.
I'll explain you each step very clearly and you will be able to configure your proxy server within few minutes.

Step 01
First of all you have to check the necessary rpm

#rpm -q squid

If this rpm is installed in your computer, then you can directly go to the configuration part. if not, then you have to install this rpm.

To Install Squid

#yum install squid

Step 02
Before configuring squid configuration file, there should be two network interface cards in your computer. one is for your LAN and the other one is for direct internet access.

Set the information about the client machines that need to browse internet through the proxy server.

#nano /etc/squid/squid.conf

in this configuration file you need to search for "Our_networks"
Press Ctrl+W
Type the above keyword and search.

Remove the # mark from this line.

Remove the existing IP ranges from this line and add your IP range.

Our_networks src 192.168.0.0 /24

Remove the # mark from the next line.

http_access allow our_networks

Step 03

Start the proxy service

#service squid srart

Add this service to the startup

#chkconfig squid on

Step 04

The proxy settings must be set on each computer.

Open Web browser > Internet options > Network Settings > Set up squid ip address and and port number as 3128

Now it will have access to the internet.

More posts about proxy configurations will be here very soon.....