mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-01-03 11:00:49 -05:00
nftables: filter input service traffic by dst addr
This commit is contained in:
parent
fdf21af1ae
commit
ad6e998ec2
@ -24,7 +24,8 @@ table inet filter {
|
|||||||
policy drop
|
policy drop
|
||||||
|
|
||||||
iif lo accept
|
iif lo accept
|
||||||
tcp dport {22, 80, 443} accept
|
tcp dport {22, 80, 443} ip daddr {{ipv4_address}} accept
|
||||||
|
tcp dport {22, 80, 443} ip6 daddr {{ipv6_address}} accept
|
||||||
meta l4proto {icmp, ipv6-icmp} accept
|
meta l4proto {icmp, ipv6-icmp} accept
|
||||||
|
|
||||||
ct state vmap { invalid : drop, established : accept, related : accept }
|
ct state vmap { invalid : drop, established : accept, related : accept }
|
||||||
|
@ -24,7 +24,8 @@ table inet filter {
|
|||||||
policy drop
|
policy drop
|
||||||
|
|
||||||
iif lo accept
|
iif lo accept
|
||||||
tcp dport {22, 80, 443} accept
|
tcp dport {22, 80, 443} ip daddr {{ipv4_address}} accept
|
||||||
|
tcp dport {22, 80, 443} ip6 daddr {{ipv6_address}} accept
|
||||||
meta l4proto {icmp, ipv6-icmp} accept
|
meta l4proto {icmp, ipv6-icmp} accept
|
||||||
|
|
||||||
ct state vmap { invalid : drop, established : accept, related : accept }
|
ct state vmap { invalid : drop, established : accept, related : accept }
|
||||||
|
@ -26,8 +26,10 @@ table inet filter {
|
|||||||
policy drop
|
policy drop
|
||||||
|
|
||||||
iif lo accept
|
iif lo accept
|
||||||
udp dport 53 accept
|
udp dport 53 ip daddr {{ipv4_address}} accept
|
||||||
tcp dport {22, 53} accept
|
udp dport 53 ip6 daddr {{ipv6_address}} accept
|
||||||
|
tcp dport {22, 53} ip daddr {{ipv4_address}} accept
|
||||||
|
tcp dport {22, 53} ip6 daddr {{ipv6_address}} accept
|
||||||
meta l4proto {icmp, ipv6-icmp} accept
|
meta l4proto {icmp, ipv6-icmp} accept
|
||||||
|
|
||||||
ct state vmap { invalid : drop, established : accept, related : accept }
|
ct state vmap { invalid : drop, established : accept, related : accept }
|
||||||
|
@ -24,7 +24,8 @@ table inet filter {
|
|||||||
policy drop
|
policy drop
|
||||||
|
|
||||||
iif lo accept
|
iif lo accept
|
||||||
tcp dport {22, 25, 80, 465, 993} accept
|
tcp dport {22, 25, 80, 465, 993} ip daddr {{ipv4_address}} accept
|
||||||
|
tcp dport {22, 25, 80, 465, 993} ip6 daddr {{ipv6_address}} accept
|
||||||
meta l4proto {icmp, ipv6-icmp} accept
|
meta l4proto {icmp, ipv6-icmp} accept
|
||||||
|
|
||||||
ct state vmap { invalid : drop, established : accept, related : accept }
|
ct state vmap { invalid : drop, established : accept, related : accept }
|
||||||
|
@ -24,7 +24,8 @@ table inet filter {
|
|||||||
policy drop
|
policy drop
|
||||||
|
|
||||||
iif lo accept
|
iif lo accept
|
||||||
tcp dport {22, 80, 443} accept
|
tcp dport {22, 80, 443} ip daddr {{ipv4_address}} accept
|
||||||
|
tcp dport {22, 80, 443} ip6 daddr {{ipv6_address}} accept
|
||||||
meta l4proto {icmp, ipv6-icmp} accept
|
meta l4proto {icmp, ipv6-icmp} accept
|
||||||
|
|
||||||
ct state vmap { invalid : drop, established : accept, related : accept }
|
ct state vmap { invalid : drop, established : accept, related : accept }
|
||||||
|
@ -24,7 +24,8 @@ table inet filter {
|
|||||||
policy drop
|
policy drop
|
||||||
|
|
||||||
iif lo accept
|
iif lo accept
|
||||||
tcp dport {22, 80, 443} accept
|
tcp dport {22, 80, 443} ip daddr {{ipv4_address}} accept
|
||||||
|
tcp dport {22, 80, 443} ip6 daddr {{ipv6_address}} accept
|
||||||
meta l4proto {icmp, ipv6-icmp} accept
|
meta l4proto {icmp, ipv6-icmp} accept
|
||||||
|
|
||||||
ct state vmap { invalid : drop, established : accept, related : accept }
|
ct state vmap { invalid : drop, established : accept, related : accept }
|
||||||
|
Loading…
Reference in New Issue
Block a user