Before setting up, let's take a look at the characteristics of the proxy server. This is how we understand the proxy server: Assuming that computer A requires computer B data, computer A first with computer C to establish a connection, computer C received a computer A data request, and Computer B to establish a connection, download computer A requested data and then transfer this data to computer A, computer C is called proxy server.
The role of a proxy server can be summarized in three ways:
One is through the proxy server can access some of the limited IP site;
Second, can be used as a firewall;
Third, can be very good to hide their real IP, improve security.
Next we'll look at the erection steps.
A Configure Linux Internet
First step: Click Start-System Tools-network device control, and then click the Configure button.
Step Two: Select the network card connected with ADSL and then click the Edit button. As shown in the figure.
Step three: In the next window, check "Activate the device when the computer starts" and click "Statically set IP number", enter the network card IP address "192.168.0.1" in the number box, the subnet mask defaults to "255.255.255.0", and the default gateway number is blank, OK.
Two Agent Erection Process
This example does not focus on the Linux system configuration, but on the configuration process of Third-party proxy Server software.
1. On Linux under the third party proxy Server software selection
There are still a lot of choices, such as Apache: Powerful features, high speed and efficiency,
However, the performance advantages of the proxy server in Linux is not obvious, not recommended, use squid, the software related to a lot of reports, it by a major service program squid, a DNS query program DNSServer and several management tools, Its obvious feature is to reduce the server waiting for DNS query time, "Linux+squid" is the best proxy server combination!
2. Install Squid
In fact, today's Linux basically have been compiled squid, directly installed it can. If you don't have a compiled squid on hand, you can go to FTP://squid.nlanr.net/pub to download it.
The first step: Remember squid by default does not allow root to execute it, you must create a new directory for squid and users: we assume that the user directory is set to/usr/local/squid. Then perform the following command to decompress tar.gz:
Tar ZXVF squid–src.tar.gz
Step Two: Enter squid directory, run "./configure", this command familiar with Linux friends should be clear, it will automatically check the system configuration, because there is no parameter, so the default installation in this directory.
Step three: After setting up the configuration file, you can enter make to start compiling squid, and finally use the made install command for squid installation.