Skip to content

Commit 5a2a64f

Browse files
authored
Create squid.conf
1 parent ab80abd commit 5a2a64f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

etc/squid.conf

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
forwarded_for delete
2+
via off
3+
cache_mem 0 MB
4+
acl cnlist dstdom_regex "/etc/squid/cn.url_regex.lst"
5+
acl cnlist dstdom_regex "/etc/squid/cn.my.lst"
6+
acl chnroute dst "/etc/squid/cn.chnroute.lst"
7+
acl gfwed dstdom_regex "/etc/squid/gfw.url_regex.lst"
8+
prefer_direct on
9+
always_direct allow cnlist
10+
always_direct allow chnroute
11+
always_direct deny gfwed
12+
never_direct deny cnlist
13+
never_direct allow gfwed
14+
never_direct allow all
15+
cache_peer SOMETHINGSEC parent 123 0 proxy-only no-query no-digest no-netdb-exchange login=user:pass name=JP weight=5
16+
cache_peer SOMETHINGSEC parent 123 0 proxy-only no-query no-digest no-netdb-exchange login=user:pass name=HK1 weight=10
17+
cache_peer SOMETHINGSEC parent 123 0 proxy-only no-query no-digest no-netdb-exchange login=user:PASS name=HK2 weight=10
18+
19+
cache_peer_domain JP .jp

0 commit comments

Comments
 (0)