#!/bin/bash

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

iptables_masquerade_check() {
    if ! kernel_config_check CONFIG_NETFILTER_XT_TARGET_MASQUERADE xt_MASQUERADE; then
        return 1
    fi

    if ! iptables_rule_check nat POSTROUTING -j MASQUERADE; then
        return 1
    fi
}

