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