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

kilo fails if IPv6 is disabled via ipv6.disable=1 (kernel-cmdline) #259

Closed
aholler opened this issue Jan 4, 2022 · 3 comments · Fixed by #260
Closed

kilo fails if IPv6 is disabled via ipv6.disable=1 (kernel-cmdline) #259

aholler opened this issue Jan 4, 2022 · 3 comments · Fixed by #260

Comments

@aholler
Copy link

aholler commented Jan 4, 2022

If IPv6 is disabled via ipv6.disable=1 in the kernel command line, kilo fails with

{"caller":"mesh.go:521","component":"kilo","error":"failed to add rule: failed to add iptables chain: running [/sbin/ip6tables -t nat -N KILO-NAT --wait]: exit status 3: ip6tables v1.8.4 (legacy): can't initialize ip6tables table `nat': Address family not supported by protocol\nPerhaps ip6tables or your kernel needs to be upgraded.\n","level":"error","ts":"2022-01-04T07:11:44.22190937Z"}

The result is that the wireguard interface will not be enabled and tunneling won't work (using 0.3.1).

Best regards,

Alexander Holler

@squat
Copy link
Owner

squat commented Jan 4, 2022

Hi @aholler, yes that is a very good catch. Indeed i can see why this occurs, as we try to start iptables controllers for both protocols to be ready for whatever may come. I think this should be quite straightforward to fix

squat added a commit that referenced this issue Jan 4, 2022
This commit enhances the iptables controller to disable reconciliation
of IPv6 rules whenever it detects that IPv6 is disabled in the kernel,
in order to fix #259.

Signed-off-by: Lucas Servén Marín <lserven@gmail.com>
@squat squat closed this as completed in #260 Jan 4, 2022
@squat
Copy link
Owner

squat commented Jan 5, 2022

@aholler we finally unblocked CI
this issue should be happily resolved now :) If possible, could you try the latest Kilo tag squat/kilo:76047fe0affd60e4828db36fea6a540f9d7e0bb7 on your cluster and let us know if this fixed the problem you reported?

@aholler
Copy link
Author

aholler commented Jan 7, 2022

@squat works:

{"caller":"iptables.go:278","component":"iptables","level":"info","msg":"IPv6 is disabled in the kernel; disabling the IPv6 iptables controller","ts":"2022-01-07T05:49:21.102871067Z"}

Thanks a lot!

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

Successfully merging a pull request may close this issue.

2 participants