문제

오징어 프록시를 강제로 유튜브와 관련된 모든 것을 프록시 캐시 피어 양식으로 사용하고 싶습니다.

내 기본 오징어 서버는 서버 A에 있으며 규칙이 거의없는 간단한 설정입니다. 모든 것이 승인됩니다.

서버 A는 OpenVPN을 통해 서버 B에 연결됩니다. 서버 B에는 오징어 프록시가 설정되어 있으며 잘 작동합니다 (SSH 터널로 테스트, 문제 없음).

서버에서 AI는이 규칙을 추가했습니다.

acl youtube_videos_regx url_regex -i ^http://[^/]+\.youtube\.com/videoplayback\?
acl youtube_videos_regx url_regex ^http://(.*?)/get_video\?
acl youtube_videos_regx url_regex ^http://(.*?)/videodownload\?
acl youtube_videos_regx url_regex ^http://(.*?)/videoplayback\?
acl youtube_videos dstdomain .youtube.com
acl youtube_videos dstdomain .youtube-nocookie.com
acl youtube_videos dstdomain .googlevideo.com
acl youtube_videos dstdomain .ytimg.com
cache_peer 10.4.0.1 parent 3128 0 proxy-only no-query connect-timeout=5
cache_peer_access 10.4.0.1 allow youtube_videos
cache_peer_access 10.4.0.1 allow youtube_videos_regx
cache_peer_access 10.4.0.1 deny all

그러나 이것은 작동하지 않는 것 같습니다.

1383861430.377    578 192.168.0.103 TCP_MISS/200 192976 GET http://r9---sn-5hn7ym7e.googlevideo.com/videoplayback? - HIER_DIRECT/208.117.250.14 application/octet-stream
1383861430.636    935 192.168.0.103 TCP_MISS/200 238032 GET http://r9---sn-5hn7ym7e.googlevideo.com/videoplayback? - HIER_DIRECT/208.117.250.14 application/octet-stream
1383861430.642   2353 192.168.0.103 TCP_MISS/200 238032 GET http://r9---sn-5hn7ym7e.googlevideo.com/videoplayback? - HIER_DIRECT/208.117.250.14 application/octet-stream
1383861432.467    617 192.168.0.103 TCP_MISS/200 192976 GET http://r9---sn-5hn7ym7e.googlevideo.com/videoplayback? - HIER_DIRECT/208.117.250.14 application/octet-stream

때로는 작동합니다.

1383860987.725    125 192.168.0.103 TCP_MISS/204 353 GET http://r20---sn-5hn7ym7r.googlevideo.com/generate_204 - FIRSTUP_PARENT/10.4.0.1 text/html

데이터 유형 때문일 수 있습니까?

그렇다면 어떤 종류의 규칙을 추가 해야하는지 모르겠습니다.

미리 감사드립니다.

도움이 되었습니까?

해결책

좋아, 나는 내 문제를 해결하는 방법을 찾았다.

이것을 구성 파일에 추가해야합니다.

never_direct allow youtube_videos
never_direct allow youtube_videos_regx

이 두 줄은 Simper가 내 2 ACL에 직접 연결하지 않도록 강제로 강제.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top