鱿鱼3.5控制通过IP访问不起作用

问题描述

我只接受来自固定IP地址aaa.aaa.aaa.aaa的请求,拒绝来自其他IP的请求

以下是我的squid.conf 它工作了一段时间,但不再起作用。 任何人都可以告诉我我的conf是否有错误?

ubuntu 18 鱿鱼3.5

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 deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
http_access allow localhost
coredump_dir /var/spool/squid
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern (Release|Packages(.gz)*)$      0       20%     2880
refresh_pattern .               0       20%     4320
http_port xxx.xxx.xxx.xxx:8880 name=8880

acl myip00 myportname 8880 src aaa.aaa.aaa.aaa
http_access allow myip00
tcp_outgoing_address xxx.xxx.xxx.xxx myip00

request_header_access X-Forwarded-For deny all
request_header_access From deny all
request_header_access Via deny all
dns_nameservers 8.8.8.8
http_access deny all

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...