clnc_UC直连
xxcyou
2023年02月28日 22:39 / 306 阅读 / 1 评论 / 正在检测是否收录...
#######UDP部分########
httpUDP::udp {
    //如果搭建了cns服务器可以删除下面的//(尽量不要搭建443端口)
    udp_tproxy_listen = 0.0.0.0:6650;
    udp_socks5_listen = 0.0.0.0:1081
    destaddr = 101.71.140.5:8128;
    httpMod = tunnel;
    //header_host = 1;
    //encrypt = 1;
}

tcp::Global {
    tcp_listen = :::6650;
}

//非标准端口转发另行处理
tcpProxy::https_cns_proxy {
    destaddr = 101.71.140.5:8128;
    tunnelHttpMod = tunnel;
    tunnel_proxy = on;
}
//HTTPS模式
httpMod::tunnel {
    del_line = host;
    set_first = "[M] [H]/ [V]\r\nProxy-Authorization: Basic dWMxMC43LjE2My4xNDQ6MWY0N2QzZWY1M2IwMzU0NDM0NTFjN2VlNzg3M2ZmMzg=\r\n";
}
//HTTP模式
httpMod::http {
    del_line = host;
    set_first = "[M] http://[H][U] [V]\r\nProxy-Authorization: Basic dWMxMC43LjE2My4xNDQ6MWY0N2QzZWY1M2IwMzU0NDM0NTFjN2VlNzg3M2ZmMzg=\r\n";
}

tcpProxy::http_proxy {
    //HTTP代理地址
    destaddr = 101.71.140.5:8128;
    httpMod = http;
}
tcpProxy::https_proxy {
    //HTTPS代理地址
    destaddr = 101.71.140.5:8128;
    tunnelHttpMod = tunnel;
    tunnel_proxy = on;
}

//ssl端口先建立CONNECT连接
tcpAcl::firstConnect {
    tcpProxy = https_proxy;
    matchMode = firstMatch;
    //读取数据后尝试匹配tcpAcl::http模块
    reMatch = http;

    dst_port = 443;
    dst_port = 8000;
    dst_port = 8080;
    dst_port = 8443;
    //continue: dst_port = 8443;
    //continue: dst_port = 33445;

}
//匹配普通http请求
tcpAcl::http {
    tcpProxy = http_proxy;

    continue: method != IS_NOT_HTTP|CONNECT;
    reg_string != WebSocket;
}

//匹配其他请求
tcpAcl::CONNECT {
    tcpProxy = https_cns_proxy;
    dst_port != 0;
    dst_port != 8080;
    dst_port != 443;
    dst_port != 80;
}


dns::Global {
    dns_listen = :::6653;
    cachePath = /dev/null;
}
dnsAcl {
    httpMod = http;
    //HTTP代理地址
    destaddr = 101.71.140.5:8128;
    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;
}
0

打赏

—— 评论区 ——

昵称
邮箱
网址
取消
  1. @
    头像
    蓝苍星
    Android 10   Microsoft Edge

    请问有电信的uc模式吗?卡是电信的,有阿里包,希望交流一下