[Enhancement] Gufw/ufw could be linked to iptables-persistent or include extensions

Bug #1572973 reported by jean-christophe manciot
6
This bug affects 1 person
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/rules.v4 & /etc/iptables/rules.v6 with "sudo iptables-save > /etc/iptables/rules.v4" & "sudo ip6tables-save > /etc/iptables/rules.v6", which will be later used by iptables-persistent at each Linux startup.
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
Revision history for this message
Emilio (turl) wrote :

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/UncomplicatedFirewall#Advanced_Functionality for more information.

Revision history for this message
costales (costales) wrote :

Sorry, but Gufw is for normal users. Use of iptables-persistent is avanced.
About handons, as sudo app, I'll not allow that.
Thanks for the feedback.

Changed in gui-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.