Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
linuxaged
V2EX  ›  Linux

如何配置 squid?

  •  
  •   linuxaged · Aug 24, 2013 · 3114 views
    This topic created in 4675 days ago, the information mentioned may be changed or developed.
    参照 gentoo wiki 安装了 squid, 然后启动.但是无法使用.
    应该是 http_access allow 未允许连接.
    请问如何配置?
    2 replies    1970-01-01 08:00:00 +08:00
    linuxaged
        1
    linuxaged  
    OP
       Aug 24, 2013
    部分配置:
    #
    # Recommended minimum Access Permission configuration:
    #
    # Only allow cachemgr access from localhost
    http_access allow localhost manager
    http_access deny manager

    # Deny requests to certain unsafe ports
    http_access deny !Safe_ports

    # Deny CONNECT to other than secure SSL ports
    http_access deny CONNECT !SSL_ports
    megaforce
        2
    megaforce  
       Aug 24, 2013
    很久没搞Squid,差不多是这样:

    acl mynetwork src 192.168.0.0/16
    http_access alow mynetwork


    楼主多看下文档好过啦
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3209 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 10:41 · PVG 18:41 · LAX 03:41 · JFK 06:41
    ♥ Do have faith in what you're doing.