From ed90637c4545973ab8ab827d7cf9952d98dd6ab6 Mon Sep 17 00:00:00 2001 From: clowwindy Date: Mon, 12 Jan 2015 23:17:44 +0800 Subject: [PATCH] Created Ban Connection to localhost (markdown) --- Ban-Connection-to-localhost.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Ban-Connection-to-localhost.md diff --git a/Ban-Connection-to-localhost.md b/Ban-Connection-to-localhost.md new file mode 100644 index 0000000..a1faa16 --- /dev/null +++ b/Ban-Connection-to-localhost.md @@ -0,0 +1,7 @@ +From 2.6.3, you can forbid the server to connect to some IP, i.e. 127.0.0.1. + + ssserver -c /etc/shadowsocks.json --forbidden-ip 127.0.0.1,::1 + +Notice only IPv4 and IPv6 addresses are allowed. This is because if a client +tries to visit a hostname, like `localhost`, it will be resolved into +`127.0.0.1` or `::1`, it still gets blocked. \ No newline at end of file