Security Basics mailing list archives

Re: Iptables and multiple ip ranges


From: Devdas Bhagat <devdas () dvb homelinux org>
Date: Wed, 18 Dec 2002 02:48:39 +0530

On 17/12/02 11:38 +0100, Ignacio Bernal wrote:
I'm trying to configure a linux firewall using iptables, to use non uniform
ip ranges like :

192.168.0.27-192.168.0.63

... that could not be defined using the ip/mask syntax. I wonder to know if
that can be done, and how.
Use multiple rules.
192.168.0.27-192.168.0.63 = 192.168.0.32/27 + 192.168.0.28/30
+ 192.168.0.27/24

HTH

Devdas Bhagat


Current thread: