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

UDP forwarding doesn't seem to work #1090

Closed
6 of 18 tasks
Mygod opened this issue Jan 23, 2017 · 9 comments
Closed
6 of 18 tasks

UDP forwarding doesn't seem to work #1090

Mygod opened this issue Jan 23, 2017 · 9 comments

Comments

@Mygod
Copy link
Contributor

Mygod commented Jan 23, 2017

Please read FAQ then answer these questions before submitting your issue. Thanks!

Environment

  • Android version: 7.1.1
  • Device: bacon
  • Shadowsocks version: b3bab98
  • Last version that did not exhibit the issue (if applicable):

Configuration

Put an x inside the [ ] that applies.

  • IPv4 server address
  • IPv6 server address
  • Client IPv4 availability
  • Client IPv6 availability
  • Local port: 1080
  • Encrypt method: chacha20
  • One-time authentication
  • Route
    • All
    • Bypass LAN
    • Bypass China
    • Bypass LAN & China
    • GFW List
    • China List
    • Custom rules
  • IPv6 route
  • Per-App Proxy
    • Bypass mode
  • UDP Forwarding
  • TCP Fast Open
  • NAT mode

What did you do?

  1. Connect with UDP forwarding on;
  2. Connect with plugin KCP.

What did you expect to see?

If 2 works (which implies that I have a working UDP connection), 1 should work as well.

What did you see instead?

2 works while 1 fails.

@madeye
Copy link
Contributor

madeye commented Jan 23, 2017

It's quite tricky here. To make UDP and kcptun both work, you have to add additional parameters to plugin_opts. For example:

On the server

ss-server -c config.json --plugin kcp-server -s 443 --plugin-opts "listen=0.0.0.0:444" -u

On the client

ss-local -c config.json --plugin kcp-local --plugin-opts "remoteaddr=server_ip:444" -u

@madeye
Copy link
Contributor

madeye commented Jan 23, 2017

And we may add this to FAQ.

@Mygod
Copy link
Contributor Author

Mygod commented Jan 23, 2017

I meant:

  1. UDP on and KCP off;
  2. UDP off and KCP on.

And I'm running kcptun at server side independently.

@madeye
Copy link
Contributor

madeye commented Jan 23, 2017

Hmm.. I tried UDP forwarding locally, and it works well... Any chance it's a network issue?

@Mygod
Copy link
Contributor Author

Mygod commented Jan 23, 2017

Wait it turns out I have never set up UDP forwarding on my server side... Why do I remember it used to work? Never mind...

@Mygod Mygod closed this as completed Jan 23, 2017
@Mygod
Copy link
Contributor Author

Mygod commented Jan 23, 2017

Hmm and I don't think it's necessary to add that to FAQ since SIP003 doesn't support UDP for now.

@coolicer
Copy link

coolicer commented Mar 2, 2017

@madeye 先启动ss-server,再启动kcp行不行。

@madeye
Copy link
Contributor

madeye commented Mar 2, 2017

@coolicer Yes, it also works.

@coolicer
Copy link

coolicer commented Mar 2, 2017

@madeye 还是有问题的。
kcp我这样启动的
./kcp_server -l 0.0.0.0:444 -t SS_SERVER_IP:PORT

然后android的configure是这样:
remoteaddr=server_ip:444;

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

No branches or pull requests

3 participants