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 and select Vmnet2.pkg _ add -...
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.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.