ufw

Add directory support for before.rules and after.rules

Bug #910324 reported by Marcus
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ufw
Triaged
Wishlist
Unassigned

Bug Description

It would be nice if ufw could support using a before.rules.d/* and after.rules.d/* definition using multiple files. This would make it easier to manage rule sets for systems and different system types without having to merge them with the local rule settings and would allow to manage rules more easily in version control systems like bzr or git.

Changed in ufw:
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Hadmut Danisch (hadmut) wrote :

Well, I've simulated this by putting

case "$1" in

    start)

        if [ -d /etc/ufw/before.d ]; then
            # --exit-on-error
            run-parts /etc/ufw/before.d
        fi

        ;;

...

into before.init, which works, but breaks updating since this is a file of the ufw package. To get this really effective, it would have to be defined as a standard, making package maintainers to put their scripts into these directories.

Since ufw supports only a subset of iptables, this is needed to implement functions not covered by ufw, e.g. ipset.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.