blob: 0def0ac58e7bee2e49adc7f9174d1b013495f9a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/sh
#
# Missing BROUTING-awareness in ebt_get_current_chain() caused an odd caching bug when restoring:
# - with --noflush
# - a second table after the broute one
# - A policy command but no chain line for BROUTING chain
set -e
case "$XT_MULTI" in
*xtables-nft-multi)
;;
*)
echo "skip $XT_MULTI"
exit 0
;;
esac
$XT_MULTI ebtables-restore --noflush <<EOF
*broute
-P BROUTING ACCEPT
*nat
-P PREROUTING ACCEPT
COMMIT
EOF
|