IPFW deny ip range

William F. Dudley Jr. wfdudley at gmail.com
Fri Jan 22 22:36:15 UTC 2016


block in quick on bge0 from 123.0.0.0/8 to any

block in quick on bge0 from 123.1.0.0/16 to any

etc.

replace bge0 with whatever interface your traffic is coming in on.

Bill Dudley

On 01/22/2016 04:53 PM, JosC wrote:
> I have this ip range that I would like to block (example ip):
>
> 123.xx.xx.xx
> 123.1.xx.xx
> 123.1.1.xx
>
> Can someone tell me how I can define best in ipfw.rules?
>
> Thanks,
> Jos Chrispijn
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe at freebsd.org"



More information about the freebsd-questions mailing list