Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Block Connection to localhost
Clone this wiki locally
From 2.6.7, localhost is blocked by default. If you don't want it, use
From 2.6.3, you can prevent the server from connecting to some IP like 127.0.0.1.
ssserver -c /etc/shadowsocks.json --forbidden-ip 127.0.0.1,::1
Notice only IPv4 and IPv6 addresses are allowed. Blocking will be processed after DNS.
This is because if a client tries to visit a hostname, like
localhost or a domain name
a user has pointed to 127.0.0.1, it will be resolved into
Thus it will still get blocked.