mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-11-25 09:13:06 -05:00
nftables: include our own anycast addresses
This commit is contained in:
parent
d2dcec7e02
commit
1883a539d0
2 changed files with 4 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ table inet filter {
|
||||||
define udp-ports = 53
|
define udp-ports = 53
|
||||||
|
|
||||||
define ip-anycast = 185.187.152.9
|
define ip-anycast = 185.187.152.9
|
||||||
define ip6-anycast = 2a05:b0c4:1::8
|
define ip6-anycast = { 2602:f4d9::1, 2a05:b0c4:1::8 }
|
||||||
|
|
||||||
define ip-allowlist-ssh = {
|
define ip-allowlist-ssh = {
|
||||||
{{ssh_ipv4}},
|
{{ssh_ipv4}},
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,8 @@ table inet filter {
|
||||||
define tcp-ports-full = { 22, $tcp-ports }
|
define tcp-ports-full = { 22, $tcp-ports }
|
||||||
define udp-ports = 53
|
define udp-ports = 53
|
||||||
|
|
||||||
define ip-anycast = 198.251.90.93
|
define ip-anycast = { 23.149.124.1, 198.251.90.93 }
|
||||||
|
define ip6-anycast = 2602:f4d9:1::1
|
||||||
|
|
||||||
define ip-allowlist-ssh = {
|
define ip-allowlist-ssh = {
|
||||||
{{ssh_ipv4}},
|
{{ssh_ipv4}},
|
||||||
|
|
@ -90,6 +91,7 @@ table inet filter {
|
||||||
udp dport $udp-ports notrack accept
|
udp dport $udp-ports notrack accept
|
||||||
|
|
||||||
tcp dport 22 ip daddr $ip-anycast drop
|
tcp dport 22 ip daddr $ip-anycast drop
|
||||||
|
tcp dport 22 ip6 daddr $ip6-anycast drop
|
||||||
|
|
||||||
# handle new TCP connections beyond rate limit via synproxy to avoid conntrack table exhaustion
|
# handle new TCP connections beyond rate limit via synproxy to avoid conntrack table exhaustion
|
||||||
tcp dport $tcp-ports-full tcp flags syn limit rate over {{synproxy_threshold}}/second burst {{synproxy_threshold}} packets counter notrack accept
|
tcp dport $tcp-ports-full tcp flags syn limit rate over {{synproxy_threshold}}/second burst {{synproxy_threshold}} packets counter notrack accept
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue