diff options
Diffstat (limited to '_posts')
-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 { |