Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Successful connection but no data flow between my VPS and my PC #2864

Closed
ghost opened this issue Nov 25, 2021 · 3 comments
Closed

Successful connection but no data flow between my VPS and my PC #2864

ghost opened this issue Nov 25, 2021 · 3 comments

Comments

@ghost
Copy link

ghost commented Nov 25, 2021

What version of shadowsocks-libev are you using?

3.3.5, cloned from the last commit as of now

What operating system are you using?

Ubuntu 20.04 on VPS
Ubuntu 21.10 on client

What did you do?

Setup shadowsocks-libev on my VPS and my personal computer.
Added the desired ports in my firewall ufw, even went as far as completely disabling the firewall but to no avail!

What did you expect to see?

I expected to bypass my ISP restrictions.

What did you see instead?

My browser (set to 127.0.0.1:1081) will not load any websites!

What is your config in detail (with all sensitive info masked)?

ss-server config.json:

{
   "server":["::0", "0.0.0.0"],
   "server_port":800,
   "password":"12characterpassword",
   "method":"chacha20-ietf-poly1305",
   "timeout":60,
   "mode":"tcp_and_udp",
   "nameserver":"1.1.1.1",
   "fast_open":false
}

ss-local config.json:

{
  "server": "x.x.x.x",
  "server_port": 800,
  "password": "12characterpassword",
  "method": "chacha20-ietf-poly1305",
  "mode": "tcp_and_udp",
  "fast_open": false,
  "local_address": "127.0.0.1",
  "local_port": 1081
}

The following is a sample log output from both the server and the client, when I tried to load youtube.com on the client machine:

This the -v log output from ss-server:

