Updated Securing Public Shadowsocks Server (markdown)
parent
df56f558f9
commit
ab80afaeb9
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue