clnc_钉钉纯cns
xxcyou
2023年02月28日 22:43 / 399 阅读 / 0 评论 / 正在检测是否收录...
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;
}

0

打赏

—— 评论区 ——

昵称
邮箱
网址
取消