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中继功能没有正确的UDP NAT #259

Closed
lixin9311 opened this Issue Feb 8, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@lixin9311

lixin9311 commented Feb 8, 2015

在给go版加udp relay功能的时候发现的。
每个udp请求ss-server都会新开一个端口转发到目的地址,这样虽然DNS没有问题,但是OpenVPN这样的应用就不行了。
ss-tunnel在udp模式下看起来每次也会用一个新端口与ss-server通讯。

@madeye

This comment has been minimized.

madeye commented Feb 8, 2015

所以 UDP Relay 部分需要有一个 LRU Cache 来缓存 NAT 记录,具体见 udprelay.c 和 cache.c 的相关实现。

@madeye madeye closed this Feb 9, 2015

@lixin9311

This comment has been minimized.

lixin9311 commented Feb 9, 2015

抱歉,编译了最新的2.1.4,有NAT的。

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