• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash -e
2
3# make sure empty lines won't break --noflush
4
5cat <<EOF | $XT_MULTI iptables-restore --noflush
6# just a comment followed by innocent empty line
7
8*filter
9-A FORWARD -j ACCEPT
10COMMIT
11EOF
12
13EXPECT='Chain FORWARD (policy ACCEPT)
14target     prot opt source               destination
15ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           '
16diff -u <(echo "$EXPECT") <($XT_MULTI iptables -n -L FORWARD)
17