Email or username:

Password:

Forgot your password?
Stefano Marinelli

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.

it-notes.dragas.net/2024/06/16

#FreeBSD #pf #GeoIP #IT #SysAdmin #NoteHUB

2 comments
Juan Camós

@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>"

Stefano Marinelli

@jcamos Sure, you can do it. Maybe I could modify the article to clarify this - thank you!

Go Up