Skip to content

Commit 456aa93

Browse files
committed
Remove proxy service link
1 parent e8b3e93 commit 456aa93

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

README.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
GFW 封锁了 HTTP/Socks5 代理,HTTP 代理是关键词过滤,Socks5 代理则是封锁协议。不过某些特殊的低端口并没有这么处理,已知的有 20,21,25。
77

8-
[这里](http://liruqi.github.io/jjproxy/) 提供了我在 [linode](https://www.linode.com/?r=cc93760c5a1b11a4d9c06ecfa4483bcce3d8f1e1) 上搭建的公共代理。
9-
108
搭建代理服务器
119
==============
1210

@@ -26,8 +24,7 @@ CentOS:
2624

2725
`yum install squid`
2826

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`
3028

3129
`/etc/init.d/squid start`
3230

33-
然后使用 [gfwlist2pac](https://github.com/clowwindy/gfwlist2pac) 生成 PAC 即可。

squid-centos.conf

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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

0 commit comments

Comments
 (0)