Adding custom firewall rules

  • I am running OMV 5.6 on Debian 10. I would like to add come custom firewall rules to protect my Docker instances (which would require making changes to the FORWARD or DOCKER-USER chains).


    The official documentation (https://openmediavault.readthe…tion/general/network.html) says "The mkconf openmediavault script uses a run-parts folder /usr/share/mkconf/iptables.d where is possbile to store custom scripts to add rules to the NAT and RAW table or the FORWARD chain." This location does not in fact exist and there is no indication in the documentation of how, even if it existed, a user should add commands/scripts there to include custom rules.


    I also noted the following mismatch: the official documentation (same page as above) states that the "The configuration to load the rules at boot or network restart is located/etc/network/if-pre-up.d/openmediavault-iptables" While this file exists on my system, its content seems to be outdated and the rules contained in the GUI/config.xml actually seem to be stored in /etc/iptables/openmediavault-firewall.sh instead.


    Please help.


    Thank you.

  • macom

    Approved the thread.
  • mkconf is no longer used by OMV. Documentation that references it is obsolete.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!