CentOS-based Squid common proxy implementation

Source: Internet
Author: User
Tags squid proxy


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.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.