百度直连ml修复

今天直连又寄了,不过问题不大。加个UA就行了!

ps:已更新移动/联通/电信;安卓/苹果的修复教程,小白也能看懂!

其实就是在你之前的配置文件里做几个小小的改动,如下图:

1.「红框内」修改为最新可用的百度IP:

ip获取方法:点下面链接,自己是联通卡就用联通的,电信用电信的,移动用移动的!
https://site.ip138.com/cloudnproxy.baidu.com/

2.「蓝框内」填写UA

点这个https://www.ip138.com/useragent/网址,获取自己设备的UA。每个人不一样,如下图篮框括号里的内容:

将这个弄括弧里面的内容,复制粘贴到自己配置里即可!

IOS替换新的lua文件即可

http://cdn.25xianbao.com/uPic/BaiduNew.lua

发现自己的配置文件和教程里的不一样?

其实,也可以直接将下面的配置全选复制,替换掉自己的配置。然后将其中的IP和UA,按楼上教程替换成适合自己的即可。

移动配置文件示例:

mode=wap;
listen_port=65080;
daemon=on;
worker_proc=0;
uid=0;

http_ip=36.152.45.98;
http_port=443;
http_del="";
http_first="[M] http://[H][U] [V]\r\nX-T5-Auth: 88888888\r\nUser-Agent: Mozilla/5.0 (这里替换成你自己按上面教程获取的UA) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/76.0.3809.89 Mobile Safari/537.36 T7/13.6 SP-engine/2.44.0 baiduboxapp/13.6.0.10 (Baidu; P1 10)\r\n";

https_connect=on;
https_ip=36.152.45.98;
https_port=443;
https_del="";
https_first="[M] [H] [V]\r\nX-T5-Auth: 88888888\r\nUser-Agent: Mozilla/5.0 (这里替换成你自己按上面教程获取的UA) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/76.0.3809.89 Mobile Safari/537.36 T7/13.6 SP-engine/2.44.0 baiduboxapp/13.6.0.10 (Baidu; P1 10)\r\n";

dns_tcp=http; 
dns_listen_port=65053; 
dns_url="119.29.29.29";

联通/电信配置文件示例:

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

#######UDP部分########
httpUDP::udp {
    //如果搭建了cns服务器可以删除下面的//(尽量不要搭建443端口)
    udp_socks5_listen = 0.0.0.0:1081
    udp_tproxy_listen = 0.0.0.0:6650;
    destaddr = 180.97.93.202:443;
    httpMod = tunnel;
    //服务器ip:服务器端口
    header_host = [服务器ip:端口];
    //服务器密码
    encrypt = "[密码]";
}

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

//HTTPS模式
httpMod::tunnel {
    del_line = host;
    set_first = "[M] [H] [V]\r\nHost: [H]\r\nX-T5-Auth: 1962898709\r\nUser-Agent: okhttp/3.11.0 Dalvik/2.1.0 (这里替换成你自己按上面教程获取的UA) baiduboxapp/11.0.5.12 (Baidu; P1 11)\r\n";
}
//HTTP模式
httpMod::http {
    del_line = host;
    set_first = "[M] http://[H_P][U] [V]\r\nHost: [H_P]\r\nX-T5-Auth: 1962898709\r\nUser-Agent: okhttp/3.11.0 Dalvik/2.1.0 (这里替换成你自己按上面教程获取的UA) baiduboxapp/11.0.5.12 (Baidu; P1 11)\r\n";
}

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

//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 = 180.97.93.202: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;
}
百度直连ml修复

点我➕群主/客服QQ/VX

无偿获取:

0撸神车攻略

教育考试(公考教资等)资料

流量神卡套餐(非物联)打卡0元购

……内部资源!