Block all input packets destinate to blackhole set by default.

This commit is contained in:
Jeremy Gardais 2017-08-08 14:37:54 +02:00
parent 043bc55dcb
commit 84fd89f6e6
2 changed files with 5 additions and 0 deletions

View File

@ -69,6 +69,8 @@ nft_input_default_rules:
- type filter hook input priority 0; policy drop;
005 global:
- jump global
010 drop unwanted:
- ip daddr @blackhole counter drop
nft_input_group_rules: {}
nft_input_host_rules: {}
@ -130,6 +132,7 @@ table inet firewall {
chain input {
type filter hook input priority 0; policy drop;
jump global
ip daddr @blackhole counter packets 3 bytes 204 drop
}
chain output {

View File

@ -27,6 +27,8 @@ nft_input_default_rules:
- type filter hook input priority 0; policy drop;
005 global:
- jump global
010 drop unwanted:
- ip daddr @blackhole counter drop
nft_input_group_rules: {}
nft_input_host_rules: {}