Simple configuration of installing Squid as an intranet Proxy Server (Proxy) in Ubuntu

Source: Internet
Author: User
Tags squid proxy
I have a UbuntuLinux machine with a wireless network card that can be used to access the Internet. I want to set it as a proxy server so that other machines in the Intranet can use it as a proxy for Internet access. 1. Install squidwww.linuxidc.com @ linuxidc on UbuntuLinux :~ $ Sudoapt-getinstallsquid2. Started automatically after installation, if you use the default provisioning, set the proxy on another machine (this is

I have a Ubuntu Linux machine with a wireless network card that can be accessed from the Internet. I want to set it as a proxy server so that other machines in the Intranet can use it as a proxy for Internet access.

1. Install squid on Ubuntu Linux

Www.linuxidc.com @ linuxidc :~ $ Sudo apt-get install squid

2. The agent is automatically started after the installation. If the default configuration is used, set the proxy on another machine (this is my setting proxy on Chrome ):

The following problems are found during the test:

3. It seems that you do not have the Access permission.

Edit the squid. conf file.

Www.linuxidc.com @ linuxidc :~ $ Sudo vi/etc/squid. conf

4. Remove the following 676 line comment to allow localnet access

That is:

673 # Example rule allowing access from your local networks.
674 # Adapt localnet in the ACL section to list your (internal) IP networks
675 # from where browsing shoshould be allowed
676 http_access allow localnet
677 http_access allow localhost

5. Restart squid

Www.linuxidc.com @ linuxidc :~ $ Sudo/etc/init. d/squid restart

6. Then you can access the Internet on another machine !!

Recommended reading:

Configure Squid proxy http and rsync http://www.linuxidc.com/Linux/2013-05/84642.htm

Squid: high-speed Web Access http://www.linuxidc.com/Linux/2013-04/83512.htm

CentOS 6.2 compilation and installation Squid configuration reverse proxy server http://www.linuxidc.com/Linux/2012-11/74529.htm

Application http://www.linuxidc.com/Linux/2012-10/71818.htm of Squid in Enterprise Network

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

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.