summaryrefslogtreecommitdiffstats
path: root/iptables/tests/shell/testcases/iptables/0005-delete-rules_0
blob: 5038cbce5a5cf22e316b12289405e09eb60ac594 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

# test for crash when comparing rules with standard target

$XT_MULTI iptables -A FORWARD -i eth23 -o eth42 -j DROP
$XT_MULTI iptables -D FORWARD -i eth23 -o eth42 -j REJECT
[[ $? -eq 1 ]] || exit 1

# test incorrect deletion of rules with deviating payload
# in non-standard target

$XT_MULTI iptables -A FORWARD -i eth23 -o eth42 -j MARK --set-mark 23
$XT_MULTI iptables -D FORWARD -i eth23 -o eth42 -j MARK --set-mark 42
[[ $? -eq 1 ]] || exit 1