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

NAT64 session state replication does not work on kernel 5.10 #362

Closed
sysvinit opened this issue May 26, 2021 · 5 comments
Closed

NAT64 session state replication does not work on kernel 5.10 #362

sysvinit opened this issue May 26, 2021 · 5 comments
Milestone

Comments

@sysvinit
Copy link
Contributor

I'm running Jool 4.1.5 on a pair of Debian Buster machines, and (in the same arrangement as #352) both are performing NAT64 translation with Jool, and using joold to replicate session state between themselves.

Previously, I was running an old 4.9-series kernel on these machines, and session state replication worked correctly, however I have since upgraded to a 5.10-series kernel from the buster-backports repository, and session state replication no longer works.

I have attempted to ping a v6-translated v4 address from a v6-only machine behind the translators, and while the session state on the egress router is visible with jool session display --numeric --icmp, the session is not replicated to the second router, as the session is not visible with the same command. I see the following message in the first router's logs:

May 26 14:27:50 lathe joold: Error receiving packet from kernelspace: Invalid input data or parameter                                                                  
May 26 14:27:50 lathe joold: Error receiving packet from kernelspace: Invalid input data or parameter                                                                  
May 26 14:27:51 lathe joold: Error receiving packet from kernelspace: Invalid input data or parameter
May 26 14:27:51 lathe joold: Error receiving packet from kernelspace: Invalid input data or parameter
May 26 14:27:52 lathe joold: Error receiving packet from kernelspace: Invalid input data or parameter
May 26 14:27:52 lathe joold: Error receiving packet from kernelspace: Invalid input data or parameter
May 26 14:27:53 lathe joold: Error receiving packet from kernelspace: Invalid input data or parameter
May 26 14:27:53 lathe joold: Error receiving packet from kernelspace: Invalid input data or parameter
May 26 14:27:54 lathe joold: Error receiving packet from kernelspace: Invalid input data or parameter

[Due to external factors, I have limited time to look into this at present, so if more information is required it might take some time until I'm able to investigate further.]

@ydahhrk
Copy link
Member

ydahhrk commented May 26, 2021

Did you check the versions match?

$ jool --version
4.1.5.0
$ dmesg | grep "module inserted"
NAT64 Jool v4.1.5.0 module inserted.

@sysvinit
Copy link
Contributor Author

Yes, the versions of the kernel module and the userspace tools match. The only thing I changed was the kernel version (from 4.9 to 5.10), and I have DKMS set up to build the appropriate version of the kernel module automatically.

@ydahhrk
Copy link
Member

ydahhrk commented May 28, 2021

Ok. I did manage to reproduce it; will debug tomorrow.

@ydahhrk
Copy link
Member

ydahhrk commented May 28, 2021

@sysvinit: The bug is most likely fixed. Please verify.

@sysvinit
Copy link
Contributor Author

I can confirm that this bug has been fixed -- thanks for looking into this so quickly!

@ydahhrk ydahhrk added this to the 4.1.6 milestone Dec 3, 2021
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

2 participants