Displaying 1 result from an estimated 1 matches for "nftables_hash".
2020 Jan 30
2
[Bug 1402] New: Race errors with nft
...rward priority 0; policy
drop;}
add chain inet my-filter INPUT {type filter hook input priority 0; policy
drop;}
add rule inet my-filter INPUT ip protocol icmp accept
add rule inet my-filter INPUT ip saddr @ALLOW_SSH_NET accept
add rule inet my-filter INPUT ct state related,established accept
```
nftables_hash.sh:
```
#!/usr/bin/env bash
output=$(nft list ruleset 2>&1 | grep -v counter)
md5=$(md5sum <<< $output | cut -f 1 -d ' ')
$(cat <<< "$output" > "hash_${md5}.out")
echo $(date) "$md5"
```
Test commands
-------------
screen -S R1 ba...