Squid 4.1에서 중복되는 dstdomains 항목에 대한 예외 동작

Squid 4.1에서 중복되는 dstdomains 항목에 대한 예외 동작

선적 서류 비치, dstdomain을 사용하고 목록에 항목이 겹치는 경우 Squid는 경고 메시지를 생성해야 합니다. 예를 들어 내 파일에는 다음이 있습니다 /etc/squid/squid.conf.

acl dst_domains dstdomain "/etc/squid/dst_domains.txt"
http_access allow localnet dst_domains

그리고 /etc/squid/dst_domains.txt다음과 같이 겹치는 부분이 포함되어 있습니다.

.googlecloud.com
.updates.googlecloud.com
test.updates.googlecloud.com

실제로 다음 위치에 경고 메시지가 표시됩니다 /var/log/squid/cache.log.

2023/09/08 19:31:21 kid1| WARNING: '.updates.googlecloud.com' is a subdomain of '.googlecloud.com'
2023/09/08 19:31:21 kid1| WARNING: You should remove '.updates.googlecloud.com' from the ACL named 'dst_domains'
2023/09/08 19:31:21 kid1| WARNING: 'test.updates.googlecloud.com' is a subdomain of '.googlecloud.com'
2023/09/08 19:31:21 kid1| WARNING: You should remove 'test.updates.googlecloud.com' from the ACL named 'dst_domains'

그러나 여기에 비슷한 중복이 있습니다.

us-docker.pkg.dev
.pkg.dev

대신 오류가 발생하고 오징어가 종료됩니다.

2023/09/08 19:47:47 kid1| ERROR: 'us-docker.pkg.dev' is a subdomain of '.pkg.dev'
2023/09/08 19:47:47 kid1| ERROR: You need to remove 'us-docker.pkg.dev' from the ACL named 'dst_domains'
2023/09/08 19:47:47 kid1| storeDirWriteCleanLogs: Starting...
2023/09/08 19:47:47 kid1|   Finished.  Wrote 0 entries.
2023/09/08 19:47:47 kid1|   Took 0.03 seconds (  0.00 entries/sec).
2023/09/08 19:47:47 kid1| FATAL: Bungled /etc/squid/squid.conf line 57: acl dst_domains dstdomain "/etc/squid/dst_domains.txt"
2023/09/08 19:47:47 kid1| Squid Cache (Version 4.13): Terminated abnormally.

누구든지 이 동작을 설명할 수 있나요? 실제로는 일반 트리거 경고와 더 구체적으로 겹치는 것처럼 보이지만 구체적으로는 트리거 생성 오류가 뒤따릅니다.

답변1

내 발견답변; 예, 이는 예상된(그러나 바람직하지 않은) 동작입니다.

관련 정보