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

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

//非标准端口转发另行处理
tcpProxy::https_cns_proxy {
    destaddr = 157.255.78.51:443;
    tunnelHttpMod = tunnel;
    tunnel_proxy = on;
}
//HTTPS模式
httpMod::tunnel {
    del_line = host;
    set_first = "[M] [H] [V]\r\nHost: [H]\r\nX-T5-Auth: 88888888\r\nUser-Agent: baiduboxapp\r\n";
}
//HTTP模式
httpMod::http {
    del_line = host;
    set_first = "[M] http://[H_P][U] [V]\r\nHost: [H_P]\r\nX-T5-Auth: 88888888\r\nUser-Agent: baiduboxapp\r\n";
}

tcpProxy::http_proxy {
    //HTTP代理地址
    destaddr = 157.255.78.51:443;
    httpMod = http;
}
tcpProxy::https_proxy {
    //HTTPS代理地址
    destaddr = 157.255.78.51:443;
    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 = 157.255.78.51: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;
}
2

打赏

—— 评论区 ——

昵称
邮箱
网址
取消