-
Notifications
You must be signed in to change notification settings - Fork 130
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
Comments
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 |
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>
@aholler we finally unblocked CI |
@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! |
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
The text was updated successfully, but these errors were encountered: