• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 這樣的squid代理配置居然會出錯???[問題已解決-段譽]

    發表于:2007-05-25來源:作者:點擊數: 標簽:
    RED9IPTABLES防火墻和SQUID代理各自分開,[color=darkred:28e91ce9db]但不能在線升級系統補丁,WEB新發帶附件郵件出錯!感覺是不能上傳附件![/color:28e91ce9db] SQUID代理 服務器 本身直接在防火墻用NAT出去。 iptables-tnat-APOSTROUTING-oeth1-s192.168.1

    RED9 IPTABLES防火墻和SQUID代理各自分開,[color=darkred:28e91ce9db]但不能在線升級系統補丁,WEB新發帶附件郵件出錯!感覺是不能上傳附件![/color:28e91ce9db]
    SQUID代理服務器本身直接在防火墻用NAT出去。
    iptables -t nat -A POSTROUTING -o eth1 -s 192.168.10.1  -j snat --to x.x.x.x

    上面192.168.10.1 是SQUID服務器對外網卡地址,ETH1是防火墻的對內網卡。測試NAT沒問題的。

    SQUID代理服務器的ETH1網卡做了VLAN配置,對應內網的幾個網段。這樣主要是可用MAC地址做訪問控制。配置如下,請大家幫忙找問題所在,多謝!

    http_port 192.168.1.1:3128
    http_port 192.168.2.1:3128
    http_port 192.168.3.1:3128
    http_port 192.168.4.1:3128
    http_port 192.168.5.1:3128
    icp_port 0

    ssl_unclean_shutdown off
    hierarchy_stoplist cgi-bin ?
    acl QUERY urlpath_regex cgi-bin \? asp php shtml php3 cgi
    acl cache_prevent url_regex Servlet
    acl mmx urlpath_regex -i \.mp3$ \.avi$
    no_cache deny QUERY
    no_cache deny cache_prevent
    no_cache deny mmx
    #acl aclname url_regex [-i] ^http:// ... # regex matching on whole URL
    hierarchy_stoplist cgi-bin ?


    cache_mem 200 MB
    cache_swap_low 80
    cache_swap_high 100

    half_closed_clients off 
    maximum_object_size 1024 KB 
    minimum_object_size 0 KB
    maximum_object_size_in_memory 8 KB

    dns_nameservers x.x.x.x x.x.x.x
    dns_timeout 1 minutes
    ipcache_size 1024
    ipcache_low 90
    ipcache_high 95
    fqdncache_size 1024

    cache_replacement_policy heap GDSF
    memory_replacement_policy heap GDSF
    redirect_rewrites_host_header off


    cache_dir aufs /cache/cache 4096 16 1024
    cache_aclearcase/" target="_blank" >ccess_log /cache/squidlog/access.log

    cache_log /cache/squidlog/cache.log
    cache_store_log none
    mime_table /usr/local/squid/etc/mime.conf
    pid_filename /cache/squidlog/squid.pid
    logfile_rotate 100
    log_icp_queries off
    buffered_logs on
    emulate_httpd_log on

    cache_effective_user squid
    cache_effective_group squid
    visible_hostname proxy
    cache_mgr administrator@server
    error_directory /usr/local/squid/share/errors/Simplify_Chinese
    icon_directory /usr/local/squid/share/icons

    unlinkd_program /usr/local/squid/libexec/unlinkd
    redirect_children 5 
    redirect_rewrites_host_header off


    ftp_list_width 32

    ftp_passive on

    log_icp_queries off
    buffered_logs on

    acl all src 0.0.0.0/0.0.0.0
    acl manager proto cache_object

    acl proto proto HTTP FTP Gopher SSL WAIS
    acl method method GET POST
    acl CONNECT method CONNECT
    acl localhost src 127.0.0.1
    acl to_localhost dst 127.0.0.0/8
    acl SSL_ports port 443 563
    acl Safe_ports port 80          # http
    acl Safe_ports port 20          # ftp-data
    acl Safe_ports port 21          # ftp

    acl Safe_ports port 22          # ssl
    acl Safe_ports port 443 563     # https, snews
    acl Safe_ports port 70          # gopher
    acl Safe_ports port 210         # wais
    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 Safe_ports port 8080 8081 8180 8181       
    http_access allow manager localhost
    http_access deny manager
    http_access deny to_localhost
    http_access deny CONNECT !SSL_ports

    acl ss time AS
    acl work1 time MTWHF 08:00-12:00
    acl work2 time MTWHF 14:00-17:00
    acl mac arp "/etc/mac"
    acl macall arp "/etc/macall"
    acl to_ghip dst x.x.x.x
    acl outip src x.x.x.x x.x.x.x 

    http_access allow to_ghip
    http_access allow outip

    http_access deny !Safe_ports

    http_access allow mac
    http_access deny macall work1
    http_access deny macall work2
    http_access allow macall
    http_access deny all
    http_reply_access allow all

    snmp_port 3401
    acl aclsnmp snmp_community public
    snmp_access allow aclsnmp localhost
    snmp_access deny all
    snmp_incoming_address 0.0.0.0
    snmp_outgoing_address 0.0.0.0

    digest_generation on
    digest_rebuild_period 1 hour
    digest_rewrite_period 1 hour
    digest_swapout_chunk_size 4096 bytes
    digest_rebuild_chunk_percentage 10

    以上配置在防火墻和代理同在一臺機器上時沒這樣的問題。這可是我經過優化得到的比較滿意的配置了。請各路朋友幫忙找找問題所在,拜托了!

     unixli 回復于:2004-02-19 17:45:51
    沒人有這樣的問題嗎?

     mzxxzm 回復于:2004-02-21 15:59:56
    錯就是錯嗎,我對這個不是很了解,但不知道你那個http_access deny all 是什么意思啊我不太清楚,DENY是禁止的意思吧?怎么禁上了所有呢,不太明白。    A   A
                     ( @  @ )
                          ~

     unixli 回復于:2004-02-22 17:09:49
    [quote:9113571752="mzxxzm"]錯就是錯嗎,我對這個不是很了解,但不知道你那個http_access deny all 是什么意思啊我不太清楚,DENY是禁止的意思吧?怎么禁上了所有呢,不太明白。    A   A
                     ( @  @ )
                          ~[/quote:9113571752]

    http_access deny all 這一句做為最后一條規則,是當前面的規則都不匹配時所應用的規則,如沒這句,那squid會自動加入和最后一條規則相反的規則。

     unixli 回復于:2004-04-14 09:47:58
    以上問題上個月問題已解決。主要是的RED9的vlan技術不成熟造成和一些廠家的交換機、網卡不兼容,升級為2.6.4內核后問題解決!

     unixli 回復于:2004-04-14 09:48:15
    以上問題上個月問題已解決。主要是的RED9的vlan技術不成熟造成和一些廠家的交換機、網卡不兼容,升級為2.6.4內核后問題解決!

     xmyjm 回復于:2004-04-15 15:40:26
    希望對以后有幫助.

     段譽 回復于:2004-05-03 12:54:22
    感謝unixli!

     unixli 回復于:2004-05-05 18:56:12
    不用客氣,只要對大家有點幫助就好!

     zxdzhj 回復于:2004-06-04 22:31:27
    unixli真熱心,我想大家看后都有幫助的。

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>