← Back to team overview

touch-packages team mailing list archive

[Bug 194844] Re: ufw complains when ipv6 and/or ip6_tables is not available

 

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
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.

Disable IPv6 in /etc/sysctl.d/40-ipv6.conf work always OK.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ufw in Ubuntu.
https://bugs.launchpad.net/bugs/194844

Title:
  ufw complains when ipv6 and/or ip6_tables is not available

Status in ufw package in Ubuntu:
  Fix Released
Status in ufw source package in Hardy:
  Fix Released

Bug description:
  On kernels that don't have ipv6 compiled or have it blacklisted, the
  user is presented with confusing stderr output from ip6tables, even
  though the firewall does setup IPv4 rules correctly.  Eg:

  $ sudo ufw enable
  FATAL: Module ip6_tables not found.
  ip6tables-restore v1.3.8: ip6tables-restore: unable to initialize table 'filter'

  Error occurred at line: 1
  Try `ip6tables-restore -h' or 'ip6tables-restore --help' for more information.
  WARN: problem running ip6tables
  Firewall started and enabled on system startup

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ufw/+bug/194844/+subscriptions