As shown in the network configuration, Squid uses CentOS5.8 + squid, and the web server uses FreeBSD + nginx for testing. The local network uses VMnet1 for simulation, the public network uses VMnet2 for simulation, and the IP address is planned as shown in figure. First install the web server. Select Vmnet2. pkg_add-r // install nginx ifconfig le0 200.98.1.1 netmask 255.255.255.0 up // configure the Network/usr/local/rc. d/nginx start // start the nginx process so far the web server is ready. Www.2cto.com then prepare the squid proxy server. 1. install squid software # yum-y install squid 2. configure/etc/squid. conf file: http_port 192.168.3.1: 3128 // The Proxy Server opens the port setting visible_hostname 192.168.3.1 // Proxy Server ID (required, otherwise an error is reported) // configure the ACL (required) acl innet src 192.168.3.0/24 acl all src 0.0.0.0/0.0.0.0 http_access allow innet http_access deny all 3. configure the server network www.2cto.com ifconfig etho 192.168.3.1 netmask 255.255.255.0 up ifconfig eth1 200.98.1.2 up 4. start squid proxy service squid start 5. disable the firewall iptabes iptables-F so far, the squid server is ready and finally configured to test the client browser. Then, the previously deployed web Server www.2cto.com is successfully accessed.