nftables: add invalid case to ct state vmap

This might as well be dropped by the verdict map instead of falling
through to the default drop policy.
This commit is contained in:
Daniel Micay 2024-04-23 02:14:07 -04:00
parent 5ba6cbd3d1
commit 965bc4f951
9 changed files with 9 additions and 9 deletions

View File

@ -47,7 +47,7 @@ table inet filter {
policy drop
tcp dport { 22, 80, 443 } goto input-tcp-service
ct state vmap { established : accept, related : accept, new : drop, untracked: accept }
ct state vmap { invalid : drop, established : accept, related : accept, new : drop, untracked: accept }
}
chain input-tcp-service {

View File

@ -47,7 +47,7 @@ table inet filter {
policy drop
tcp dport { 22, 80, 443 } goto input-tcp-service
ct state vmap { established : accept, related : accept, new : drop, untracked: accept }
ct state vmap { invalid : drop, established : accept, related : accept, new : drop, untracked: accept }
}
chain input-tcp-service {

View File

@ -59,7 +59,7 @@ table inet filter {
policy drop
tcp dport { 22, 25, 80, 443, 465, 993 } goto input-tcp-service
ct state vmap { established : accept, related : accept, new : drop, untracked: accept }
ct state vmap { invalid : drop, established : accept, related : accept, new : drop, untracked: accept }
}
chain input-tcp-service {

View File

@ -47,7 +47,7 @@ table inet filter {
policy drop
tcp dport { 22, 80, 443 } goto input-tcp-service
ct state vmap { established : accept, related : accept, new : drop, untracked: accept }
ct state vmap { invalid : drop, established : accept, related : accept, new : drop, untracked: accept }
}
chain input-tcp-service {

View File

@ -56,7 +56,7 @@ table inet filter {
policy drop
tcp dport { 22, 80, 443, 7275 } goto input-tcp-service
ct state vmap { established : accept, related : accept, new : drop, untracked: accept }
ct state vmap { invalid : drop, established : accept, related : accept, new : drop, untracked: accept }
}
chain input-tcp-service {

View File

@ -49,7 +49,7 @@ table inet filter {
policy drop
tcp dport { 22, 53, 80, 443, 853 } goto input-tcp-service
ct state vmap { established : accept, related : accept, new : drop, untracked: accept }
ct state vmap { invalid : drop, established : accept, related : accept, new : drop, untracked: accept }
}
chain input-tcp-service {

View File

@ -61,7 +61,7 @@ table inet filter {
policy drop
tcp dport { 22, 53, 80, 443, 853 } goto input-tcp-service
ct state vmap { established : accept, related : accept, new : drop, untracked: accept }
ct state vmap { invalid : drop, established : accept, related : accept, new : drop, untracked: accept }
}
chain input-tcp-service {

View File

@ -47,7 +47,7 @@ table inet filter {
policy drop
tcp dport { 22, 80, 443 } goto input-tcp-service
ct state vmap { established : accept, related : accept, new : drop, untracked: accept }
ct state vmap { invalid : drop, established : accept, related : accept, new : drop, untracked: accept }
}
chain input-tcp-service {

View File

@ -57,7 +57,7 @@ table inet filter {
policy drop
tcp dport { 22, 80, 443 } goto input-tcp-service
ct state vmap { established : accept, related : accept, new : drop, untracked: accept }
ct state vmap { invalid : drop, established : accept, related : accept, new : drop, untracked: accept }
}
chain input-tcp-service {