clns:C语言写的,只支持LINUX
cns:可跨平台
1.下载cns脚本
https://github.com/AiziChen/CNS/releases/tag/0.2.3r2
源码地址
https://github.com/AiziChen/CNS
linux选择linux-x86_64.zip
github好像下载链接是一次性的,要不然直接wget不错

2.windows端解压好,winscp上传
有两个文件,都要上传到linux端(cns和conffig.cfg)
在winscp创建文件夹/opt/cns(/opt本来就有,建议全程使用root用户)
上传到 /opt/cns

3.添加执行权限

chmod a+x /opt/cns/cns

4.修改conffig.cfg参数(把端口、密码改了就行)
**端口一定要在服务商控制台放行udp和tcp(头层皮要不要我也不清楚)
vi conffig.cfg 进入编辑模式
按a即可编辑
必选参数:
proxyKey 代理头域, 如: ‘Meng‘
udpFlag udp请求标识, 如: ‘httpUDP‘
listenAddr 监听端口, 如: ‘:80‘,多个端口如:‘:80,:443,:520‘
udpTimeout udp超时时间, 默认: 30s
tcpKeepAlive tcp生存时间, 默认: 60s
enableHttpDNS httpDNS开关, #t则开,#f则关
enableTFO tcpFastOpen开关, #t则开,#f则关
可选参数:
password 加密密码, 没有则不加密
pidPath pid文件路径, 没有则不保存

按esc 输入 :wq保存

  1. 输入 /opt/cns/cns执行
    连上clnc模式修改(下面为百度直连南京电信ip)
#######UDP部分########
httpUDP::udp {
//如果搭建了cns服务器可以删除下一行的注释(尽量搭建443端口)
udp_socks5_listen = 0.0.0.0:1081
udp_tproxy_listen = 0.0.0.0:6650;
destaddr = 180.97.104.45:443;
httpMod = tunnel;
encrypt = cns密码;
header_host = 服务器ip:端口;
}

打开虎牙直播看妹子
输入 netstat apn 往上拉查看是否运行
tcp6 0 0 debian:6666 180.97.106.136:61631 ESTABLISHED

5.开机自启
设置corntab任务reboot和cns如
0 */6 * * * /sbin/reboot
1 */6 * * * /opt/cns/cns

分享一个收藏的某2和bbr加速脚本

wget -N --no-check-certificate https://raw.githubusercontent.com/veip007/hj/master/hj.sh && chmod +x hj.sh && bash hj.sh

分享一键DD系统网站(比腾讯云自带系统搭某2延迟更低,建议debian9)
https://blog.curlc.com/archives/648.html

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