#!/bin/bash # when restoring a ruleset, *tables-restore prefixes each rule with # '-t ' so standard rule parsing routines may be used. This means # that it has to detect and reject rules which already contain a table option. families="ip ip6" [[ $(basename $XT_MULTI) == xtables-nft-multi ]] && families+=" eb" for fam in $families; do $XT_MULTI ${fam}tables-restore <