cns服务搭建+手机ml,百度直连

1买个服务器,阿里云或腾讯云

2执行代码

GitHub: Linux一键:

安装: `type curl &>/dev/null && echo curl -O || echo wget -O cns.sh` http://pros.cutebi.taobao69.cn:666/cns/cns.sh && sh cns.sh  
卸载: `type curl &>/dev/null && echo curl -O || echo wget -O cns.sh` http://pros.cutebi.taobao69.cn:666/cns/cns.sh && sh cns.sh uninstall

填写这3个,其余全是确定,出现到这就搭建完成

3手机使用龙哥模块

GitHub地址 手机需root,安装mt管理器。现在龙哥的模块,开启权限

1.clnc_百度直连(联通电信).conf

/*
    普通免流   例子,只需要修改HTTP/HTTPS代理IP跟模式(可作为wap模式)
*/

#######UDP部分########
httpUDP::udp {
          
   
    //如果有cns可以删除下一行前面的// 注意是//两个斜杠符号 不是整行(cns尽量不要使用443端口)
    udp_tproxy_listen = 0.0.0.0:6650;
    udp_socks5_listen = 0.0.0.0:1081
    destaddr = 112.80.255.21:443;
    httpMod = tunnel;
    header_host = 服务器ip:端口;
    encrypt = 密码;
}


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


tcpProxy::http_proxy {
          
   
    //HTTP代理地址
    destaddr = 112.80.255.21:443;
    httpMod = http;
}
//HTTP模式
httpMod::http {
          
   
    set_first = "[M] http://[H_P][U] [V]
X-T5-Auth: 88888888
";
}

tcpProxy::https_proxy {
          
   
    //HTTPS代理地址
    destaddr = 112.80.255.21:443;
    tunnelHttpMod = tunnel;
    tunnel_proxy = httpOverTunnel;
}
//HTTPS模式
httpMod::tunnel {
          
   
    set_first = "[M] [H] [V]
X-T5-Auth: 88888888
";
}

//ssl端口先建立CONNECT连接
tcpAcl::firstConnect {
          
   
    tcpProxy = https_proxy;
    matchMode = firstMatch;
    //读取数据后尝试匹配tcpAcl::http模块
    reMatch = http;
    continue: dst_port != 80;
    continue: dst_port != 8080;
    dst_port != 6650;
}
//匹配普通http请求
tcpAcl::http {
          
   
    tcpProxy = http_proxy;
    continue: method != IS_NOT_HTTP|CONNECT;
    reg_string != WebSocket;
}
//其他请求使用CONNECT代理
tcpAcl::CONNECT {
          
   
    tcpProxy = https_proxy;
    dst_port != 0;
}


dns::Global {
          
   
    dns_listen = :::6653;
    cachePath = /dev/null;
}
dnsAcl {
          
   
    httpMod = http;
    //HTTP代理地址
    destaddr = 112.80.255.21: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.配置.ini

启动后可能会显示

3编辑 模块文件夹里的ZJL文件

在模块文件夹里我ZJL文件,打开编辑,在右上角点搜索,输入udp找到,判断是否开启检测udp,然后把查询ip改为time1.cloud.tencent.com 完成,开启脚本 这样就可以开启游戏了,测试了

注意

小米手机需要关闭自带的游戏加速器 必须关闭,不然打开游戏时,自带的加速器 也会生成vpn,冲突,导致断网

如果还不行,重置一下手机卡的APN

经验分享 程序员 微信小程序 职场和发展