#!/bin/bash

source ./kernel_config_utils.sh
source ./net_utils.sh

iptables_multiport_check() {
    if ! kernel_config_check CONFIG_NETFILTER_XT_MATCH_MULTIPORT xt_multiport; then
        return 1
    fi

    if ! iptables_rule_check mangle PREROUTING -p udp --dport 6666:6699; then
        return 1
    fi
}

