Use squid to configure the proxy Server (based on Ubuntu Server 12.04)

Source: Internet
Author: User

IsSmall and medium-sized enterprises customize a set of open source software solutionsStarted to build a website.

1. Install squid

$ Sudo apt-get install squid-y

Note: After installation, you can start/etc/init. d/squid3 start, but the default status is unavailable.

2. Configuration

$/Etc/squid. conf

Configure Port

Http_port 3128

Note: We recommend that you modify the default Port.

Permission Control

Acl localnet src 192.168.XXX.0/255.255.255.0

Replace the preceding XXX with the desired CIDR block on the Intranet.

Add

Http_access allow localnet

In other words, I seem to have done nothing.

 

3. Start

$/Etc/init. d/squid3 start

 

Finally, open Firefox on another machine and configure the proxy server information.

If it is a server, you can use the following method to configure proxy

$ Cd ~

$ Sudo vim./bashrc

Add two lines of information at the end

Http_proxy = http://XXX.XXX.XXX.XXX: XXXX/

Export tttp_proxy

Save

Run the following command.

$ Source ~ /. Bashrc

Related Article

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.