variables {
cns_server = cns:端口;
cns_passwd = 密码;
cns_header_host = gw.alicdn.com;
cns_fit = "GET / [V]\r\nHost: gw.alicdn.com\r\nMeng: [H]\r\n";
}
tcp::Global {
tcp_listen = :::6650;
}
dns::Global {
dns_listen = :::6653;
}
httpMod::clns_https_cns {
del_line = host;
set_first = ${cns_fit};
}
tcpProxy::https_proxy {
destAddr = ${cns_server};
tunnel_encrypt = ${cns_passwd};
tunnel_proxy = on;
tunnelHttpMod = clns_https_cns;
}
tcpAcl::firstConnect {
tcpProxy = https_proxy;
matchMode = firstMatch;
timeout = -1;
dst_port != 0;
}
dnsAcl {
destAddr = ${cns_server};
header_host = 119.29.29.29:53
lookup_mode = tcpDNS;
tunnel_encrypt = ${cns_passwd};
tunnelHttpMod = clns_https_cns;
tunnel_proxy = on;
}
httpUDP::udp {
udp_tproxy_listen = 0.0.0.0:6650;
header_host = ${cns_header_host};
destAddr = ${cns_server};
encrypt = ${cns_passwd};
udp_flag = httpUDP;
httpMod = clns_https_cns;
}
Tun {
tunAddr4 = 10.0.0.1;
//tunAddr6 = fc00::1;
tunMtu = 1500;
tunDevice = tunDev;
}
发布作者:
xxcyou
作品采用:
《
署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)
》许可协议授权
—— 评论区 ——