Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jan 2016 10:29:27 +0400
From:      Shahin Hasanov <shahinhasanov@hotmail.com>
To:        JosC <bsduser@cloudzeeland.nl>, FREEBSD_QUESTION <freebsd-questions@freebsd.org>
Subject:   RE: IPFW deny ip range
Message-ID:  <DUB127-W443AD004EA4D9E20AA97F4B6C50@phx.gbl>
In-Reply-To: <56A2A4F5.3030907@cloudzeeland.nl>
References:  <56A2A4F5.3030907@cloudzeeland.nl>

next in thread | previous in thread | raw e-mail | index | archive | help

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,ipfw table 1 add 123.1.1.xx to any in via bce0
 
> To: freebsd-questions@FreeBSD.org
> From: bsduser@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@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
 		 	   		  


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DUB127-W443AD004EA4D9E20AA97F4B6C50>