登陆linux vps,首先安装rust环境,然后,
git clone https://github.com/dizda/fast-socks5 fast-socks5-by-dizda
cd fast-socks5-by-dizda
cargo build --release
cargo run --example server -- --listen-addr 127.0.0.1:1337 password -u myusername -p mypassword
会显示:
git clone https://github.com/dizda/fast-socks5 fast-socks5-by-dizda
cd fast-socks5-by-dizda
cargo build --release
cargo run --example server -- --listen-addr 127.0.0.1:1337 password -u myusername -p mypassword
会显示:
Finished dev [unoptimized + debuginfo] target(s) in 0.72s
Running `target/debug/examples/server --listen-addr '127.0.0.1:1337' password -u myusername -p mypassword`
或者运行:
cargo run --example server -- --listen-addr 127.0.0.1:1337 no-auth
会显示:
Finished dev [unoptimized + debuginfo] target(s) in 0.10s
Running `target/debug/examples/server --listen-addr '127.0.0.1:1337' no-auth`
这命令是运行在前台的,可以利用systemd把它运行为service.
socks代理服务器程序:fast-socks5可以用作各类tunnel程序的后端程序。
No comments:
Post a Comment