发布作者: vkjia
百度收录: 正在检测是否收录...
作品采用: 《 署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0) 》许可协议授权
bash <(wget -qO- https://raw.githubusercontent.com/yonggekkk/sing-box-yg/main/sb.sh)
选1回车
1、是,执行 (回车默认)
2、否,跳过!自行处理
请选择【1-2】:
执行开放端口,关闭防火墙完毕
回车继续
1:使用1.10系列正式版内核 (回车默认)
2:使用1.10系列之后最新正式版内核
请选择【1-2】:
回车继续
1:否!继续使用自签的证书 (回车默认)
2:是!使用Acme-yg脚本申请Acme证书 (支持常规80端口模式与Dns API模式)
请选择【1-2】:
回车继续
1:自动生成每个协议的随机端口 (10000-65535范围内),回车默认
2:自定义每个协议端口
请输入【1-2】:
回车继续
1:使用IPV4配置输出 (回车默认)
2:使用IPV6配置输出
请选择【1-2】:
回车继续
至此节点就已搭建完成。
连接主机...
java.net.ConnectException: Connection refused: connect
连接主机...
连接主机成功
root@vkjia-amd-1c1g-250720:~# bash <(wget -qO- https://raw.githubusercontent.com/yonggekkk/sing-box-yg/main/sb.sh)
首次安装Sing-box-yg脚本必要的依赖……
Hit:1 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:3 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:4 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble-backports InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
113 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
jq is already the newest version (1.7.1-3build1).
jq set to manually installed.
cron is already the newest version (3.0pl1-184ubuntu2).
cron set to manually installed.
iptables-persistent is already the newest version (1.0.20).
coreutils is already the newest version (9.4-3ubuntu6).
coreutils set to manually installed.
The following additional packages will be installed:
bsdextrautils bsdutils eject fdisk libblkid1 libfdisk1 libmount1 libsmartcols1 libuuid1 mount uuid-runtime
Suggested packages:
util-linux-extra util-linux-locales
The following NEW packages will be installed:
socat
The following packages will be upgraded:
bsdextrautils bsdutils eject fdisk libblkid1 libfdisk1 libmount1 libsmartcols1 libuuid1 mount util-linux uuid-runtime
12 upgraded, 1 newly installed, 0 to remove and 101 not upgraded.
Need to get 2,474 kB of archives.
After this operation, 1,649 kB of additional disk space will be used.
Get:1 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble-updates/main amd64 bsdutils amd64 1:2.39.3-9ubuntu6.3 [95.9 kB]
Get:2 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble-updates/main amd64 util-linux amd64 2.39.3-9ubuntu6.3 [1,128 kB]
Get:3 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble-updates/main amd64 mount amd64 2.39.3-9ubuntu6.3 [118 kB]
Get:4 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble-updates/main amd64 libsmartcols1 amd64 2.39.3-9ubuntu6.3 [65.4 kB]
Get:5 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble-updates/main amd64 libuuid1 amd64 2.39.3-9ubuntu6.3 [35.8 kB]
Get:6 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble-updates/main amd64 uuid-runtime amd64 2.39.3-9ubuntu6.3 [33.1 kB]
Get:7 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble-updates/main amd64 libblkid1 amd64 2.39.3-9ubuntu6.3 [123 kB]
Get:8 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble-updates/main amd64 libmount1 amd64 2.39.3-9ubuntu6.3 [134 kB]
Get:9 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble-updates/main amd64 eject amd64 2.39.3-9ubuntu6.3 [26.3 kB]
Get:10 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble-updates/main amd64 libfdisk1 amd64 2.39.3-9ubuntu6.3 [146 kB]
Get:11 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble-updates/main amd64 bsdextrautils amd64 2.39.3-9ubuntu6.3 [73.7 kB]
Get:12 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble-updates/main amd64 fdisk amd64 2.39.3-9ubuntu6.3 [122 kB]
Get:13 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble/main amd64 socat amd64 1.8.0.0-4build3 [374 kB]
Fetched 2,474 kB in 4s (675 kB/s)
(Reading database ... 77065 files and directories currently installed.)
Preparing to unpack .../bsdutils_1%3a2.39.3-9ubuntu6.3_amd64.deb ...
Progress: [ 0%] [.............................................................................................................]
Unpacking bsdutils (1:2.39.3-9ubuntu6.3) over (1:2.39.3-9ubuntu6.2) ...........................................................]
Setting up bsdutils (1:2.39.3-9ubuntu6.3) .....................................................................................]
Progress: [ 6%] [######.......................................................................................................]
(Reading database ... 77065 files and directories currently installed.)........................................................]
Preparing to unpack .../util-linux_2.39.3-9ubuntu6.3_amd64.deb ...
Unpacking util-linux (2.39.3-9ubuntu6.3) over (2.39.3-9ubuntu6.2) .............................................................]
Setting up util-linux (2.39.3-9ubuntu6.3) .....................................................................................]
fstrim.service is a disabled or a static unit not running, not starting it.....................................................]
(Reading database ... 77065 files and directories currently installed.)........................................................]
Preparing to unpack .../mount_2.39.3-9ubuntu6.3_amd64.deb ...
Unpacking mount (2.39.3-9ubuntu6.3) over (2.39.3-9ubuntu6.2) ..................................................................]
Preparing to unpack .../libsmartcols1_2.39.3-9ubuntu6.3_amd64.deb .............................................................]
Unpacking libsmartcols1:amd64 (2.39.3-9ubuntu6.3) over (2.39.3-9ubuntu6.2) ....................................................]
Setting up libsmartcols1:amd64 (2.39.3-9ubuntu6.3) ............................................................................]
Progress: [ 25%] [##########################...................................................................................]
(Reading database ... 77065 files and directories currently installed.)........................................................]
Preparing to unpack .../libuuid1_2.39.3-9ubuntu6.3_amd64.deb ...
Unpacking libuuid1:amd64 (2.39.3-9ubuntu6.3) over (2.39.3-9ubuntu6.2) .........................................................]
Setting up libuuid1:amd64 (2.39.3-9ubuntu6.3) ...#.............................................................................]
Progress: [ 32%] [##################################...........................................................................]
(Reading database ... 77065 files and directories currently installed.)........................................................]
Preparing to unpack .../uuid-runtime_2.39.3-9ubuntu6.3_amd64.deb ...
Unpacking uuid-runtime (2.39.3-9ubuntu6.3) over (2.39.3-9ubuntu6.2) ...........................................................]
Preparing to unpack .../libblkid1_2.39.3-9ubuntu6.3_amd64.deb .................................................................]
Unpacking libblkid1:amd64 (2.39.3-9ubuntu6.3) over (2.39.3-9ubuntu6.2) ........................................................]
Setting up libblkid1:amd64 (2.39.3-9ubuntu6.3) ...#############................................................................]
Progress: [ 43%] [###############################################..............................................................]
(Reading database ... 77065 files and directories currently installed.)........................................................]
Preparing to unpack .../libmount1_2.39.3-9ubuntu6.3_amd64.deb ...
Unpacking libmount1:amd64 (2.39.3-9ubuntu6.3) over (2.39.3-9ubuntu6.2) ........................................................]
Setting up libmount1:amd64 (2.39.3-9ubuntu6.3) ...#####################........................................................]
Progress: [ 51%] [#######################################################......................................................]
(Reading database ... 77065 files and directories currently installed.)####....................................................]
Preparing to unpack .../eject_2.39.3-9ubuntu6.3_amd64.deb ...
Unpacking eject (2.39.3-9ubuntu6.3) over (2.39.3-9ubuntu6.2) ...#############..................................................]
Preparing to unpack .../libfdisk1_2.39.3-9ubuntu6.3_amd64.deb ...##############................................................]
Unpacking libfdisk1:amd64 (2.39.3-9ubuntu6.3) over (2.39.3-9ubuntu6.2) ...#######..............................................]
Preparing to unpack .../bsdextrautils_2.39.3-9ubuntu6.3_amd64.deb ...##############............................................]
Unpacking bsdextrautils (2.39.3-9ubuntu6.3) over (2.39.3-9ubuntu6.2) ...#############..........................................]
Preparing to unpack .../fdisk_2.39.3-9ubuntu6.3_amd64.deb ...##########################........................................]
Unpacking fdisk (2.39.3-9ubuntu6.3) over (2.39.3-9ubuntu6.2) ...#########################......................................]
Selecting previously unselected package socat.##############################################...................................]
Preparing to unpack .../socat_1.8.0.0-4build3_amd64.deb ...
Unpacking socat (1.8.0.0-4build3) ...#########################################################.................................]
Setting up bsdextrautils (2.39.3-9ubuntu6.3) ...################################################...............................]
Progress: [ 74%] [################################################################################.............................]
Setting up eject (2.39.3-9ubuntu6.3) ...############################################################...........................]
Progress: [ 77%] [####################################################################################.........................]
Setting up socat (1.8.0.0-4build3) ...##################################################################.......................]
Progress: [ 81%] [########################################################################################.....................]
Setting up libfdisk1:amd64 (2.39.3-9ubuntu6.3) ...##########################################################...................]
Progress: [ 85%] [############################################################################################.................]
Setting up mount (2.39.3-9ubuntu6.3) ...########################################################################...............]
Progress: [ 89%] [################################################################################################.............]
Setting up uuid-runtime (2.39.3-9ubuntu6.3) ...#####################################################################...........]
uuidd.service is a disabled or a static unit not running, not starting it.############################################.........]
Setting up fdisk (2.39.3-9ubuntu6.3) ...################################################################################.......]
Progress: [ 96%] [########################################################################################################.....]
Processing triggers for man-db (2.12.0-4build2) ...#########################################################################...]
Processing triggers for libc-bin (2.39-0ubuntu8.4) ...
Scanning processes...
Scanning candidates...
Scanning linux images...
Running kernel seems to be up-to-date.
Restarting services...
/etc/needrestart/restart.d/systemd-manager
systemctl restart fwupd.service iscsid.service packagekit.service polkit.service rsyslog.service systemd-journald.service systemd-networkd.service systemd-resolved.service systemd-timesyncd.service systemd-udevd.service udisks2.service
Service restarts being deferred:
systemctl restart ModemManager.service
systemctl restart [email protected]
systemctl restart [email protected]
systemctl restart systemd-logind.service
No containers need to be restarted.
User sessions running outdated binaries:
root @ session #1: bash[3159]
root @ user manager service: systemd[1200]
No VM guests are running outdated hypervisor (qemu) binaries on this host.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
tcl-expect
Suggested packages:
tk8.6
The following NEW packages will be installed:
expect tcl-expect
0 upgraded, 2 newly installed, 0 to remove and 101 not upgraded.
Need to get 247 kB of archives.
After this operation, 538 kB of additional disk space will be used.
Get:1 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble/universe amd64 tcl-expect amd64 5.45.4-3 [110 kB]
Get:2 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble/universe amd64 expect amd64 5.45.4-3 [137 kB]
Fetched 247 kB in 2s (98.8 kB/s)
Selecting previously unselected package tcl-expect:amd64.
(Reading database ... 77108 files and directories currently installed.)
Preparing to unpack .../tcl-expect_5.45.4-3_amd64.deb ...
Unpacking tcl-expect:amd64 (5.45.4-3) ...
Selecting previously unselected package expect.
Preparing to unpack .../expect_5.45.4-3_amd64.deb ...
Unpacking expect (5.45.4-3) ...
Setting up tcl-expect:amd64 (5.45.4-3) ...
Setting up expect (5.45.4-3) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.4) ...
Scanning processes...
Scanning candidates...
Scanning linux images...
Running kernel seems to be up-to-date.
Restarting services...
Service restarts being deferred:
systemctl restart [email protected]
systemctl restart [email protected]
systemctl restart systemd-logind.service
No containers need to be restarted.
User sessions running outdated binaries:
root @ session #1: bash[3159]
root @ user manager service: systemd[1200]
No VM guests are running outdated hypervisor (qemu) binaries on this host.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libqrencode4
The following NEW packages will be installed:
libqrencode4 qrencode
0 upgraded, 2 newly installed, 0 to remove and 101 not upgraded.
Need to get 51.1 kB of archives.
After this operation, 139 kB of additional disk space will be used.
Get:1 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble/universe amd64 libqrencode4 amd64 4.1.1-1build2 [25.0 kB]
Get:2 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble/universe amd64 qrencode amd64 4.1.1-1build2 [26.1 kB]
Fetched 51.1 kB in 1s (53.8 kB/s)
Selecting previously unselected package libqrencode4:amd64.
(Reading database ... 77188 files and directories currently installed.)
Preparing to unpack .../libqrencode4_4.1.1-1build2_amd64.deb ...
Unpacking libqrencode4:amd64 (4.1.1-1build2) ...
Selecting previously unselected package qrencode.
Preparing to unpack .../qrencode_4.1.1-1build2_amd64.deb ...
Unpacking qrencode (4.1.1-1build2) ...
Setting up libqrencode4:amd64 (4.1.1-1build2) ...
Setting up qrencode (4.1.1-1build2) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.4) ...
Scanning processes...
Scanning candidates...
Scanning linux images...
Running kernel seems to be up-to-date.
Restarting services...
Service restarts being deferred:
systemctl restart [email protected]
systemctl restart [email protected]
systemctl restart systemd-logind.service
No containers need to be restarted.
User sessions running outdated binaries:
root @ session #1: bash[3159]
root @ user manager service: systemd[1200]
No VM guests are running outdated hypervisor (qemu) binaries on this host.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
░██ ░██ ░██ ██ ██ ░██ ░██ ░██ ░██ ░██ ░██
░██ ░██ ░██ ░░██ ░██ ░██ ░██ ░██ ░██ ░██
░██ ░██ ░██ ░██ ██ ░██ ██ ░██ ██
░██ ░██ ░██ ██ ░██ ██ ░██ ██ ░██ ██
░██ ░██ ░░██ ░██ ░██ ░██ ░██ ░██ ░██
░██ ░██ ██ ██ ░██ ░░██ ░██ ░░██ ░██ ░░██
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
甬哥Github项目 :github.com/yonggekkk
甬哥Blogger博客 :ygkkk.blogspot.com
甬哥YouTube频道 :www.youtube.com/@ygkkk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Vless-reality-vision、Vmess-ws(tls)+Argo、Hysteria-2、Tuic-v5 四协议共存脚本
脚本快捷方式:sb
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1. 一键安装 Sing-box
2. 删除卸载 Sing-box
----------------------------------------------------------------------------------
3. 变更配置 【双证书TLS/UUID路径/Argo/IP优先/TG通知/Warp/订阅/CDN优选】
4. 更改主端口/添加多端口跳跃复用
5. 三通道域名分流
6. 关闭/重启 Sing-box
7. 更新 Sing-box-yg 脚本
8. 更新/切换/指定 Sing-box 内核版本
----------------------------------------------------------------------------------
9. 刷新并查看节点 【Clash-Meta/SFA+SFI+SFW三合一配置/订阅链接/推送TG通知】
10. 查看 Sing-box 运行日志
11. 一键原版BBR+FQ加速
12. 管理 Acme 申请域名证书
13. 管理 Warp 查看Netflix/ChatGPT解锁情况
14. 添加 WARP-plus-Socks5 代理模式 【本地Warp/多地区Psiphon-VPN】
15. 双栈VPS切换IPV4/IPV6配置输出
----------------------------------------------------------------------------------
16. Sing-box-yg脚本使用说明书
----------------------------------------------------------------------------------
0. 退出脚本
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
当前 Sing-box-yg 脚本版本号:v25.2.9
未安装 Sing-box-yg 脚本!请先选择 1 安装
当前 Sing-box 最新正式版内核:1.11.15
当前 Sing-box 最新测试版内核:1.12.0-beta.34
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
VPS状态如下:
系统:Ubuntu 24.04.2 LTS 内核:6.8.0 处理器:amd64 虚拟化:kvm BBR算法:cubic
本地IPV4地址:199.199.199.199 本地IPV6地址:1999:c999:8999:1999:8999:6999:d999:d999
Sing-box状态:未安装
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
请输入数字【0-16】:1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
是否开放端口,关闭防火墙?
1、是,执行 (回车默认)
2、否,跳过!自行处理
请选择【1-2】:
执行开放端口,关闭防火墙完毕
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
使用哪个内核版本?目前:1.10系列正式版内核支持geosite分流,1.10系列之后最新内核不支持geosite分流
1:使用1.10系列正式版内核 (回车默认)
2:使用1.10系列之后最新正式版内核
请选择【1-2】:
############################################################################################################################ 100.0%
成功安装 Sing-box 内核版本:1.10.7
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
二、生成并设置相关证书
自动生成bing自签证书中……
生成bing自签证书成功
如果你有解析完成的域名,是否申请一个Acme域名证书?
1:否!继续使用自签的证书 (回车默认)
2:是!使用Acme-yg脚本申请Acme证书 (支持常规80端口模式与Dns API模式)
请选择【1-2】:
Vless-reality的SNI域名默认为 www.yahoo.com
Vmess-ws将关闭TLS,Hysteria-2、Tuic-v5将使用bing自签证书,并关闭SNI证书验证
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
三、设置各个协议端口
1:自动生成每个协议的随机端口 (10000-65535范围内),回车默认
2:自定义每个协议端口
请输入【1-2】:
根据Vmess-ws协议是否启用TLS,随机指定支持CDN优选IP的标准端口:2086
各协议端口确认如下
Vless-reality端口:60660
Vmess-ws端口:2086
Hysteria-2端口:19525
Tuic-v5端口:27314
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
四、自动生成各个协议统一的uuid (密码)
已确认uuid (密码):73f60fe2-e425-4d0a-9999-38da9999c999
已确认Vmess的path路径:73f60fe9-e425-9d9a-b29d-99da9999c999-vm
Vless-reality相关key与id将自动生成……
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
五、自动生成warp-wireguard出站账户
Private_key私钥:sB4z7PIt9V9wMPmbeMvjWINtNnAmi9jqwbXcujwoO099=
IPV6地址:2606:8999:999:8bf4:x5y9:ad34:9111:beb9
reserved值:[199,199,299]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
############################################################################################################################ 100.0%
Sing-box-yg脚本安装成功,脚本快捷方式:sb
no crontab for root
双栈VPS需要选择IP配置输出,一般情况下nat vps建议选择IPV6
1:使用IPV4配置输出 (回车默认)
2:使用IPV6配置输出
请选择【1-2】:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
🚀【 vless-reality-vision 】节点信息如下:
{/collapse-item}
—— 评论区 ——