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