Page:
							Block Connection to localhost
						
						
					
					
							Pages
							
							
								Ban Brute Force Crackers
							
								Block Connection to localhost
							
								Change Server on the Fly
							
								Configuration via Config File
							
								Configure Multiple Users
							
								Configure Shadowsocks with Supervisor
							
								Connect to OpenVPN over Shadowsocks
							
								Convert Shadowsocks into an HTTP proxy
							
								Encryption
							
								Feature Comparison across Different Versions
							
								Forcing Chrome to Use Socks5 Proxy
							
								Generate QR Code for Android or iOS Clients
							
								Gentoo overlay
							
								Graceful shutdown and restart
							
								Home
							
								Install Shadowsocks Server on Windows
							
								Manage Multiple Users
							
								Objective
							
								Optimizing Shadowsocks
							
								Ports and Clients
							
								Salsa20
							
								Securing Public Shadowsocks Server
							
								Setting Up Shadowsocks on Linode
							
								Setup a Shadowsocks relay
							
								Shadowsocks 使用说明
							
								TCP Fast Open
							
								Troubleshooting
							
								Using Shadowsocks with Command Line Tools
							
								Workers
							
								优化 Shadowsocks
							
								回复模版
							
								在 Linode 上快速搭建 Shadowsocks
							
								用 Supervisor 运行 Shadowsocks
							
						
					No results
				
					2 
					Block Connection to localhost
					
				
						
						clowwindy edited this page 2015-02-03 23:12:23 +08:00 
					
				From 2.6.7, localhost is blocked by default. If you don't want it, use --forbidden-ip="".
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 127.0.0.1 or ::1.
Thus it will still get blocked.