Does anyone have any ideas on how I can mitigate a ton attempted DDoS against my DNS servers? I am getting blasted with ANY requests. We have disabled recursive DNS but the attempts are still pushing around 1 Mbps. Is there any way to rate limit the connections with the pf firewall software?
I have tried something like this in pf but it doesn't seem to help at all.
Attempts:
I have tried something like this in pf but it doesn't seem to help at all.
Code:
table <bruteforce_dns> persist
pass quick on em0 proto { tcp,udp } to port 53 \
keep state (max-src-conn 10, max-src-conn-rate 10/5, \
overload <bruteforce_dns> flush global)
Attempts:
Code:
10:28:02.931789 IP 77.247.183.137.49663 > 192.168.0.2.53: 17953+ [1au] ANY? ietf.org. (37)
10:28:02.931798 IP 85.159.232.241.34529 > 192.168.0.2.53: 30437+ [1au] ANY? ietf.org. (37)
10:28:02.931806 IP 208.64.126.195.46173 > 192.168.0.2.53: 45784+ [1au] ANY? ietf.org. (37)
10:28:02.931849 IP 77.247.183.137.62174 > 192.168.0.2.53: 59751+ [1au] ANY? ietf.org. (37)
10:28:02.940345 IP 208.64.126.195.38861 > 192.168.0.2.53: 44980+ [1au] ANY? ietf.org. (37)
10:28:02.940373 IP 85.159.232.241.12667 > 192.168.0.2.53: 47945+ [1au] ANY? ietf.org. (37)