mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2024-12-22 21:49:22 -05:00
enforce IPv6 DNS connection limit for /64 blocks
This commit is contained in:
parent
d95752bea6
commit
811fcf593e
@ -64,7 +64,7 @@ table inet filter {
|
||||
iif lo tcp dport 22 tcp flags syn ip saddr != $ip-allowlist-ssh add @ip-connlimit-ssh { ip saddr ct count over 1 } reject with tcp reset
|
||||
iif lo tcp dport 22 tcp flags syn ip6 saddr != $ip6-allowlist-ssh add @ip6-connlimit-ssh { ip6 saddr and ffff:ffff:ffff:ffff:ffff:: ct count over 1 } reject with tcp reset
|
||||
iif lo tcp dport { 53, 853 } tcp flags syn add @ip-connlimit-dns { ip saddr ct count over 16 } reject with tcp reset
|
||||
iif lo tcp dport { 53, 853 } tcp flags syn add @ip6-connlimit-dns { ip6 saddr ct count over 16 } reject with tcp reset
|
||||
iif lo tcp dport { 53, 853 } tcp flags syn add @ip6-connlimit-dns { ip6 saddr and ffff:ffff:ffff:ffff:: ct count over 16 } reject with tcp reset
|
||||
|
||||
iif lo accept
|
||||
udp dport 53 accept
|
||||
@ -76,7 +76,7 @@ table inet filter {
|
||||
tcp dport 22 ip6 saddr and ffff:ffff:ffff:ffff:ffff:: @ip6-connlimit-ssh reject with tcp reset
|
||||
tcp dport 22 synproxy mss 1460 wscale 7 timestamp sack-perm
|
||||
tcp dport { 53, 853 } ip saddr @ip-connlimit-dns reject with tcp reset
|
||||
tcp dport { 53, 853 } ip6 saddr @ip6-connlimit-dns reject with tcp reset
|
||||
tcp dport { 53, 853 } ip6 saddr and ffff:ffff:ffff:ffff:: @ip6-connlimit-dns reject with tcp reset
|
||||
tcp dport { 53, 853 } synproxy mss 1460 wscale 7 timestamp sack-perm
|
||||
}
|
||||
|
||||
|
@ -69,7 +69,7 @@ table inet filter {
|
||||
iif lo tcp dport 22 tcp flags syn ip saddr != $ip-allowlist-ssh add @ip-connlimit-ssh { ip saddr ct count over 1 } reject with tcp reset
|
||||
iif lo tcp dport 22 tcp flags syn ip6 saddr != $ip6-allowlist-ssh add @ip6-connlimit-ssh { ip6 saddr and ffff:ffff:ffff:ffff:ffff:: ct count over 1 } reject with tcp reset
|
||||
iif lo tcp dport { 53, 853 } tcp flags syn add @ip-connlimit-dns { ip saddr ct count over 16 } reject with tcp reset
|
||||
iif lo tcp dport { 53, 853 } tcp flags syn add @ip6-connlimit-dns { ip6 saddr ct count over 16 } reject with tcp reset
|
||||
iif lo tcp dport { 53, 853 } tcp flags syn add @ip6-connlimit-dns { ip6 saddr and ffff:ffff:ffff:ffff:: ct count over 16 } reject with tcp reset
|
||||
|
||||
iif lo accept
|
||||
udp dport 53 accept
|
||||
@ -81,7 +81,7 @@ table inet filter {
|
||||
tcp dport 22 ip6 saddr and ffff:ffff:ffff:ffff:ffff:: @ip6-connlimit-ssh reject with tcp reset
|
||||
tcp dport 22 synproxy mss 1460 wscale 7 timestamp sack-perm
|
||||
tcp dport { 53, 853 } ip saddr @ip-connlimit-dns reject with tcp reset
|
||||
tcp dport { 53, 853 } ip6 saddr @ip6-connlimit-dns reject with tcp reset
|
||||
tcp dport { 53, 853 } ip6 saddr and ffff:ffff:ffff:ffff:: @ip6-connlimit-dns reject with tcp reset
|
||||
tcp dport { 53, 853 } synproxy mss 1460 wscale 7 timestamp sack-perm
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user