ufw

Disable IPv6 in kernel generate error in Ufw 0.33.3

Bug #1465332 reported by Tomás F. L.
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ufw
Fix Released
Undecided
Unassigned

Bug Description

Hello.
I have found the following mistake:
Manjaro 0.8.13-rc1
OpenRC 0.16.3
Ufw 0.33.3
Linux manjaro 3.18.14-1-MANJARO #1 SMP PREEMPT Mon May 25 01:26:15 UTC 2015 x86_64 GNU/Linux

x64
---
IPv6 disable in kernel work OK but Ufw has an error with ipv6.disable=1 in GRUB_CMDLINE_LINUX_DEFAULT of /etc/default/grub

ufw status/enable
Traceback (most recent call last):
  File "/usr/bin/ufw", line 95, in <module>
    ui = ufw.frontend.UFWFrontend(pr.dryrun)
  File "/usr/lib/python2.7/site-packages/ufw/frontend.py", line 153, in __init__
    self.backend = UFWBackendIptables(dryrun)
  File "/usr/lib/python2.7/site-packages/ufw/backend_iptables.py", line 45, in __init__
    ufw.backend.UFWBackend.__init__(self, "iptables", dryrun, files)
  File "/usr/lib/python2.7/site-packages/ufw/backend.py", line 88, in __init__
    nf_caps = ufw.util.get_netfilter_capabilities(self.ip6tables)
  File "/usr/lib/python2.7/site-packages/ufw/util.py", line 734, in get_netfilter_capabilities
    raise OSError(errno.ENOENT, out)
OSError: [Errno 2] ip6tables v1.4.21: can't initialize ip6tables table `filter': Address family not supported by protocol
Perhaps ip6tables or your kernel needs to be upgraded.

In the file: /etc/default/ufw --> IPV6=no

Ufw don't start.

Disable IPv6 in /etc/sysctl.d/40-ipv6.conf all work OK.
# Disable IPv6
net.ipv6.conf.all.disable_ipv6 = 1

Greetings

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Thank you for using ufw and reporting a bug. I was unable to reproduce this with ufw trunk. Can you try with that and report back?

affects: ufw (Ubuntu) → ufw
Changed in ufw:
status: New → Incomplete
Revision history for this message
Tomás F. L. (v17564) wrote :

I use the regular package of the distribution. I looking for the trunk for Manjaro (or Arch) and i found this link: https://code.launchpad.net/~jdstrand/ufw/trunk

If you indicate me as to proceed I will do it.

Revision history for this message
Tomás F. L. (v17564) wrote :

Hi Jamie.

The new version 0.34-1 solve the bug.

Thanks.

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Thanks for reporting back.

Changed in ufw:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.