diff options
author | Mayx | 2022-01-18 15:08:11 +0800 |
---|---|---|
committer | GitHub | 2022-01-18 15:08:11 +0800 |
commit | c094d90f5ee082531b18ab4fda7caea7f5aeb359 (patch) | |
tree | a42bc611726e3801da188635698e6d57fc12bd87 | |
parent | fc4c5c07b6f16f23f29923ffadf6c0c602c383ab (diff) |
Update 2022-01-16-wssocks.md
-rw-r--r-- | _posts/2022-01-16-wssocks.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/_posts/2022-01-16-wssocks.md b/_posts/2022-01-16-wssocks.md index df4b200..038d59a 100644 --- a/_posts/2022-01-16-wssocks.md +++ b/_posts/2022-01-16-wssocks.md @@ -19,6 +19,10 @@ tags: [wssocks, 代理, 评测] ``` ./wssocks-linux-amd64 server --addr :10000 --auth --auth_key <YOUR_CONNECTION_KEY> --ws_base_path <YOUR_BASE_PATH> ``` + 另外在服务器上为了安全起见,最好不要用root权限启动(毕竟是冷门的项目有可能会有未知的漏洞),所以我实际会用以下命令: +``` +chroot --userspec=99:99 / /wssocks-linux-amd64 server --addr :10000 --auth --auth_key <YOUR_CONNECTION_KEY> --ws_base_path <YOUR_BASE_PATH> +``` 为了方便使用Cloudflare(其实主要是我这服务器还有别的网站),所以配置了一下Nginx(参见[wssocks#11](https://github.com/genshen/wssocks/issues/11#issuecomment-669324542)): ``` server { |