Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

sing-box和Nekobox多协议搭建使用

sing-box搭建各种协议,配合nekbox客户端使用教程!

Sing-box特点

优点

  • 几乎支持所有协议,包括Socks、Vmess、Vless, Reality, Shadowsocks、shadowtls、Hysteria2、Tuic、Trojan等等
  • 使用JSON配置文件,支持分流、自定义规则、自定义DNS等等
  • 安卓/iOS/iPadOS/macOS 有图形化界面客户端,且更新活跃

缺点

  • 自述文档不够完善,上手较难。
  • Linux/Windows没有图形化界面客户端,小白难上手。

Nekobox特点

目前最强大的网络代理客户端平台,几乎支持所有协议。在ios/安卓/windows/linux均有图形化界面,操作简单,兼容性高,支持多类型订阅(shadowsocks\clash\v2rayN)

接下来,我们使用sing-box搭建多协议节点,包括最新的Hysteria2,Tuic,Reality等等。然后使用Nekobox在windows电脑、安卓手机上演示使用。

操作步骤

1.以vutrl为例,购买一台VPS。进入vutrl 进入搬瓦工 搬瓦工套餐方案

2.使用finalshell连接VPS,安装Sing-box

sing-box一键安装脚本:来自github开源项目

bash <(wget -qO- https://raw.githubusercontent.com/fscarmen/sing-box/main/sing-box.sh)

脚本中如果你想使用vmess或vless带CDN的节点那么你需要有一个域名,在Namesilo上1美元可购买。并解析到cloudflare上托管。点击进入域名购买解析教程
解析域名后进行端口回源设置,就是让80和443端口通过CF让其映射到服务器的8887和8888的非标端口,防止了标端的封锁。这种方式的vmess和vless节点在客户端可以优选IP来优化速度。

图一,解析域名,推荐用三级域名。

图二,端口回源

记得开启防火墙端口80、443。以及脚本中需要的8881-8890端口,包括TCP和UDP

sudo ufw allow 8881:8890/tcp
sudo ufw allow 8881:8890/udp
sudo ufw allow 80
sudo ufw allow 443
# Ubuntu或Debian命令

sudo firewall-cmd --zone=public --add-port=8881-8890/tcp --permanent
sudo firewall-cmd --zone=public --add-port=8881-8890/udp --permanent

sudo firewall-cmd --zone=public --add-port=80/tcp --add-port=443/tcp --permanent

sudo firewall-cmd --reload
# CentOS命令

3.Nekobox(pc端也叫nekray)的使用

把脚本中的节点信息导入到nekobox,体验各种协议的使用,爱用哪个用哪个,爱怎么玩怎么玩。可根据时间段或者需要随便切换协议。同时在nekobox中可实现链式代理或者网络分流等骚操作。

点击观看视频教程

总结

以上就是最强代理工具的组合,服务端sing-box和客户端nekobox的强强联合,让我们操作自如。

clash岀库了,但是sing-box功能完全可替代clash,而且某些功能已经超过clash,更新非常活跃,支持的协议比v2rayN多,这就意味着不用去下载内核去来回替换了。不久,sing-box必将成为网络代理的主流工具,目前就是缺少教学文档和windows图形界面,这个应该很快就能补上!

72 评论

留下评论

您的电子邮箱地址不会被公开。 必填项已用 * 标注

  1. Hey I am so thrilled I found your blog page, I really found you by accident,
    while I was searching on Digg for something else, Regardless I am here now and
    would just like to say thank you for a tremendous post and a all round entertaining blog (I
    also love the theme/design), I don’t have time to go through it all
    at the moment but I have bookmarked it and also added in your RSS feeds, so when I have time I will
    be back to read a lot more, Please do keep up the excellent work.

    My homepage: vpn 2024

  2. After checking out a handful of the blog articles on your web site, I
    honestly appreciate your way of blogging. I saved it to my bookmark website list and will
    be checking back in the near future. Please check out my web site too and tell
    me your opinion.

    Here is my website … vpn 2024

  3. Howdy, i read your blog occasionally and i own a similar one and i was just wondering
    if you get a lot of spam remarks? If so how do you
    stop it, any plugin or anything you can advise? I get so much
    lately it’s driving me crazy so any support is very much appreciated.

    Feel free to surf to my page vpn 2024

  4. Hi there! This is kind of off topic but I need some advice from
    an established blog. Is it difficult to set up your own blog?
    I’m not very techincal but I can figure things
    out pretty fast. I’m thinking about creating my own but I’m not sure where to
    begin. Do you have any tips or suggestions?
    Cheers

    Also visit my page: vpn coupon code 2024

  5. Hello, I do believe your site could be having internet browser compatibility issues.
    When I look at your site in Safari, it looks fine however when opening in Internet Explorer, it has some overlapping
    issues. I simply wanted to give you a quick heads up! Other than that,
    wonderful blog!

    Here is my page … vpn special