2021-11-25 20:50:30 INFO: UDP relay enabled
 2021-11-25 20:50:30 INFO: initializing ciphers... chacha20-ietf-poly1305
 2021-11-25 20:50:30 INFO: using nameserver: 1.1.1.1
 2021-11-25 20:50:30 INFO: tcp server listening at [::0]:800
 2021-11-25 20:50:30 INFO: tcp server listening at 0.0.0.0:800
 2021-11-25 20:50:30 INFO: udp server listening at [::0]:800
 2021-11-25 20:50:30 INFO: udp server listening at 0.0.0.0:800
 2021-11-25 20:50:30 INFO: running from root user
 2021-11-25 20:50:38 INFO: new connection from client, 1 opened client connections
 2021-11-25 20:50:38 INFO: [800] connect to 10.10.34.35:443
 2021-11-25 20:50:38 INFO: new connection to remote, 1 opened remote connections
 2021-11-25 20:50:48 INFO: new connection from client, 2 opened client connections
 2021-11-25 20:50:48 INFO: [800] connect to [2606:4700::6810:f9f9]:443
 2021-11-25 20:50:48 INFO: new connection to remote, 2 opened remote connections
 2021-11-25 20:50:52 INFO: new connection from client, 3 opened client connections
 2021-11-25 20:50:52 INFO: [800] connect to 35.155.98.26:443
 2021-11-25 20:50:52 INFO: new connection to remote, 3 opened remote connections
 2021-11-25 20:51:03 INFO: close a connection to remote, 2 opened remote connections
 2021-11-25 20:51:03 INFO: close a connection from client, 2 opened client connections
 2021-11-25 20:51:16 INFO: new connection from client, 3 opened client connections
 2021-11-25 20:51:16 INFO: [800] connect to 34.107.221.82:80
 2021-11-25 20:51:16 INFO: new connection to remote, 3 opened remote connections
 2021-11-25 20:51:17 INFO: new connection from client, 4 opened client connections
 2021-11-25 20:51:17 INFO: [800] connect to 10.10.34.35:443
 2021-11-25 20:51:17 INFO: new connection to remote, 4 opened remote connections
 2021-11-25 20:51:21 INFO: new connection from client, 5 opened client connections
 2021-11-25 20:51:21 INFO: [800] connect to 34.107.221.82:80
 2021-11-25 20:51:21 INFO: new connection to remote, 5 opened remote connections
 2021-11-25 20:51:26 INFO: new connection from client, 6 opened client connections
 2021-11-25 20:51:26 INFO: [800] connect to [2606:4700::6810:f9f9]:443
 2021-11-25 20:51:26 INFO: new connection to remote, 6 opened remote connections
 2021-11-25 20:51:26 INFO: new connection from client, 7 opened client connections
 2021-11-25 20:51:26 INFO: [800] connect to 34.107.221.82:80
 2021-11-25 20:51:26 INFO: new connection to remote, 7 opened remote connections
 2021-11-25 20:51:31 INFO: new connection from client, 8 opened client connections
 2021-11-25 20:51:31 INFO: [800] connect to 34.107.221.82:80
 2021-11-25 20:51:31 INFO: new connection to remote, 8 opened remote connections
 2021-11-25 20:51:36 INFO: new connection from client, 9 opened client connections
 2021-11-25 20:51:36 INFO: [800] connect to 34.107.221.82:80
 2021-11-25 20:51:36 INFO: new connection to remote, 9 opened remote connections
 2021-11-25 20:51:39 INFO: new connection from client, 10 opened client connections
 2021-11-25 20:51:39 INFO: [800] connect to 35.244.247.133:443
 2021-11-25 20:51:39 INFO: new connection to remote, 10 opened remote connections
 2021-11-25 20:51:41 INFO: close a connection to remote, 9 opened remote connections
 2021-11-25 20:51:41 INFO: close a connection from client, 9 opened client connections
 2021-11-25 20:51:41 INFO: new connection from client, 10 opened client connections
 2021-11-25 20:51:41 INFO: [800] connect to 34.107.221.82:80
 2021-11-25 20:51:41 INFO: new connection to remote, 10 opened remote connections
 2021-11-25 20:51:49 INFO: close a connection to remote, 9 opened remote connections
 2021-11-25 20:51:49 INFO: close a connection from client, 9 opened client connections
 2021-11-25 20:51:51 INFO: new connection from client, 10 opened client connections
 2021-11-25 20:51:51 INFO: [800] connect to 44.226.6.9:443
 2021-11-25 20:51:51 INFO: new connection to remote, 10 opened remote connections
 2021-11-25 20:52:10 INFO: closed gracefully <---- I hit CTRL+C here to stop the process
 2021-11-25 20:52:10 INFO: close a connection from client, 9 opened client connections
 2021-11-25 20:52:10 INFO: close a connection to remote, 9 opened remote connections
 2021-11-25 20:52:10 INFO: close a connection from client, 8 opened client connections
 2021-11-25 20:52:10 INFO: close a connection to remote, 8 opened remote connections
 2021-11-25 20:52:10 INFO: close a connection from client, 7 opened client connections
 2021-11-25 20:52:10 INFO: close a connection to remote, 7 opened remote connections
 2021-11-25 20:52:10 INFO: close a connection from client, 6 opened client connections
 2021-11-25 20:52:10 INFO: close a connection to remote, 6 opened remote connections
 2021-11-25 20:52:10 INFO: close a connection from client, 5 opened client connections
 2021-11-25 20:52:10 INFO: close a connection to remote, 5 opened remote connections
 2021-11-25 20:52:10 INFO: close a connection from client, 4 opened client connections
 2021-11-25 20:52:10 INFO: close a connection to remote, 4 opened remote connections
 2021-11-25 20:52:10 INFO: close a connection from client, 3 opened client connections
 2021-11-25 20:52:10 INFO: close a connection to remote, 3 opened remote connections
 2021-11-25 20:52:10 INFO: close a connection from client, 2 opened client connections
 2021-11-25 20:52:10 INFO: close a connection to remote, 2 opened remote connections
 2021-11-25 20:52:10 INFO: close a connection from client, 1 opened client connections
 2021-11-25 20:52:10 INFO: close a connection to remote, 1 opened remote connections
 2021-11-25 20:52:10 INFO: close a connection from client, 0 opened client connections
 2021-11-25 20:52:10 INFO: close a connection to remote, 0 opened remote connections

