ufw reload dose not solve problem caused by iptables flush
Bug #1991926 reported by
Mahdi Activ.
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.
To post a comment you must log in.
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`).