blob: b728310fe1bd4a612f7e523a2215d7c995ec6e14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/bash
# tests for Netfilter bug #965 and the related fix
# (regarding rule management with a given position/handle spec)
set -e
$NFT add table t
$NFT add chain t c
# position keyword with replace action is not allowed, this should fail
$NFT replace rule t c position 2 drop 2>/dev/null || exit 0
echo "E: allowed replace with position specification" >&2
exit 1
|