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

Reopen Issue #368 #370

Closed
wellsgz opened this issue Jan 15, 2020 · 9 comments
Closed

Reopen Issue #368 #370

wellsgz opened this issue Jan 15, 2020 · 9 comments
Labels
bug Something isn't working

Comments

@wellsgz
Copy link

wellsgz commented Jan 15, 2020

Reopen issue #368

不好意思又要麻烦亲了,我在修正了iptables之后测试仍然发现有问题,附上测试的日志如下:

通过日志可以看到服务端(nps)有转发到UDP报文到客户端(npc),客户端(npc)也有收到报文,然而好像报文被进程/内核丢弃了并没有转发到目的端口(这个时候在dns服务看不到query request)

image

@wellsgz wellsgz added the bug Something isn't working label Jan 15, 2020
@cnlh
Copy link
Collaborator

cnlh commented Jan 15, 2020

建议换成114.114.114.114试试

@wellsgz
Copy link
Author

wellsgz commented Jan 15, 2020

建议换成114.114.114.114试试

试过换成上游服务器一样的结果,我的是一个内网环境,不可以用public的dns,类似114.114.114.114 or 1.1.1.1

@cnlh
Copy link
Collaborator

cnlh commented Jan 15, 2020

按照同样的方式我测试是可以的
建议你换个方式测试,你这现在全部都是127.0.0.1可能会有问题

@wellsgz
Copy link
Author

wellsgz commented Jan 15, 2020

按照同样的方式我测试是可以的
建议你换个方式测试,你这现在全部都是127.0.0.1可能会有问题

我把转发地址换成上游结果是一样的,还有什么其他的debugging手段可以用么?

image

@wellsgz
Copy link
Author

wellsgz commented Jan 15, 2020

按照同样的方式我测试是可以的
建议你换个方式测试,你这现在全部都是127.0.0.1可能会有问题

又做了几个简单的测试我想我发现了问题,加密和压缩,任意打开其中一项或者两项都打开都会导致我描述的问题,如果加密和压缩都关闭则UDP转发可以正常工作.

@cnlh
Copy link
Collaborator

cnlh commented Jan 15, 2020

udp对与压缩和加密的支持确实存在问题,将在下个版本修复,感谢反馈

@wellsgz
Copy link
Author

wellsgz commented Jan 15, 2020

udp对与压缩和加密的支持确实存在问题,将在下个版本修复,感谢反馈

多谢,我还有一个问题想请教.

我在disable了encrypt之后抓过包,发现似乎client和server之间的通信是tls加密的,我想请教如果隧道已经tls加密,client级别配置encrypt的作用为何?

@cnlh
Copy link
Collaborator

cnlh commented Jan 15, 2020

不设置加密client和server是不加密的 你仔细看看呢

@wellsgz
Copy link
Author

wellsgz commented Jan 15, 2020

不设置加密client和server是不加密的 你仔细看看呢

您是对的,没用新的抓包文件覆盖旧的抓包文件,坐等更新了

cnlh added a commit that referenced this issue Feb 12, 2020
kiririx pushed a commit to kiririx/nps that referenced this issue Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants