Squid set to transparent agent Internet

Source: Internet
Author: User
Keywords Squid transparent agent
Tags aliyun gateway html http internet port port forwarding proxy

With the front Shorewall port forwarding, set to transparent proxy.

Squid.conf focus on the following

&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP;

ACL MSN url_regex-i ^http://gateway.messenger.hotmail.com http_access allow MSN ACL admin ARP 00:40:05:13:c4:b2 HTTP_ Access allow admin ACL banned_sites Url_regex "/etc/squid/banned.list" ACL worktime time MTWHF 8:30-12:00 ACL Mmxfile urlpath_regex-i \.mp3$ \.avi$ \.rmvb$ \.rm$ \.wma$ \.wmv$ http_access deny Worktime mmxfile http_access deny Worktime banned_sites http_access allow localhost ACL loc1 src 192.168.1.0/24 ACL loc1_conn maxconn. CIDR ACL loc2_conn maxconn http_access deny Loc1 loc1_conn http_access allow Loc1 http_access deny loc2 src loc2_conn http _access allow loc2 http_access allow localhost http_access deny all httpd_accel_host virtual Httpd_accel_port Accel_with_proxy on Httpd_accel_uses_host_header on

# cat/etc/squid/banned.list

3721.com 21cn.com zichen.com kshuw.com cmfu.com zhaobao.com xilu.com mop.com peepsamurai.com purjoy.com people.com.cn Chi na-crane.com ei66.com yhzw.com sina.com chianren.com 163.net 163.com tianya.net tianya.cn tom.com sohu.com 263.com Sport s.cn aol.com gigigaga.com

The main limit is not allowed to download songs and movies and go to the community at work. and the number of concurrent connections is limited according to different network segments.

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.