Commit 456aa93 1 parent e8b3e93 commit 456aa93 Copy full SHA for 456aa93
File tree 2 files changed +30
-4
lines changed
2 files changed +30
-4
lines changed Original file line number Diff line number Diff line change 5
5
6
6
GFW 封锁了 HTTP/Socks5 代理,HTTP 代理是关键词过滤,Socks5 代理则是封锁协议。不过某些特殊的低端口并没有这么处理,已知的有 20,21,25。
7
7
8
- [ 这里] ( http://liruqi.github.io/jjproxy/ ) 提供了我在 [ linode] ( https://www.linode.com/?r=cc93760c5a1b11a4d9c06ecfa4483bcce3d8f1e1 ) 上搭建的公共代理。
9
-
10
8
搭建代理服务器
11
9
==============
12
10
@@ -26,8 +24,7 @@ CentOS:
26
24
27
25
` yum install squid `
28
26
29
- ` wget -O /etc/squid/squid.conf https://raw.githubusercontent.com/liruqi/jjproxy/4e9c08f421f80651d78cdcd6d0a33b0cda64f0ce /squid.conf `
27
+ ` wget -O /etc/squid/squid.conf https://raw.githubusercontent.com/liruqi/jjproxy/master /squid-centos .conf `
30
28
31
29
` /etc/init.d/squid start `
32
30
33
- 然后使用 [ gfwlist2pac] ( https://github.com/clowwindy/gfwlist2pac ) 生成 PAC 即可。
Original file line number Diff line number Diff line change
1
+ acl manager proto cache_object
2
+
3
+ acl localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
4
+ acl SSL_ports port 443
5
+ acl Safe_ports port 80 # http
6
+ acl Safe_ports port 21 # ftp
7
+ acl Safe_ports port 443 # https
8
+ acl Safe_ports port 70 # gopher
9
+ acl Safe_ports port 210 # wais
10
+ acl Safe_ports port 1025-65535 # unregistered ports
11
+ acl Safe_ports port 280 # http-mgmt
12
+ acl Safe_ports port 488 # gss-http
13
+ acl Safe_ports port 591 # filemaker
14
+ acl Safe_ports port 777 # multiling http
15
+ acl CONNECT method CONNECT
16
+ http_access allow manager localhost
17
+ http_access deny manager
18
+ http_access deny !Safe_ports
19
+ http_access deny CONNECT !SSL_ports
20
+ http_access allow all
21
+
22
+ http_port 25
23
+ coredump_dir /var/spool/squid3
24
+ refresh_pattern ^ftp: 1440 20% 10080
25
+ refresh_pattern ^gopher: 1440 0% 1440
26
+ refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
27
+ refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880
28
+ refresh_pattern . 0 20% 4320
29
+ strip_query_terms off
You can’t perform that action at this time.
0 commit comments