ip6tables alternate is not setup correctly

Bug #1865531 reported by Jamie Strandboge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
iptables (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

ip6tables is not properly setup for the nft backend.

$ sudo update-alternatives --query ip6tables
Name: ip6tables
Link: /usr/sbin/ip6tables
Slaves:
 ip6tables-restore /usr/sbin/ip6tables-restore
 ip6tables-save /usr/sbin/ip6tables-save
Status: auto
Best: /usr/sbin/ip6tables-legacy
Value: /usr/sbin/ip6tables-legacy

Alternative: /usr/sbin/ip6tables-legacy
Priority: 20
Slaves:
 ip6tables-restore /usr/sbin/ip6tables-legacy-restore
 ip6tables-save /usr/sbin/ip6tables-legacy-save

Alternative: /usr/sbin/ip6tables-nft
Priority: 10
Slaves:
 ip6tables-restore /usr/sbin/ip6tables-nft-restore
 ip6tables-save /usr/sbin/ip6tables-nft-save

But, looking at the files in /usr/sbin, /usr/sbin/ip6tables is not a symlink into /etc/alternatives/ip6tables:

$ ls -l /usr/sbin/ip6tables
-rwxr-xr-x 1 root root 99296 Feb 28 08:16 /usr/sbin/ip6tables

but the symlink in /etc/alternatives is setup ok:

$ ls -l /etc/alternatives/ip6tables
lrwxrwxrwx 1 root root 26 Mar 2 10:12 /etc/alternatives/ip6tables -> /usr/sbin/ip6tables-legacy

This breaks, for example, ufw when the system is setup for nft.

Changed in iptables (Ubuntu):
assignee: nobody → Jamie Strandboge (jdstrand)
status: New → Triaged
status: Triaged → In Progress
importance: Undecided → Medium
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

This appears to be a test environment issue. I was unable to reproduce on my laptop, in Debian sid, in an eoan to focal upgrade and a bionic to focal upgrade. iptables.postinst looks fine too. I'll reopen if I have something more concrete.

Changed in iptables (Ubuntu):
status: In Progress → Invalid
assignee: Jamie Strandboge (jdstrand) → nobody
importance: Medium → Undecided
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.