配置noisy-shuttle代理

网络资源 admin 1年前 (2022-11-05) 840次浏览 0个评论

noise-shuttle类似于shadow-tls,但是不需要像shadow-tls那样再套一个ss或者vmess来使用。

先来配置服务端,你可以下载预编译好的二进制文件:

apt -y update
apt -y install curl
curl -L https://github.com/Gowee/noisy-shuttle/releases/download/v0.2.1/noisy-shuttle-x86_64-unknown-linux-gnu -o /usr/local/bin/noisy-shuttle

也可以自己编译:

apt -y update
apt -y install build-essential mingw-w64 git curl
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"
git clone https://github.com/Gowee/noisy-shuttle.git
cd noisy-shuttle
rustup target add x86_64-pc-windows-gnu
cargo build --release
cargo build --release --target x86_64-pc-windows-gnu

编译好的文件在如下路径:

/noisy-shuttle/target/release/noisy-shuttle # linux
/noisy-shuttle/target/x86_64-pc-windows-gnu/release/noisy-shuttle.exe # windows

新建systemd服务:

nano /etc/systemd/system/noisy-shuttle.service

写入如下配置:

[Unit]
Description=noisy-shuttle - An proxy tool helps you bypass GFW
After=network.target

[Service]
ExecStart=/usr/local/bin/noisy-shuttle server 0.0.0.0:443 www.cloudflare.com:443 password -q
Restart=on-failure
RestartSec=10s
LimitNOFILE=infinity

[Install]
WantedBy=multi-user.target

启动并设置开机自启:

systemctl enable --now noisy-shuttle

客户端:

./noisy-shuttle client 127.0.0.1:51888 server_ip:443 www.cloudflare.com password -q

会在本地的51888端口开启一个socks5服务,配置其他的程序走这个socks5服务即可,例如浏览器可以用switchyomega扩展:


原文:https://lala.im/8511.html


VPS小白 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:配置noisy-shuttle代理
喜欢 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址