Question

Floating IP not working with shadowsocks-go

Posted May 11, 2018 1.5k views
Ubuntu Networking

I am running shadowsocks-go, and it works perfectly fine with the droplet’s own IPv4 address (e.g. 1.1.1.1). When I try to access the shadowsocks server using the floating IP address (e.g. 2.2.2.2), it fails with the following error

2018/05/11 06:48:37 error connecting to: localhost:9229 dial tcp 127.0.0.1:9229: connect: connection refused
2018/05/11 06:48:37 error connecting to: localhost:9229 dial tcp 127.0.0.1:9229: connect: connection refused
2018/05/11 06:48:38 error connecting to: localhost:9229 dial tcp 127.0.0.1:9229: connect: connection refused
2018/05/11 06:48:38 error connecting to: localhost:9229 dial tcp 127.0.0.1:9229: connect: connection refused
2018/05/11 06:48:39 error connecting to: localhost:9229 dial tcp 127.0.0.1:9229: connect: connection refused
2018/05/11 06:48:39 error connecting to: localhost:9229 dial tcp 127.0.0.1:9229: connect: connection refused
2018/05/11 06:48:40 error connecting to: localhost:9229 dial tcp 127.0.0.1:9229: connect: connection refused
2018/05/11 06:48:40 error connecting to: localhost:9229 dial tcp 127.0.0.1:9229: connect: connection refused
2018/05/11 06:48:41 error connecting to: localhost:9229 dial tcp 127.0.0.1:9229: connect: connection refused
2018/05/11 06:48:42 error connecting to: localhost:9229 dial tcp 127.0.0.1:9229: connect: connection refused

How can I use the Floating IP address correctly?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

2 answers

Do you have your daemon set up to listen on the anchor IP assigned internally on your droplet instead of the public Floating IP? Your droplet will never see an interface with the public floating IP as all traffic to this IP will be routed over the private network to your droplet.

You should try ShadowSocksR instead of ShadowSocks. SSR has much better traffic obfuscation hence harder for censorship algorithms to detect.

Submit an Answer