Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added FirewallD support to scripts #388

Merged

Commits on Apr 7, 2024

  1. Added FirewallD support to scripts

    The default action on Fedora and RHEL-based distributions that use
    FirewallD is to ban DHCP requests. Instead of telling people to turn off
    their firewall, I recommend adding the tap interfaces to the FirewallD
    trusted zone.
    
    This commit adds automatic support to the create_net.sh and
    cleanup-net.sh scripts that set up the tap interfaces. Due to many
    distributions using FirewallD these days, I opted for using the
    following command to check if FirewallD is available:
    
    if [ -e $(which --skip-alias firewall-cmd) ]; then
        sudo firewall-cmd --zone=trusted --change-interface=$device
    fi
    
    However, we will have to create a better solution for this in the
    future.
    
    Signed-off-by: Frey Alfredsson <[email protected]>
    freysteinn committed Apr 7, 2024
    Configuration menu
    Copy the full SHA
    007bb7a View commit details
    Browse the repository at this point in the history