ufw

ufw reload dose not solve problem caused by iptables flush

Bug #1991926 reported by Mahdi Activ.
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ufw
Invalid
Undecided
Unassigned

Bug Description

After `iptables --flush` neither using `ufw reload` or `ufw enable` commands won't solve the problem caused by `iptables -f`. ufw blocks all connections.

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

Thank you for the report.

`iptables --flush` is modifying the firewall outside of ufw and it removes firewall state, which is why you are seeing this. If you are doing this, you can instead do:

$ sudo /lib/ufw/ufw-init flush-all
$ sudo ufw disable
$ sudo ufw enable

(you can also do the first instead of `iptables --flush`).

Changed in ufw:
status: New → Invalid
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.