亚洲韩日午夜视频,欧美日韩在线精品一区二区三区,韩国超清无码一区二区三区,亚洲国产成人影院播放,久草新在线,在线看片AV色

您好,歡迎來到思海網(wǎng)絡(luò),我們將竭誠為您提供優(yōu)質(zhì)的服務(wù)! 誠征網(wǎng)絡(luò)推廣 | 網(wǎng)站備案 | 幫助中心 | 軟件下載 | 購買流程 | 付款方式 | 聯(lián)系我們 [ 會員登錄/注冊 ]
促銷推廣
客服中心
業(yè)務(wù)咨詢
有事點(diǎn)擊這里…  531199185
有事點(diǎn)擊這里…  61352289
點(diǎn)擊這里給我發(fā)消息  81721488
有事點(diǎn)擊這里…  376585780
有事點(diǎn)擊這里…  872642803
有事點(diǎn)擊這里…  459248018
有事點(diǎn)擊這里…  61352288
有事點(diǎn)擊這里…  380791050
技術(shù)支持
有事點(diǎn)擊這里…  714236853
有事點(diǎn)擊這里…  719304487
有事點(diǎn)擊這里…  1208894568
有事點(diǎn)擊這里…  61352289
在線客服
有事點(diǎn)擊這里…  531199185
有事點(diǎn)擊這里…  61352288
有事點(diǎn)擊這里…  983054746
有事點(diǎn)擊這里…  893984210
當(dāng)前位置:首頁 >> 技術(shù)文章 >> 文章瀏覽
技術(shù)文章

Linux系統(tǒng)上一個功能較全的Squid配置文件

添加時間:2011-1-24  添加: admin 

一個功能較全的squi配置文件

  #用戶認(rèn)證

  auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/password

  auth_param basic children 5

  auth_param basic realm Squid proxy-caching web server

  auth_param basic credentialsttl 1 hours

  auth_param basic casesensitive off

  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

  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 # 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

  http_access allow manager localhost

  http_access deny manager

  http_access deny !Safe_ports

  http_access deny CONNECT !SSL_ports

  #本網(wǎng)段用戶可以上網(wǎng)

  acl our_networks src 192.168.1.0/24 192.168.2.0/24

  http_access deny !our_networks

  #綁定mac和ip

  acl userip src 192.168.1.3

  acl usermac arp 00:0C:29:4E:F5:92

  http_access deny usermac !userip

  http_access deny !usermac userip

  http_access allow localhost

  #每個人的連接限制為一個

  acl onlyone maxconn 2

  http_access deny onlyone

  #一個用戶只能從一個ip登錄代理服務(wù)器

  acl perip max_user_ip -s 1

  http_access allow perip

  #阻攔某些關(guān)鍵字開頭的網(wǎng)址

  acl badhead dstdom_regex -i ^news ^game ^pic ^xxx

  http_access deny badhead

  #阻攔帶有某些關(guān)鍵的網(wǎng)址

  acl badurl urlpath_regex -i news game pic sex mp3 xxx

  http_access deny badurl

  #阻攔具體網(wǎng)站

  acl badsite url_regex -i www.msn.com www.xxx.com xxx.com

  http_access deny badsite

  #禁止下載某些類型的文件

  acl badfile url_regex -i /.mp3$ /.vbs$ /.rmvb$ /.rm /.exe$ /.mpg$ /.mpeg$

  http_access deny badfile

  #授權(quán)用戶可以訪問web

  acl userauth proxy_auth REQUIRED

  http_access allow userauth

  #其他用戶連接一律拒絕

  http_access deny all

  icp_access allow all

  log_uses_indirect_client on

  http_port 3128

  hierarchy_stoplist cgi-bin ?

  acl QUERY urlpath_regex cgi-bin /?

  cache deny QUERY

  cache_mem 16 MB

  cache_dir ufs /var/spool/squid 100 16 256

  access_log /var/log/squid/access.log squid

  mime_table /etc/squid/mime.conf

  pid_filename /var/run/squid.pid

  ftp_telnet_protocol on

  refresh_pattern ^ftp: 1440 20% 10080

  refresh_pattern ^gopher: 1440 0% 1440

  refresh_pattern . 0 20% 4320

  acl apache rep_header Server ^Apache

  broken_vary_encoding allow apache

  half_closed_clients on

  cache_mgr root@lrq.com

  mail_program mail

  cache_effective_user squid

  cache_effective_group squid

  visible_hostname fc8.lrq.com

  delay_pools 1

  error_directory /usr/share/squid/errors/Simplify_Chinese

  check_hostnames on

  dns_timeout 2 minutes

  dns_nameservers 192.168.1.254 202.96.134.133

  fqdncache_size 1024

  forwarded_for on

  client_db on

  uri_whitespace strip

  coredump_dir /var/spool/squid


關(guān)鍵字:Linux Squid 配置文件

分享到:

頂部 】 【 關(guān)閉
版權(quán)所有:佛山思海電腦網(wǎng)絡(luò)有限公司 ©1998-2024 All Rights Reserved.
聯(lián)系電話:(0757)22630313、22633833
中華人民共和國增值電信業(yè)務(wù)經(jīng)營許可證: 粵B1.B2-20030321 備案號:粵B2-20030321-1
網(wǎng)站公安備案編號:44060602000007 交互式欄目專項(xiàng)備案編號:200303DD003  
察察 工商 網(wǎng)安 舉報有獎  警警  手機(jī)打開網(wǎng)站