- 1、本文档共4页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
2squid配置文件
2.squid配置文件
# 目前防火墙配置 (80 基本网页;30061 新邮件端口;5000 case端口;)
# ptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 3128
# ptables -t nat -A PREROUTING -p tcp --dport 30061 -j REDIRECT --to-ports 3128
# ptables -t nat -A PREROUTING -p tcp --dport 5000 -j REDIRECT --to-ports 3128
# Example rule allow ng access from your local networks.
# Adapt to l st your ( nternal) IP networks from where brows ng
# should be allowed
acl localnet src /8 # RFC1918 poss ble nternal network
acl localnet src /12 # RFC1918 poss ble nternal network
acl localnet src /16 # RFC1918 poss ble nternal network
acl localnet src fc00::/7 # RFC 4193 local pr vate network range
acl localnet src fe80::/10 # RFC 4291 l nk-local (d rectly plugged) mach nes
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wa s
acl Safe_ports port 1025-65535 # unreg stered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # f lemaker
acl Safe_ports port 777 # mult l ng http
acl CONNECT method CONNECT
acl broken302 http_status 110 400-404 302 500-505
http_access deny broken302
#
# Recommended m n mum Access Perm ss on conf gurat on:
#
# Deny requests to certa n unsafe ports
http_access deny !Safe_ports
# Deny CONNECT to other than secure SSL ports
#http_access deny CONNECT !SSL_ports
#http_access allow CONNECT SSL_ports
# Only allow cachemgr access from localhost
http_access allow localhost manager
http_access deny manager
acl QQupload req_m me_type - text/octet
no_cache deny QQupload
# We strongly recommend the follow ng be uncommented to protect nnocent
# web appl cat ons runn ng on the proxy server who th nk the only
# one who can access serv
您可能关注的文档
- 2018年昆明市倘甸区普岗教师上岗教育心理学密卷二.docx
- 2018年昆明市呈贡区普岗教师上岗教育心理学绝密试卷一.docx
- 2018年昆明市倘甸区普岗教师上岗教育心理学密卷四.docx
- 2018年昆明市倘甸区普岗教师上岗教育心理学密卷六.docx
- 2018年昆明市宜良县普岗教师上岗教育心理学密卷一.docx
- 2018年投资体育项目补助申报指南.docx
- 2018年昆明市倘甸区普岗教师上岗教育心理学密卷七.docx
- 2018年昆明市倘甸区普岗教师上岗教育心理学密卷九.docx
- 2018年昆明市嵩明县普岗教师上岗教育心理学密卷九.docx
- 2018年昆明市嵩明县普岗教师上岗教育心理学密卷二.docx
文档评论(0)