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 relay doesn't work when kcptun enabled #1201

Closed
3 of 19 tasks
1997cui opened this issue Apr 10, 2017 · 7 comments
Closed
3 of 19 tasks

UDP relay doesn't work when kcptun enabled #1201

1997cui opened this issue Apr 10, 2017 · 7 comments

Comments

@1997cui
Copy link

1997cui commented Apr 10, 2017

UDP relay is not working when kcptun enabled. I guess the reason is that when kcptun enabled, all the traffic (include UDP) is forwarding to kcptun process by shadowsocks, however, kcptun could not handle UDP packet yet.

This could be solved by add a separated "remote port" and "remote address" option, and when kcptun plugin is enabled, create a dedicated shadowsocks process to only deal with UDP relay.

Environment

  • Android version: "7.0.0"
  • Device: Nexus 6
  • Shadowsocks version: "v4.1.3 google play"

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:
  • 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
  • Remote DNS: 8.8.8.8
  • DNS Forwarding
  • Plugin configuration (if applicable): kcptun
  • Auto Connect
  • TCP Fast Open
  • NAT mode
@madeye
Copy link
Contributor

madeye commented Apr 10, 2017

Try this: #1090 (comment)

@1997cui
Copy link
Author

1997cui commented Apr 10, 2017

解决了,方法是在Android客户端把前面的远程端口号换成shadowsocks的端口号,最后在kcp的配置里把remoteaddr配置成kcp的端口号。不过这个解法真tricky,希望能改改Android版的界面

@Mygod
Copy link
Contributor

Mygod commented Apr 10, 2017

It's an unofficial workaround since UDP isn't officially supported by the plugins.

@ryanerwin
Copy link

@1997cui 这个kcptun插件的remoteaddr配置你可以多解释吗?

我设置的UDP remoteaddr在电脑上能使用,但是在安卓上就用不了kcptun。。。

我认为关键问题是怎么配置本地SS来链接到本地的KCPTUN?我试试把SS服务器为127.0.0.1,端口:12948 (kcptun的默认 localaddr端口)但是SS失败反应那么快。。。感觉根本没有启动kcptun的代理。。。

我查到两年前的截图,当时SS有KCP端口可以直接设置,但是现在没有。。。

@eebssk1
Copy link

eebssk1 commented Jul 12, 2018

@ryanerwin
相同的问题,在安卓kcp插件配置里写remoteaddr根本连不上

@ryanerwin
Copy link

ryanerwin commented Jul 13, 2018

@eebssk1
Copy link

eebssk1 commented Jul 15, 2018

@ryanerwin 访问不了 Access Denied

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

5 participants