Blame tests/shell/testcases/chains/0007masquerade_1
|
Packit |
c5a612 |
#!/bin/bash
|
|
Packit |
c5a612 |
|
|
Packit |
c5a612 |
set -e
|
|
Packit |
c5a612 |
|
|
Packit |
c5a612 |
$NFT add table t
|
|
Packit |
c5a612 |
$NFT add chain t c1 {type filter hook output priority 0 \; }
|
|
Packit |
c5a612 |
|
|
Packit |
c5a612 |
# wrong hook output, only postrouting is valid
|
|
Packit |
c5a612 |
$NFT add rule t c1 masquerade 2>/dev/null || exit 0
|
|
Packit |
c5a612 |
echo "E: accepted masquerade in output hook" >&2
|
|
Packit |
c5a612 |
exit 1
|