And here's the -v log output from ss-local (server ip is masked x.x.x.x):

 2021-11-26 00:20:33 INFO: initializing ciphers... chacha20-ietf-poly1305
 2021-11-26 00:20:33 INFO: listening at 127.0.0.1:1081
 2021-11-26 00:20:33 INFO: udprelay enabled
 2021-11-26 00:20:37 INFO: connection from 127.0.0.1:38240
 2021-11-26 00:20:37 INFO: connect to 10.10.34.35:443
 2021-11-26 00:20:37 INFO: remote: x.x.x.x:800
 2021-11-26 00:20:47 INFO: connection from 127.0.0.1:38242
 2021-11-26 00:20:47 INFO: connect to [2606:4700::6810:f9f9]:443
 2021-11-26 00:20:47 INFO: remote: x.x.x.x:800
 2021-11-26 00:20:51 INFO: connection from 127.0.0.1:38244
 2021-11-26 00:20:51 INFO: connect to 35.155.98.26:443
 2021-11-26 00:20:51 INFO: remote: x.x.x.x:800
 2021-11-26 00:21:15 INFO: connection from 127.0.0.1:38246
 2021-11-26 00:21:15 INFO: connect to 34.107.221.82:80
 2021-11-26 00:21:15 INFO: remote: x.x.x.x:800
 2021-11-26 00:21:16 INFO: connection from 127.0.0.1:38248
 2021-11-26 00:21:16 INFO: connect to 10.10.34.35:443
 2021-11-26 00:21:16 INFO: remote: x.x.x.x:800
 2021-11-26 00:21:20 INFO: connection from 127.0.0.1:38250
 2021-11-26 00:21:20 INFO: connect to 34.107.221.82:80
 2021-11-26 00:21:20 INFO: remote: x.x.x.x:800
 2021-11-26 00:21:25 INFO: connection from 127.0.0.1:38252
 2021-11-26 00:21:25 INFO: connect to [2606:4700::6810:f9f9]:443
 2021-11-26 00:21:25 INFO: remote: x.x.x.x:800
 2021-11-26 00:21:25 INFO: connection from 127.0.0.1:38254
 2021-11-26 00:21:25 INFO: connect to 34.107.221.82:80
 2021-11-26 00:21:25 INFO: remote: x.x.x.x:800
 2021-11-26 00:21:30 INFO: connection from 127.0.0.1:38256
 2021-11-26 00:21:30 INFO: connect to 34.107.221.82:80
 2021-11-26 00:21:30 INFO: remote: x.x.x.x:800
 2021-11-26 00:21:35 INFO: connection from 127.0.0.1:38258
 2021-11-26 00:21:35 INFO: connect to 34.107.221.82:80
 2021-11-26 00:21:35 INFO: remote: x.x.x.x:800
 2021-11-26 00:21:38 INFO: connection from 127.0.0.1:38262
 2021-11-26 00:21:38 INFO: connect to 35.244.247.133:443
 2021-11-26 00:21:38 INFO: remote: x.x.x.x:800
 2021-11-26 00:21:40 INFO: connection from 127.0.0.1:38264
 2021-11-26 00:21:40 INFO: connect to 34.107.221.82:80
 2021-11-26 00:21:40 INFO: remote: x.x.x.x:800
 2021-11-26 00:21:51 INFO: connection from 127.0.0.1:38266
 2021-11-26 00:21:51 INFO: connect to 44.226.6.9:443
 2021-11-26 00:21:51 INFO: remote: x.x.x.x:800
^C 2021-11-26 00:21:56 INFO: closed gracefully

For the sake of comparison, I have another shadowsocks service from a 3rd party company that also runs on port 800 and it's working! So I believe the port is open and working on my ISP, and I'm using exactly the client config.json I pasted above as my own except for the server IP of course, and it works like a charm!

I'm not sure why my own VPS does not work! What am I doing wrong?

Thank you!

@Maxwellads
Copy link

It actually appears frequently that shadowsocks gets identified with no plugins. Are you impacted by GFW?

@ghost
Copy link
Author

ghost commented Jan 18, 2022

It actually appears frequently that shadowsocks gets identified with no plugins. Are you impacted by GFW?

Yes! It seems so. I changed my setup to use the v2ray plugin and added a domain name to my host, now it's working.
Thank you!

@ghost ghost closed this as completed Dec 2, 2022
@zsw6666
Copy link

zsw6666 commented May 11, 2024

It actually appears frequently that shadowsocks gets identified with no plugins. Are you impacted by GFW?

Yes! It seems so. I changed my setup to use the v2ray plugin and added a domain name to my host, now it's working. Thank you!

I got the similar issue with you, could you please show your current config.json? Thanks!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants