forked from mmmdbybyd/CLNC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clnc.conf.cnsForListen
executable file
·64 lines (52 loc) · 1.58 KB
/
clnc.conf.cnsForListen
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
/*
配合服务器cns配置,从监听端口获取数据 例子,只需要修改[]的内容
*/
tcp::Global {
tcp_listen = 0.0.0.0:1082;
timeout = 60;
}
httpMod::clns_https_request {
del_line = host;
//伪装成CONNECT
set_first = "[M] dm.toutiao.com [V]\r\nHost: m.client.10010.com\r\nMeng: [H]\r\n";
//伪装成POST
//set_first = "POST http://dm.toutiao.com/ [V]\r\nHost: m.client.10010.com\r\nMeng: [H]\r\n";
//伪装成WS
//set_first = "GET /ws HTTP/1.1\r\nMeng: [H]\r\nHost: dm.toutiao.com\r\nConnection: Upgrade\r\nSec-WebSocket-Key: Cute Linux Network\r\nSec-WebSocket-Version: 13\r\nUpgrade: websocket\r\nOrigin: http://dm.toutiao.com/\r\n";
}
tcpProxy::https_proxy {
destAddr = [服务器IP]:[服务器端口];
tunnel_encrypt = [加密密码];
tunnel_proxy = on;
tunnelHttpMod = clns_https_request;
}
tcpAcl::firstConnect {
tcpProxy = https_proxy;
matchMode = firstMatch;
timeout = -1;
dst_port != 0;
}
dns::Global {
dns_listen = 0.0.0.0:6653;
cachePath = /dev/null;
}
dnsAcl {
destaddr = [服务器IP]:[服务器PORT];
header_host = 8.8.8.8:53;
tunnelHttpMod = clns_https_request;
tunnel_encrypt = [加密密码];
lookup_mode = tcpDNS;
}
httpUDP::udp {
udp_tproxy_listen = 0.0.0.0:1082;
udp_socks5_listen = 0.0.0.0:1081;
destAddr = [服务器IP]:[服务器端口];
encrypt = [加密密码];
header_host = dm.toutiao.com;
httpMod = clns_https_request;
}
//用于接收socks5请求
socks5::recv_socks5 {
socks5_listen = 0.0.0.0:1081;
socks5_dns = 127.0.0.1:6653;
}