V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
linuxaged
V2EX  ›  Linux

如何配置 squid?

  •  
  •   linuxaged · 2013-08-24 08:12:04 +08:00 · 2555 次点击
    这是一个创建于 3919 天前的主题,其中的信息可能已经有所发展或是发生改变。
    参照 gentoo wiki 安装了 squid, 然后启动.但是无法使用.
    应该是 http_access allow 未允许连接.
    请问如何配置?
    2 条回复    1970-01-01 08:00:00 +08:00
    linuxaged
        1
    linuxaged  
    OP
       2013-08-24 08:14:42 +08:00
    部分配置:
    #
    # 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  
       2013-08-24 17:46:47 +08:00
    很久没搞Squid,差不多是这样:

    acl mynetwork src 192.168.0.0/16
    http_access alow mynetwork


    楼主多看下文档好过啦
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3760 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 04:21 · PVG 12:21 · LAX 21:21 · JFK 00:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.