您的位置:首页 > 运维架构 > 反向代理

CentOS 6 squid3 configure small standard

2015-08-30 22:44 309 查看

standard squid http proxy

http_port 0.0.0.0:3128
acl any src 10.0.0.0/8
http_access allow all
cache_mem 128 MB
maximum_object_size 4096 KB
maximum_object_size_in_memory 4096 KB
reply_body_max_size 10240000 allow all
access_log /var/log/squid3/access.log squid
visible_hostname 10.0.0.2
cache_dir ufs /var/spool/squid3 1000 16 256
cache_mgr XXX


transparent squid proxy

# /etc/squid/squid.conf
http_port 0.0.0.0:13128 transparent
acl any src all
http_access allow all
cache_mem 128 MB
maximum_object_size 4096 KB
maximum_object_size_in_memory 4096 KB
reply_body_max_size 10240000 allow all
access_log /var/log/squid3/access.log squid
visible_hostname 10.0.0.2
cache_dir ufs /var/spool/squid3 1000 16 256
cache_mgr XXX


# command for redirect ip flow to the squid port
# this server act as the gateway
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 13128
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: