Thank you for using ufw and reporting a bug. I cannot reproduce this:
$ sudo ufw allow OpenSSH
$ sudo ufw enable
$ sudo ufw show added
Added user rules (see 'ufw status' for running firewall):
ufw allow OpenSSH
$ sudo ufw allow in on eth0 to any port 8080 proto tcp
Rule added
Rule added (v6)
$ sudo ufw show added
Added user rules (see 'ufw status' for running firewall):
ufw allow OpenSSH
ufw allow in on eth0 to any port 8080 proto tcp
$ sudo ufw delete allow in on eth0 to any port 8080 proto tcp
Rule deleted
Rule deleted (v6)
$ sudo ufw show added
Added user rules (see 'ufw status' for running firewall):
ufw allow OpenSSH
The rule you added (as you can see from the above) is generic enough to
be applied to *both* IPv4 and IPv6. Did you delete the rule in the
manner I did above, or did you use 'ufw delete NUMBER'. When using
'delete NUMBER' ufw will only delete the rule specified and will not
assume you want other numbered rules to be deleted also. Eg:
$ sudo ufw allow in on eth0 to any port 8080 proto tcp
Rule added
Rule added (v6)
$ sudo ufw show added
Added user rules (see 'ufw status' for running firewall):
ufw allow OpenSSH
ufw allow in on eth0 to any port 8080 proto tcp
$ sudo ufw status numbered
Status: active
To Action From
-- ------ ----
[ 1] OpenSSH ALLOW IN Anywhere
[ 2] 8080/tcp on eth0 ALLOW IN Anywhere
[ 3] OpenSSH (v6) ALLOW IN Anywhere (v6)
[ 4] 8080/tcp (v6) on eth0 ALLOW IN Anywhere (v6)
$ sudo ufw delete 2
Deleting:
allow in on eth0 to any port 8080 proto tcp
Proceed with operation (y|n)? y
Rule deleted
$ sudo ufw status numbered
Status: active
To Action From
-- ------ ----
[ 1] OpenSSH ALLOW IN Anywhere
[ 2] OpenSSH (v6) ALLOW IN Anywhere (v6)
[ 3] 8080/tcp (v6) on eth0 ALLOW IN Anywhere (v6)
$ sudo ufw show added
Added user rules (see 'ufw status' for running firewall):
ufw allow OpenSSH
ufw allow in on eth0 to any port 8080 proto tcp
The above is expected and intended behavior.
** Changed in: ufw (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1698751
Title:
interface related rules appear active after deletion
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ufw/+bug/1698751/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs