开发者社区> 问答> 正文

在阿里云ECS服务器安装centos配置squid无法访问

在阿里云ECS服务器安装centos配置squid无法访问,如下配置是否有问题

acl localnet src 10.0.0.0/8     # RFC1918 possible internal network
acl localnet src 172.16.0.0/12  # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src fc00::/7       # RFC 4193 local private network range
acl localnet src fe80::/10      # RFC 4291 link-local (directly plugged) machines


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


#
# Recommended minimum Access Permission configuration:
#
# 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


# Only allow cachemgr access from localhost
http_access allow localhost manager
http_access deny manager


# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
#http_access deny to_localhost


#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#


# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
http_access allow localnet
http_access allow localhost


# And finally deny all other access to this proxy
http_access deny all


# Squid normally listens to port 3128
http_port 3128


visible_hostname openthinking.cn

展开
收起
bouyei 2017-11-08 20:55:48 5888 0
2 条回答
写回答
取消 提交回答
  • 回 1楼dongshan8的帖子
    我也遇到了同样的问题,安全组是允许了所有端口的出入。
    2017-11-08 23:44:00
    赞同 展开评论 打赏
  • 旺旺:nectar2。
    版主回复:

    请问您的ECS实例安全组规则是否放行了 3128 的 tcp端口了呢?

    -------------------------

    回 2楼(楚sir) 的帖子
    版主回复:

    请问您也是在CentOS系统上安装squid的吗?

    -------------------------

    版主回复:

    为您写了这个帖子《在 CentOS 7 系统里安装 squid》,希望对您有用:https://bbs.aliyun.com/read/568349.html

    -------------------------

    回 2楼(楚sir) 的帖子
    版主回复:

    写了这个帖子《在 CentOS 7 系统里安装 squid》,看看能否帮到您: https://bbs.aliyun.com/read/568349.html
    2017-11-08 21:54:17
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
如何运维千台以上游戏云服务器 立即下载
网站/服务器取证 实践与挑战 立即下载
ECS块储存产品全面解析 立即下载