#!/bin/bash # Make sure iptables-restore does the right thing # when encountering INSERT rules with index. set -e # show rules, drop uninteresting policy settings ipt_show() { $XT_MULTI iptables -S | grep -v '^-P' } # basic issue reproducer $XT_MULTI iptables-restore <