无法让远程用户使用 Squid

无法让远程用户使用 Squid

我正在尝试设置 squid 3.2.4,但无法让它为远程用户工作。本地运行良好。无法弄清楚我做错了什么...

http_port 3128 transparent ssl-bump generate-host-certificates=on dynamic_cert_mem_cache_size=4MB cert=/usr/share/ssl-cert/myCA.pem

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

cache deny all

via off
forwarded_for off

header_access From deny all
header_access Server deny all
header_access WWW-Authenticate deny all
header_access Link deny all
header_access Cache-Control deny all
header_access Proxy-Connection deny all
header_access X-Cache deny all
header_access X-Cache-Lookup deny all
header_access Via deny all
header_access Forwarded-For deny all
header_access X-Forwarded-For deny all
header_access Pragma deny all
header_access Keep-Alive deny all

acl ip1 localip 1.1.1.90
acl ip2 localip 1.1.1.91
acl ip3 localip 1.1.1.92
acl ip4 localip 1.1.1.93
acl ip5 localip 1.1.1.94
tcp_outgoing_address 1.1.1.90 ip1
tcp_outgoing_address 1.1.1.91 ip2
tcp_outgoing_address 1.1.1.92 ip3
tcp_outgoing_address 1.1.1.93 ip4
tcp_outgoing_address 1.1.1.94 ip5
tcp_outgoing_address 1.1.1.90

答案1

你的 squid 机器知道这些“远程用户”的路线吗?

您能解释一下您的本地网络和远程用户吗?远程用户有什么问题?超时?禁止?

相关内容