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
aborn@aborn-lisp:~$ 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.
aborn@aborn-lisp:~$ sudo vi /etc/squid/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 should be allowed 676 http_access allow localnet 677 http_access allow localhost
5. Restart squid
aborn@aborn-lisp:~$ sudo /etc/init.d/squid restart
6. Then you can access the Internet on another machine !!