Blocking Access From or to Specific Countries Using FreeBSD and pf
Learn how to block access from specific countries on your FreeBSD server using pf and ipdbtools to enhance security and manage traffic efficiently.
https://it-notes.dragas.net/2024/06/16/freebsd-blocking-country-access/
@stefano as always, very nice!!!
Thinking of it (using my phone, so this is just a thought), this could also be useful for only allowing access from a specified country by adding a negation. For example "block drop quick from ! <Allowed_countries>"