Virtual Machine linux can be connected to the public network, and the Intranet ip address is 192.168.56.78
Modify/etc/squid. conf as follows:
Http_port 192.168.56.78: 8080
Cache_mgr qwerty@gmail.com
Cache_dir ufs/var/spool/squid 100 16 256
Cache_mem 10 MB
Cache_swap_low 90
Cache_swap_high 95
Cache_access_log/var/squid/access. log
Cache_log/var/squid/cache. log
Cache_store_log/var/squid/store. log
Visible_hostname 192.168.56.78
Client_netmask 255.255.255.0
Acl advance src 192.168.56.2-192.168.56.254
Http_access allow advance
Run the configuration file verification to check for syntax errors.
Squid-k parse
Start proxy service
Chkconfig squid on
Service squid start
The Internet access mode of Virtual Machine xp is Host only, and the ip address is 192.168.56.23. It is in the same LAN as linux 192.168.56.78.
Select the tool, Internet option, connection, and LAN Settings of the IE browser, and set the Proxy Server ip address to 192.168.56.78 and port 8080.
After testing, IE can access the Internet. In linux, execute service squid stop. IE cannot access the Internet, and then execute service squid start. IE can access the Internet again.
This indicates that the linux proxy server is successfully set.