UPdate: IPFW deny ip range

Shahin Hasanov shahinhasanov at hotmail.com
Sat Jan 23 06:33:49 UTC 2016


 
From: shahinhasanov at hotmail.com
To: bsduser at cloudzeeland.nl; freebsd-questions at freebsd.org
Subject: RE: IPFW deny ip range
Date: Sat, 23 Jan 2016 10:29:27 +0400




Hi,
you have two options:
1)      Use table: 
             ipfw table 1 add 123.xx.xx.xx
     ipfw table 1 add 123.1.xx.xx
     ipfw table 1 add 123.1.1.xx
     if you want to block in
        ipfw <number of rule> add deny ip from table\(1\) to any in via bce0
        for example:
           ipfw 00050 add deny ip from table\(1\) to any in via bce0
     or out
                      ipfw <number of rule> add deny ip from table\(1\) to any out via bce0
2) listed ip in rule
    ipfw <number of rule> add deny ip from 123.xx.xx.xx,123.1.xx.xx,123.1.1.xx to any in via bce0
 
> To: freebsd-questions at FreeBSD.org
> From: bsduser at cloudzeeland.nl
> Subject: IPFW deny ip range
> Date: Fri, 22 Jan 2016 22:53:57 +0100
> 
> 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