File: 0007_echo_cache_init_0

package info (click to toggle)
nftables 1.1.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,384 kB
  • sloc: ansic: 50,901; sh: 20,277; yacc: 5,861; python: 1,746; lex: 1,367; makefile: 392
file content (14 lines) | stat: -rwxr-xr-x 313 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

set -e

$NFT -i >/dev/null <<EOF
add table inet t
add chain inet t c
add rule inet t c accept comment "first"
add rule inet t c accept comment "third"
EOF

# make sure the rule cache gets initialized when using echo option
#
$NFT --echo add rule inet t c index 0 accept comment '"second"' >/dev/null