Best way to block a long list of IPs?

Phil Regnauld regnauld at catpipe.net
Tue Jun 20 20:57:33 UTC 2006


Brett Glass (brett) writes:
> 
> I've got an application in which I must block incoming TCP 
> connections to a FreeBSD server from a potentially large list of IP 
> addresses. Using IPFW is not a very efficient way to accomplish 
> this, because it must do a linear search of a list (either one 
> address per rule or an "or" list in a rule) and this could slow 
> down every packet entering the machine dramatically.

	pf tables are VERY efficient -- man pf.conf



More information about the freebsd-net mailing list