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

uoa_max_trail=3设置后会丢失前三个udp的包 #940

Open
elegx opened this issue Mar 7, 2024 · 5 comments
Open

uoa_max_trail=3设置后会丢失前三个udp的包 #940

elegx opened this issue Mar 7, 2024 · 5 comments

Comments

@elegx
Copy link

elegx commented Mar 7, 2024

使用的,dpvs 1.9.2的版本,配置文件中指定uoa_max_trail=3,测试看前三个udp包一定会丢失,只有改为0才是正常,这个怎么处理呢

@ywc689
Copy link
Collaborator

ywc689 commented Mar 8, 2024

在后端服务器上安装下uoa.ko内核模块, 或者设置uoa_max_trail=0

@elegx
Copy link
Author

elegx commented Mar 8, 2024

后端安装了uoa.ko,也设置了uoa_max_trail=0,发现拿不到真实用户IP了,然后再改回uoa_max_trail=3就能拿到真实用户IP,这个是为什么呢 @ywc689
udp {
! defence_udp_drop
uoa_mode opp
uoa_max_trail 3
timeout {
normal 300
last 3
}
}

@ywc689
Copy link
Collaborator

ywc689 commented Mar 8, 2024

如果需要真实用户IP,必须 uoa_max_trail > 0,并且安装 uoa.ko。
如果不需要真实用户IP,可以设置 uoa_max_trail = 0,不安装 uoa.ko。
uoa_max_trail 控制dpvs是否在转发时添加 uoa 信息,具体细节你看代码吧。

@elegx elegx closed this as completed Mar 12, 2024
@HD920836417
Copy link

@ywc689 作者您好 请问下我这边如果需要用户真实ip,所以必须设置了uoa_max_trail=3并安装了uoa.ko内核模块,但是目前我这边发现udp回包时会连续丢前三个包,这个丢包现象bug吗还是预期内的?有什么好的方式可以既拿到用户真实ip,又不丢包吗?
谢谢

@elegx elegx reopened this Mar 13, 2024
@ywc689
Copy link
Collaborator

ywc689 commented Mar 14, 2024

@ywc689 作者您好 请问下我这边如果需要用户真实ip,所以必须设置了uoa_max_trail=3并安装了uoa.ko内核模块,但是目前我这边发现udp回包时会连续丢前三个包,这个丢包现象bug吗还是预期内的?有什么好的方式可以既拿到用户真实ip,又不丢包吗? 谢谢

按之前说的,如果需要真实用户IP,必须 uoa_max_trail > 0,并且安装 uoa.ko,二者缺一不可。另外,UDP回包(RS->DPVS)不受uoa影响,如果丢包,请排查其它可能。

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

3 participants