ubuntu安装sing-box

1,285 阅读1分钟

下载 sing-box 压缩包

wget https://github.com/SagerNet/sing-box/releases/download/v1.10.0-alpha.28/sing-box-1.10.0-alpha.28-linux-amd64.tar.gz

解压缩

tar -zxvf sing-box-1.10.0-alpha.28-linux-amd64.tar.gz

将sing-box添加为全局命令

cd sing-box-1.10.0-alpha.28-linux-amd64
mv sing-box /usr/local/bin/

配置IP转发

打开并编辑 sysctl 配置文件:

vim /etc/sysctl.conf

找到(或添加)以下行,将其取消注释并设置为 1:

net.ipv4.ip_forward=1

应用更改

sudo sysctl -p