Floating IP not working with shadowsocks-go

May 11, 2018 376 views
Networking Ubuntu

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?

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.

Have another answer? Share your knowledge.