(net_ifs, ports, src_ip, igmp=False, prompt=True, dry=False)
Configure firewallrules to accept blocksat traffic via DVB interface

    Args:
        net_ifs : List of DVB network interface names
        ports   : UDP ports used by satellite traffic
        src_ip  : Source IP to whitelist (unique to each satellite)
        igmp    : Whether or not to configure rule to accept IGMP queries
        prompt  : Prompt user to accept configurations before executing them
        dry     : Dry run mode
Configure firewallrules to accept blocksat traffic via DVB interface
Configure firewallrules to accept blocksat traffic via DVB interface
def configure(net_ifs, ports, src_ip, igmp=False, prompt=True, dry=False):
    """Configure firewallrules to accept blocksat traffic via DVB interface

    Args:
        net_ifs : List of DVB network interface names
        ports   : UDP ports used by satellite traffic
        src_ip  : Source IP to whitelist (unique to each satellite)
        igmp    : Whether or not to configure rule to accept IGMP queries
        prompt  : Prompt user to accept configurations before executing them
        dry     : Dry run mode

    """
    assert (isinstance(net_ifs, list))
    runner.set_dry(dry)
    util.print_header("Firewall Rules")

    for i, net_if in enumerate(net_ifs):
        if (is_firewalld()):
            _configure_firewalld(net_if, ports, src_ip, igmp, prompt)
        else:
            _configure_iptables(net_if, ports, igmp, prompt)

        if (i < len(net_ifs) - 1):
            print("")
def configure ( net_ifs , ports , src_ip , igmp = False , prompt = True , dry = False ) : assert ( isinstance ( net_ifs , list ) ) runner . set_dry ( dry ) util . print_header ( "Firewall Rules" ) for i , net_if in enumerate ( net_ifs ) : if ( is_firewalld ( ) ) : _configure_firewalld ( net_if , ports , src_ip , igmp , prompt ) else : _configure_iptables ( net_if , ports , igmp , prompt ) if ( i < len ( net_ifs ) - 1 ) : print ( "" )