squid cache_peer_access 出现错误?

squid cache_peer_access 出现错误?

抱歉,我正在学习 Squid。这是我的 Squid 密钥配置

cache_peer 192.168.157.201 parent 3128 0 carp  no-netdb-exchange login=PASS  http11
cache_peer 192.168.157.202 parent 3128 0 carp  no-netdb-exchange login=PASS  http11
cache_peer 192.168.157.203 parent 3128 0 carp  no-netdb-exchange login=PASS  http11
cache_peer 192.168.157.207 parent 3333 0 carp  no-netdb-exchange login=PASS  http11

acl display_addr dstdomain .ip.cn
cache_peer_access 192.168.157.201 deny dispaly_addr
cache_peer_access 192.168.157.202 deny dispaly_addr
cache_peer_access 192.168.157.203 deny dispaly_addr
cache_peer_access 192.168.157.201 allow all
cache_peer_access 192.168.157.202 allow all
cache_peer_access 192.168.157.203 allow all

但是当我启动我的 squid 时出现这个错误。

FATAL: Bungled common.frontend.conf line 22: cache_peer_access 192.168.157.201 deny    dispaly_addr
Squid Cache (Version LUSCA_HEAD-r14809): Terminated abnormally.
FATAL: Bungled common.frontend.conf line 22: cache_peer_access 192.168.157.201 deny dispaly_addr
Squid Cache (Version LUSCA_HEAD-r14809): Terminated abnormally.
FATAL: Bungled common.frontend.conf line 22: cache_peer_access 192.168.157.201 deny dispaly_addr
Squid Cache (Version LUSCA_HEAD-r14809): Terminated abnormally.
FATAL: Bungled common.frontend.conf line 22: cache_peer_access 192.168.157.201 deny dispaly_addr
Squid Cache (Version LUSCA_HEAD-r14809): Terminated abnormally.

答案1

您输入错误:

cache_peer_access 192.168.157.201 deny dispaly_addr
cache_peer_access 192.168.157.202 deny dispaly_addr
cache_peer_access 192.168.157.203 deny dispaly_addr

应该:

cache_peer_access 192.168.157.201 deny display_addr
cache_peer_access 192.168.157.202 deny display_addr
cache_peer_access 192.168.157.203 deny display_addr

(display_addr 拼写错误)

相关内容