From ab80afaeb99094755b63ab41ee48df106614b111 Mon Sep 17 00:00:00 2001 From: clowwindy Date: Mon, 2 Feb 2015 17:18:57 +0800 Subject: [PATCH] Updated Securing Public Shadowsocks Server (markdown) --- Securing-Public-Shadowsocks-Server.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Securing-Public-Shadowsocks-Server.md b/Securing-Public-Shadowsocks-Server.md index 68ee077..3fb7cd3 100644 --- a/Securing-Public-Shadowsocks-Server.md +++ b/Securing-Public-Shadowsocks-Server.md @@ -34,7 +34,7 @@ If you share your server with strangers, you need to be careful. Edit nginx configuration: server { - listen 127.0.0.1:3128; + listen 0.0.0.0:3128; resolver 8.8.8.8; location / { set $upstream_host $host; @@ -52,5 +52,5 @@ If you share your server with strangers, you need to be careful. Redirect 80 port to nginx: - iptables -t nat -m owner --uid-owner http-ss -A OUTPUT -p tcp --dport 80 -j REDIRECT --to-port 3128 + iptables -t nat -m owner --uid-owner ssuser -A OUTPUT -p tcp --dport 80 -j REDIRECT --to-port 3128