[Enhancement] Gufw/ufw could be linked to iptables-persistent or include extensions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gufw |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hello,
I've just installed iptables-persistent package so that my user-defined iptables rules are reloaded at each reboot.
Some rules cannot be defined with Gufw/ufw, such as for instance "sudo iptables -I OUTPUT -m geoip --dst-cc <country-code> -j ACCEPT" which uses Xtables-addons.
In order to have these manually defined iptables rules reloaded at each reboot, the correct way is to save them in 2 user-defined files such as /etc/iptables/
However, any change done in Gufw is subsequently lost unless a manual call to save all the rules is made each time.
So I propose 2 options to enhance Gufw:
* include in Gufw settings the possibility to define the path to iptables-persistent configuration, so that each time the user changes a rule in Gufw, it is saved there, otherwise it will be lost,
* or enhance Gufw with the possibility to use extensions such as Xtables-addons, which would prevent us from having to manipulate the iptables & install iptables-persistent package.
Your call...
description: | updated |
Hi,
The correct way to do this would be to add your custom rules into ufw's before.rules and/or after.rules files. See https:/ /wiki.ubuntu. com/Uncomplicat edFirewall# Advanced_ Functionality for more information.