squid代理错误403 tcp如何修复

时间:2016-03-30 21:11:23

标签: ubuntu proxy ubuntu-14.04 squid http-proxy

你好我们正在安装squid作为HTTP代理从谷歌抓取网址用我配置的所有东西的工具但是当我连接到squid它给tcp 403错误我有ubuntu14.04我没有改变它的默认设置只是更改HTTP_access拒绝所有允许和所有相同我想使用该代理刮取目的应该是它的配置文件请帮助我从2天以上搜索的东西。

http_port 3128

refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern .               0       20%     4320

acl localnet src 10.0.0.0/8     # RFC 1918 possible internal network
acl localnet src 172.16.0.0/12  # RFC 1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC 1918 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          # https

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 deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
http_access allow localnet
http_access allow localhost
http_access deny all

1 个答案:

答案 0 :(得分:1)

错误403表示禁止访问。

更改问题的最后一行:

http_access deny all

http_access allow all