Searched refs:XT_MULTI (Results 1 – 25 of 52) sorted by relevance
123
7 [[ $XT_MULTI == *xtables-nft-multi ]] || { echo "skip $XT_MULTI"; exit 0; }11 $XT_MULTI ebtables --init-table12 $XT_MULTI ebtables -A INPUT -p IPv4 -i lo -j ACCEPT13 $XT_MULTI ebtables -P FORWARD DROP14 $XT_MULTI ebtables -A OUTPUT -s ff:ff:ff:ff:ff:ff/ff:ff:ff:ff:ff:ff -j DROP15 $XT_MULTI ebtables -N foo16 $XT_MULTI ebtables -A foo --802_3-sap 0x23 -j ACCEPT17 $XT_MULTI ebtables -A foo --802_3-sap 0xaa --802_3-type 0x1337 -j ACCEPT19 $XT_MULTI ebtables -A foo -p ARP --arp-gratuitous -j ACCEPT20 $XT_MULTI ebtables -A foo -p ARP --arp-opcode Request -j ACCEPT[all …]
3 case "$XT_MULTI" in7 echo "skip $XT_MULTI"13 $XT_MULTI ebtables -L $1 | sed -n 's/.*entries: \([0-9]*\).*/\1/p'19 $XT_MULTI ebtables -t $t -L || exit 120 $XT_MULTI ebtables -t $t -X || exit 121 $XT_MULTI ebtables -t $t -F || exit 125 $XT_MULTI ebtables -t $t -L &&26 $XT_MULTI ebtables -t $t -X &&27 $XT_MULTI ebtables -t $t -F35 $XT_MULTI ebtables -t filter -N FOO || exit 1[all …]
6 [[ $XT_MULTI == *xtables-nft-multi ]] || { echo "skip $XT_MULTI"; exit 0; }8 $XT_MULTI ebtables --init-table9 $XT_MULTI ebtables -A FORWARD -i nodev123 -o nodev432 -j ACCEPT10 $XT_MULTI ebtables -A FORWARD -i nodev432 -o nodev123 -j ACCEPT19 diff -u <(echo -e "$EXPECT") <($XT_MULTI ebtables -L FORWARD)28 diff -u <(echo -e "$EXPECT") <($XT_MULTI ebtables -L FORWARD --Lc)38 diff -u <(echo -e "$EXPECT") <($XT_MULTI ebtables-save | grep -v '^#')48 diff -u <(echo -e "$EXPECT") <($XT_MULTI ebtables-save -c | grep -v '^#')54 diff -u <(echo -e "$EXPECT") <($XT_MULTI ebtables-save -c | grep -v '^#')64 diff -u <(echo -e "$EXPECT") <($XT_MULTI ebtables-save | grep -v '^#')
6 [[ $XT_MULTI == *xtables-nft-multi ]] || { echo "skip $XT_MULTI"; exit 0; }29 $XT_MULTI ebtables --init-table30 $XT_MULTI ebtables-restore <<<$DUMP31 diff -u <(echo -e "$EXPECT") <($XT_MULTI ebtables-save | grep -v '^#')
7 [[ $XT_MULTI == *xtables-nft-multi ]] || { echo "skip $XT_MULTI"; exit 0; }11 $XT_MULTI arptables -F12 $XT_MULTI arptables -A INPUT -s 10.0.0.0/8 -j ACCEPT13 $XT_MULTI arptables -A INPUT -d 192.168.123.1 -j ACCEPT14 $XT_MULTI arptables -A INPUT --source-mac fe:ed:ba:be:00:01 -j ACCEPT15 $XT_MULTI arptables -A INPUT --destination-mac fe:ed:ba:be:00:01 -j ACCEPT16 $XT_MULTI arptables -N foo17 $XT_MULTI arptables -A foo -i lo -j ACCEPT18 $XT_MULTI arptables -A foo -l 6 -j ACCEPT19 $XT_MULTI arptables -A foo -j MARK --set-mark 12345[all …]
7 [[ $XT_MULTI == *xtables-nft-multi ]] || { echo "skip $XT_MULTI"; exit 0; }9 $XT_MULTI arptables -N foo31 diff -u -Z <(echo -e "$VOUT1") <($XT_MULTI arptables -v -A INPUT $RULE1)32 diff -u -Z <(echo -e "$VOUT2") <($XT_MULTI arptables -v -A INPUT $RULE2)33 diff -u -Z <(echo -e "$VOUT3") <($XT_MULTI arptables -v -A INPUT $RULE3)34 diff -u -Z <(echo -e "$VOUT4") <($XT_MULTI arptables -v -A OUTPUT $RULE4)35 diff -u -Z <(echo -e "$VOUT5") <($XT_MULTI arptables -v -A OUTPUT $RULE5)36 diff -u -Z <(echo -e "$VOUT6") <($XT_MULTI arptables -v -A foo $RULE6)50 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI arptables -v -n -L)63 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI arptables-save | grep -v '^#')
6 [[ $XT_MULTI == *xtables-nft-multi ]] || { echo "skip $XT_MULTI"; exit 0; }24 $XT_MULTI arptables -F25 $XT_MULTI arptables-restore <<<$DUMP26 diff -u <(echo -e "$EXPECT") <($XT_MULTI arptables-save | grep -v '^#')
5 $XT_MULTI iptables -6 -A FORWARD -j ACCEPT12 $XT_MULTI ip6tables -4 -A FORWARD -j ACCEPT30 echo "$RULESET" | $XT_MULTI iptables-restore || {34 diff -u -Z <(echo -e "$EXPECT4") <($XT_MULTI iptables -S FORWARD) || {38 diff -u -Z <(echo -e "$EXPECT_EMPTY") <($XT_MULTI ip6tables -S FORWARD) || {43 $XT_MULTI iptables -F FORWARD45 echo "$RULESET" | $XT_MULTI ip6tables-restore || {49 diff -u -Z <(echo -e "$EXPECT6") <($XT_MULTI ip6tables -S FORWARD) || {53 diff -u -Z <(echo -e "$EXPECT_EMPTY") <($XT_MULTI iptables -S FORWARD) || {58 $XT_MULTI ip6tables -F FORWARD[all …]
13 diff -u -Z <(echo -e "$VOUT1") <($XT_MULTI iptables -v -A FORWARD $RULE1)14 diff -u -Z <(echo -e "$VOUT2") <($XT_MULTI iptables -v -I FORWARD 2 $RULE2)16 diff -u -Z <(echo -e "$VOUT1") <($XT_MULTI iptables -v -C FORWARD $RULE1)17 diff -u -Z <(echo -e "$VOUT2") <($XT_MULTI iptables -v -C FORWARD $RULE2)30 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI iptables -v -n -L)32 [[ -z $($XT_MULTI iptables -v -N foobar) ]] || exit 134 diff -u -Z <(echo -e "$VOUT1") <($XT_MULTI iptables -v -D FORWARD $RULE1)35 diff -u -Z <(echo -e "$VOUT2") <($XT_MULTI iptables -v -D FORWARD $RULE2)42 diff -u <(echo -e "$EXPECT") <($XT_MULTI iptables -v -F)49 diff -u <(echo -e "$EXPECT") <($XT_MULTI iptables -v -Z)[all …]
5 $XT_MULTI iptables -N foo6 $XT_MULTI iptables -A FORWARD -i eth23 -o eth42 -j ACCEPT7 $XT_MULTI iptables -A FORWARD -i eth42 -o eth23 -g foo8 $XT_MULTI iptables -t nat -A OUTPUT -o eth123 -m mark --mark 0x42 -j ACCEPT17 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI iptables -S)26 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI iptables -v -S)32 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI iptables -S FORWARD)38 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI iptables -v -S FORWARD)43 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI iptables -t nat -S OUTPUT)48 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI iptables -v -t nat -S OUTPUT)[all …]
9 $XT_MULTI iptables -S | grep -v '^-P'12 $XT_MULTI iptables -A FORWARD -m comment --comment "rule 1" -j ACCEPT13 $XT_MULTI iptables -A FORWARD -m comment --comment "rule 2" -j ACCEPT14 $XT_MULTI iptables -A FORWARD -m comment --comment "rule 3" -j ACCEPT16 $XT_MULTI iptables -R FORWARD 2 -m comment --comment "replaced 2" -j ACCEPT24 $XT_MULTI iptables -R FORWARD 1 -m comment --comment "replaced 1" -j ACCEPT32 $XT_MULTI iptables -R FORWARD 3 -m comment --comment "replaced 3" -j ACCEPT
7 $XT_MULTI iptables -N foo8 $XT_MULTI iptables -L | grep 'Chain foo (0 references)'10 $XT_MULTI iptables -A foo -j ACCEPT11 $XT_MULTI iptables -L | grep 'Chain foo (0 references)'13 $XT_MULTI iptables -A FORWARD -j foo14 $XT_MULTI iptables -L | grep 'Chain foo (1 references)'
13 diff -u -Z <(echo -e "$VOUT1") <($XT_MULTI ip6tables -v -A FORWARD $RULE1)14 diff -u -Z <(echo -e "$VOUT2") <($XT_MULTI ip6tables -v -I FORWARD 2 $RULE2)16 diff -u -Z <(echo -e "$VOUT1") <($XT_MULTI ip6tables -v -C FORWARD $RULE1)17 diff -u -Z <(echo -e "$VOUT2") <($XT_MULTI ip6tables -v -C FORWARD $RULE2)30 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI ip6tables -v -n -L)32 diff -u -Z <(echo -e "$VOUT1") <($XT_MULTI ip6tables -v -D FORWARD $RULE1)33 diff -u -Z <(echo -e "$VOUT2") <($XT_MULTI ip6tables -v -D FORWARD $RULE2)39 diff -u <(echo -e "$EXPECT") <($XT_MULTI ip6tables -v -F)45 diff -u <(echo -e "$EXPECT") <($XT_MULTI ip6tables -v -Z)47 diff -u <(echo "Flushing chain \`OUTPUT'") <($XT_MULTI ip6tables -v -F OUTPUT)[all …]
5 $XT_MULTI ip6tables -N foo6 $XT_MULTI ip6tables -A FORWARD -i eth23 -o eth42 -j ACCEPT7 $XT_MULTI ip6tables -A FORWARD -i eth42 -o eth23 -g foo8 $XT_MULTI ip6tables -t nat -A OUTPUT -o eth123 -m mark --mark 0x42 -j ACCEPT17 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI ip6tables -S)26 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI ip6tables -v -S)32 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI ip6tables -S FORWARD)38 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI ip6tables -v -S FORWARD)43 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI ip6tables -t nat -S OUTPUT)48 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI ip6tables -v -t nat -S OUTPUT)[all …]
33 $XT_MULTI iptables -N FOO || exit 134 $XT_MULTI iptables -I INPUT || exit 135 $XT_MULTI iptables -I FOO || exit 136 $XT_MULTI iptables -I FOO || exit 138 $XT_MULTI iptables-save | grep -v "^#" > "$tmpfile" || exit 139 $XT_MULTI iptables-restore < "$tmpfile" || exit 141 $XT_MULTI iptables -N BAR || exit 142 $XT_MULTI iptables -A BAR || exit 144 $XT_MULTI iptables-restore < "$tmpfile" || exit 145 $XT_MULTI iptables-save | grep -v "^#" > "$tmpfile1" || exit 1
3 $XT_MULTI iptables -N c1 || exit 04 $XT_MULTI iptables -N c2 || exit 05 $XT_MULTI iptables -E c1 c2 || exit 17 $XT_MULTI ip6tables -N c1 || exit 08 $XT_MULTI ip6tables -N c2 || exit 09 $XT_MULTI ip6tables -E c1 c2 || exit 1
5 $XT_MULTI iptables -N c16 $XT_MULTI ip6tables -N c18 $XT_MULTI iptables -N c29 $XT_MULTI ip6tables -N c2
3 [[ $XT_MULTI == *xtables-nft-multi ]] || { echo "skip $XT_MULTI"; exit 0; }11 $XT_MULTI $@12 $XT_MULTI iptables -S | grep -q -- '-P FORWARD DROP' && return15 $XT_MULTI iptables -P FORWARD DROP19 $XT_MULTI iptables -P FORWARD DROP
3 [[ $XT_MULTI == *xtables-nft-multi ]] || { echo "skip $XT_MULTI"; exit 0; }15 ) | $XT_MULTI iptables-restore24 ) | $XT_MULTI ip6tables-restore45 ) | $XT_MULTI arptables-restore53 ) | $XT_MULTI ebtables-restore
5 [[ $XT_MULTI == *xtables-nft-multi ]] || { echo "skip $XT_MULTI"; exit 0; }7 $XT_MULTI iptables -A INPUT -p tcp --dport 53 ! -s 192.168.0.1 -j ACCEPT8 $XT_MULTI ip6tables -A INPUT -p tcp --dport 53 ! -s feed:babe::1 -j ACCEPT9 $XT_MULTI ebtables -A INPUT -p IPv4 --ip-src 10.0.0.1 ! -i lo -j ACCEPT
3 [[ $XT_MULTI == *xtables-nft-multi ]] || { echo "skip $XT_MULTI"; exit 0; }4 nft -v >/dev/null || { echo "skip $XT_MULTI (no nft)"; exit 0; }6 coproc $XT_MULTI iptables-restore --noflush16 $XT_MULTI iptables-save | grep -q ':foo'
3 [[ $XT_MULTI == *xtables-nft-multi ]] || { echo "skip $XT_MULTI"; exit 0; }6 $XT_MULTI iptables -t raw -P OUTPUT DROP11 $XT_MULTI iptables-restore --noflush <<EOF26 $XT_MULTI iptables-save | grep -C2 raw | grep OUTPUT | grep DROP
13 $XT_MULTI iptables -t filter -F14 $XT_MULTI iptables -t filter -X77 $XT_MULTI iptables-restore -w < $dumpfile79 $XT_MULTI iptables-save | grep -v '^#' > $dumpfile87 case "$XT_MULTI" in103 $XT_MULTI iptables-restore -w 15 < $dumpfile &111 $XT_MULTI iptables-save | grep -v '^#' > $tmpfile
10 $XT_MULTI iptables -S | grep -v '^-P'15 $XT_MULTI iptables-restore <<EOF33 $XT_MULTI iptables-restore --noflush <<EOF63 $XT_MULTI iptables-restore <<EOF85 $XT_MULTI iptables-restore --noflush <<EOF105 $XT_MULTI iptables-restore <<EOF113 $XT_MULTI iptables-restore --noflush <<EOF
3 $XT_MULTI iptables -w -L -n > /dev/null || exit 14 $XT_MULTI iptables -w2 -L -n > /dev/null || exit 16 echo -n '#foo' | $XT_MULTI iptables-restore -w || exit 110 $XT_MULTI iptables -w2 -t $table -L -n > /dev/null13 $XT_MULTI iptables -w2 -p icmp --help | grep -q 'Valid ICMP Types' || exit 115 cat <<EOF | $XT_MULTI iptables-restore -w -n105 cat <<EOF | $XT_MULTI iptables-restore -w -n181 cat <<EOF | $XT_MULTI iptables-restore -w -n205 cat <<EOF | $XT_MULTI iptables-restore -w -n230 $XT_MULTI iptables-save -t $table | grep -v '^#' >> "$tmpfile"