mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-01-03 11:00:49 -05:00
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:
parent
5ba6cbd3d1
commit
965bc4f951
@ -47,7 +47,7 @@ table inet filter {
|
|||||||
policy drop
|
policy drop
|
||||||
|
|
||||||
tcp dport { 22, 80, 443 } goto input-tcp-service
|
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 {
|
chain input-tcp-service {
|
||||||
|
@ -47,7 +47,7 @@ table inet filter {
|
|||||||
policy drop
|
policy drop
|
||||||
|
|
||||||
tcp dport { 22, 80, 443 } goto input-tcp-service
|
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 {
|
chain input-tcp-service {
|
||||||
|
@ -59,7 +59,7 @@ table inet filter {
|
|||||||
policy drop
|
policy drop
|
||||||
|
|
||||||
tcp dport { 22, 25, 80, 443, 465, 993 } goto input-tcp-service
|
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 {
|
chain input-tcp-service {
|
||||||
|
@ -47,7 +47,7 @@ table inet filter {
|
|||||||
policy drop
|
policy drop
|
||||||
|
|
||||||
tcp dport { 22, 80, 443 } goto input-tcp-service
|
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 {
|
chain input-tcp-service {
|
||||||
|
@ -56,7 +56,7 @@ table inet filter {
|
|||||||
policy drop
|
policy drop
|
||||||
|
|
||||||
tcp dport { 22, 80, 443, 7275 } goto input-tcp-service
|
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 {
|
chain input-tcp-service {
|
||||||
|
@ -49,7 +49,7 @@ table inet filter {
|
|||||||
policy drop
|
policy drop
|
||||||
|
|
||||||
tcp dport { 22, 53, 80, 443, 853 } goto input-tcp-service
|
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 {
|
chain input-tcp-service {
|
||||||
|
@ -61,7 +61,7 @@ table inet filter {
|
|||||||
policy drop
|
policy drop
|
||||||
|
|
||||||
tcp dport { 22, 53, 80, 443, 853 } goto input-tcp-service
|
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 {
|
chain input-tcp-service {
|
||||||
|
@ -47,7 +47,7 @@ table inet filter {
|
|||||||
policy drop
|
policy drop
|
||||||
|
|
||||||
tcp dport { 22, 80, 443 } goto input-tcp-service
|
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 {
|
chain input-tcp-service {
|
||||||
|
@ -57,7 +57,7 @@ table inet filter {
|
|||||||
policy drop
|
policy drop
|
||||||
|
|
||||||
tcp dport { 22, 80, 443 } goto input-tcp-service
|
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 {
|
chain input-tcp-service {
|
||||||
|
Loading…
Reference in New Issue
Block a user