Proxy proxy server configuration under CentOS

Source: Internet
Author: User


Installation Kits

Yum-y Install squid*
Cp/etc/squid/squid.conf/etc/squid/squid.conf.bak
Vi/etc/squid/squid.conf

#请视使用人数和硬碟状况加大 Cache Folder Capacity
Cache_dir Ufs/var/spool/squid 1000 16 256

#限制允许连线范围, please revise your school status.
ACL hostname src 192.168.1.0/24

Http_access Deny All
http_access allow localhost
Http_access allow hostname

#Recommended Minimum Configuration:
ACL all src 0.0.0.0/0.0.0.0
ACL manager Proto Cache_object
ACL localhost src 127.0.0.1/255.255.255.255
ACL To_localhost DST 127.0.0.0/8
ACL ssl_ports Port 443 563
ACL safe_ports Port # http
ACL safe_ports Port # FTP
ACL safe_ports port 443 563 # HTTPS Snews
ACL safe_ports Port # Gopher
ACL safe_ports Port 210 # WAIS
ACL safe_ports Port 1025-65535 # unregistered ports
ACL safe_ports Port 280 # HTTP-MGMT
ACL safe_ports Port 488 # gss-http
ACL safe_ports Port 591 # FileMaker
ACL safe_ports Port 777 # multiling HTTP
ACL Connect method Connect

#限制允许连线范围, please revise 111cn.net according to your own school condition

Service Squid restart



NAT and proxy:transparent Proxy speed up network transmission
#Fedora Core 7 new Squid version transparent Proxy settings simplified, integrated into the Http_port option.


Vi/etc/squid/squid.conf

Http_port 3128 Transparent
Httpd_accel_host Virtual
Httpd_accel_with_proxy on
Httpd_accel_uses_host_header on

Service Squid restart

--------------------------------------------
#Fodora the previous version of the Core 6 squid transparent Proxy set in the Squid profile plus the following four lines
Vi/etc/squid/squid.conf


Httpd_accel_host ha.shsps.kh.edu.tw
Httpd_accel_port 80
Httpd_accel_with_proxy on
Httpd_accel_uses_host_header on

Related Article

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.