How to set up Proxy server in Linux environment

Source: Internet
Author: User
Keywords Proxy server squid erection under the environment
Tags agency aliyun click computer configuration configure data default

Proxy server in the current http://www.aliyun.com/zixun/aggregation/16327.html "> network environment is widely used, and plays a very important role in the Internet." Today I would like to introduce a Linux environment to set up a proxy server method, I hope to be able to help you friends.

Introduction to Proxy Server

Before setting up, let's take a look at the characteristics of the proxy server. So we understand the proxy server, assuming that computer a needs computer B data, computer A first and 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:

1, proxy server can access some of the limited IP site;

2. Use as a firewall;

3, to be very good to hide their real IP, improve security.

Next we'll look at the erection steps:

First, 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.

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.

Second, the 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 the Linux third-party Proxy Server Software selection

Can choose in fact still a lot of, for instance, Apache has powerful function, high speed and high-efficiency, but the performance advantage of the proxy server under Linux is not obvious, do not recommend to use. Recommended use squid, about this software related to a lot of reports, it is a major service program SQUID, a DNS query program DNSServer and several management tools, its more obvious feature is that can 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 a compiled squid, directly installed it. 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 have to create a new directory for Squid and users, we assume the user directory set to/usr/local/squid, and then execute the following command to unpack 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.

The third step: after the establishment of the configuration file, you can enter make to start compiling squid, and finally use made install command for squid installation.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.