机器规格:1 核 1G/0.5G Debian 12 x64,0.5 G 正常也够用,区域选非大陆即可

1
2
3
4
sudo apt update
sudo apt install -y curl nano ufw
curl -fsSL https://sing-box.app/install.sh -o install.sh
sudo sh install.sh

检查安装结果

1
sing-box version

执行下列语句并记录密码:

1
2
PASSWORD=$(sing-box generate rand --base64 16)
echo "$PASSWORD"

执行下列语句并记录 IP 地址(注,需要确切购置具有 IPV4 地址的机器)

1
2
curl -4 ifconfig.me
echo

写入 sing-box 服务端配置

注:Clash for windows 不支撑 2022-blake3-aes-128-gcm 加密算法,需要切换为 aes-128-gcm

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
sudo tee /etc/sing-box/config.json > /dev/null <<EOF
{
"log": {
"level": "info",
"timestamp": true
},
"inbounds": [
{
"type": "shadowsocks",
"tag": "ss-in",
"listen": "::",
"listen_port": 8443,
"method": "aes-128-gcm",
"password": "$PASSWORD"
}
],
"outbounds": [
{
"type": "direct",
"tag": "direct"
}
],
"route": {
"final": "direct"
}
}
EOF

检查配置文件,若无报错则继续下列步骤

1
sudo sing-box check -c /etc/sing-box/config.json

开放端口,若后台还有安全组件,同样需要相应放行(Shadowsocks)

1
2
3
4
5
sudo ufw allow 22/tcp
sudo ufw allow 8443/tcp
sudo ufw allow 8443/udp
sudo ufw --force enable
sudo ufw status

启动并查看运行状态,其效果应如下

1
2
3
sudo systemctl enable sing-box
sudo systemctl restart sing-box
sudo systemctl status sing-box

相关测试(本机 Powershell 上运行):

1
Test-NetConnection 141.164.35.184 -Port 8443

其期待结果应当类似:

如果上述过程中出什么问题,问 AI 即可,没必要拘泥于上述流程

编写 YAML 并导入 Clash

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
mixed-port: 7890
allow-lan: false
mode: rule
log-level: info
ipv6: true

proxies:
- name: "SS-Tokyo-01"
type: ss
server: 141.164.35.184
port: 8443
cipher: aes-128-gcm
password: "dcge82pL+ViPU0LS0HsRGQ=="
udp: true

proxy-groups:
- name: "PROXY"
type: select
proxies:
- SS-Tokyo-01
- DIRECT

rules:
- MATCH,PROXY

正常来说上述流程就算结束


其他相关记录:

自建节点本质上是自己租用服务器并完成流量转发工作,费用相比机场并没有明显优势

唯一的优势或许是在国内封杀 VPN 的背景下能略微稳定一些罢了,但目前体感并没有太明显

目前使用的是 Vultr 的 VPS 服务器,2.5 美元/月,价格的话,有些优惠活动可以参加下

Such As:https://www.vultr.cn/96.html,这种有活动都可以看下,能省不少

国内的话,阿里云那边大概还可以靠白嫖 300 元优惠券在某些机器上面白嫖半年的使用规格

基本是这样,这四个月靠 Vultr 的服务器凑合下,后面再用阿里云的凑合半年,其实凑合能用

凑合着用吧就,相关站点笔记引用:https://blog.naibabiji.com/