可能是完美的UA,在原UA的基础上加上baiduboxapp
其实UA的作用不算大,个别app会通过UA来判断是否在客户端访问,保留着原UA比较好。
UA查询地址(用于查看开启免流后的UA): 点击查询
clnc1.1.1 点击下载 密码:5fex

CLNC1.1.1支持UA版配置文件:
/* 普通免流 例子,只需要修改HTTP/HTTPS代理IP跟模式(可作为wap模式) */ variables { http_dst = 180.97.104.168:443; http_header = "[M] http://[H_P][U] [V]\r\nHost: [H_P]\r\nX-T5-Auth: 1967948331\r\nUser-Agent: use_value(User-Agent) baiduboxapp\r\n"; tunnel_dst = 180.97.104.168:443; tunnel_header = "[M] [H] [V]\r\nHost: [H]\r\nX-T5-Auth: 1967948331\r\nUser-Agent: use_value(User-Agent) baiduboxapp\r\n"; //二级代理,cns尽量443端口 cns_server = [服务器地址]:[服务器端口]; cns_passwd = [加密密码]; } #######UDP部分######## httpUDP::udp { udp_socks5_listen = 0.0.0.0:1081 udp_tproxy_listen = 0.0.0.0:6650; //如果使用cns服务器请删除下面的斜杠 //destaddr = ${tunnel_dst}; httpMod = tunnel; encrypt = ${cns_passwd}; header_host = ${cns_server}; } tcp::Global { tcp_listen = :::6650; } tcpProxy::http_proxy { //HTTP代理地址 destaddr = ${http_dst}; httpMod = http; } //HTTP模式 httpMod::http { save_line = "User-Agent" -> "0" del_line = host; del_line = User-Agent; set_first = ${http_header}; } tcpProxy::https_proxy { //HTTPS代理地址 destaddr = ${tunnel_dst}; tunnelHttpMod = tunnel; tunnel_proxy = on; } //HTTPS模式 httpMod::tunnel { save_line = "User-Agent" -> "0" del_line = host; del_line = User-Agent; set_first = ${tunnel_header}; } //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 = ${http_dst}; 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; }
发表评论