forked from vittary/ML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Baidu-clnc.conf
94 lines (82 loc) · 2.17 KB
/
Baidu-clnc.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/*
普通免流 例子,只需要修改HTTP/HTTPS代理IP跟模式(可作为wap模式)
*/
#######UDP部分########
httpUDP::udp {
//如果搭建了cns服务器可以删除下面的//(尽量不要搭建443端口)
//udp_socks5_listen = 0.0.0.0:1081
//udp_tproxy_listen = 0.0.0.0:6650;
destaddr = 153.3.236.22:443;
httpMod = tunnel;
header_host = IP:端口;
encrypt = 密码;
}
tcp::Global {
tcp_listen = :::6650;
}
//HTTPS模式
httpMod::tunnel {
del_line = host,X-T5-Auth,User-Agent;
set_first = "[M] [H] [V]\r\nHost: [H]\r\nX-T5-Auth: 1962898709\r\nUser-Agent: Dalvik/2.1.0 (Linux; U; Android 11; Build/RP1A.200720.011) baiduboxapp/13.10.0.10 (Baidu; P1 11)\r\n";
}
//HTTP模式
httpMod::http {
del_line = host,X-T5-Auth,User-Agent;
set_first = "[M] http://[H_P][U] [V]\r\nHost: [H_P]\r\nX-T5-Auth: 1962898709\r\nUser-Agent: Dalvik/2.1.0 (Linux; U; Android 11; Build/RP1A.200720.011) baiduboxapp/13.10.0.10 (Baidu; P1 11)\r\n";
}
tcpProxy::http_proxy {
//HTTP代理地址
destaddr = 153.3.236.22:443;
httpMod = http;
}
tcpProxy::https_proxy {
//HTTPS代理地址
destaddr = 153.3.236.22:443;
tunnelHttpMod = tunnel;
tunnel_proxy = on;
}
//ssl端口先建立CONNECT连接
tcpAcl::firstConnect {
tcpProxy = https_proxy;
matchMode = firstMatch;
//读取数据后尝试匹配tcpAcl::http模块
reMatch = http;
continue: dst_port != 80;
continue: dst_port != 8080;
dst_port != 6650;
}
//匹配普通http请求
tcpAcl::http {
tcpProxy = http_proxy;
continue: method != IS_NOT_HTTP|CONNECT;
reg_string != WebSocket;
}
//其他请求使用CONNECT代理
tcpAcl::CONNECT {
tcpProxy = https_proxy;
dst_port != 0;
}
dns::Global {
dns_listen = :::6653;
cachePath = /dev/null;
}
dnsAcl {
httpMod = http;
//HTTP代理地址
destaddr = 153.3.236.22:443;
header_host = 119.29.29.29;
query_type = A;
//query_type = AAAA;
}
//用于接收socks5请求
socks5::recv_socks5 {
socks5_listen = 0.0.0.0:1081;
socks5_dns = 127.0.0.1:6653;
handshake_timeout = 60;
}
Tun {
tunAddr4 = 10.0.0.1;
tunAddr6 = fc00::1;
tunMtu = 1500;
tunDevice = tunDev;
}