blob: dba70e145a57d382eb05c9c08d75f3d1fd686902 (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/bash
set -e
$NFT add table t
$NFT add chain t c
# kernel should return ELOOP
$NFT add rule t c tcp dport vmap {1 : jump c} 2>/dev/null
echo "E: accepted endless jump loop in a vmap" >&2
|