Configure Squid agent under Linux

Source: Internet
Author: User

agent tools, xxx Tools

Yum install-y Squid (Install squid service)

Configuring the Forward proxy (for access control in the enterprise, etc.)

vim/etc/squid/squid.conf (Edit squid config file)

......

ACL http Proto http (add protocol)

ACL good_domain dstdomain baidu.com (white list set)

Http_access Allow Good_domain (whitelist access allowed)

Http_access deny!good_domain (exclude people from white list)

......

......

ACL http Proto http (add protocol)

ACL Bad_domain dstdomain baidu.com (set blacklist)

Http_access deny Bad_domain (Deny blacklist)

Http_access Allow!bad_domain (blacklist outside access allowed)

......

Cache_dir Ufs/var/spool/squid 100 16 256 (open cache folder)

Cache_mem M (add cache memory size)

refresh_pattern \. (jpg|png|gif|mp3|xml) 1440 50% 2880 ignore-reload (cache file type and related configuration)

Visible_hostname zhoulongfei.com (Squid host name)

Squid-kcheck (check configuration file for errors)

/etc/init.d/squid Start (Start squid service)

NETSTAT-LNP (see which port squid uses)

Tcpdump-nn Port 3128 (grab for 3128)

Configure the reverse proxy (site cache, etc., you must know the address to be able to configure the reverse proxy)

vim/etc/squid/squid.conf (Edit squid config file)

Http_port Accel Vhost Vport (Port Point changed to 80)

Cache_peer 61.135.169.121 Parent 0 originserver Name=a

Cache_peer_domain a www.baidu.com


Configure Squid agent under Linux

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.