Re: iptables and Class B IP ranges
From: admin (holmesturner@qwest.net)Date: 03/27/02
- Previous message: dwij: "Re: linux password"
- In reply to: Lup: "iptables and Class B IP ranges"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: admin <holmesturner@qwest.net> Date: Wed, 27 Mar 2002 11:08:21 -0800
On Wed, 27 Mar 2002 03:05:32 GMT, Lup <lupine925@yahoo.com> wrote:
>This might have already been answered somewhere, but I have been looking
>and can't seem to find an answer to this simple question. How do you
>specify a Class B ip range for iptables? In other words:
>-A INPUT -i eth0 -s 150.202.x.x -j ACCEPT
>obviously it is not this:
>-A INPUT -i eth0 -s 150.202.0/24.0/24 -j ACCEPT, so what is it?
>
>tia,
>Lup
Lup,
Use:
-A INPUT -i eth0 -s 150.202.0.0/16 -j ACCEPT
Also see http://www.telusplanet.net/public/sparkman/netcalc.htm
for your future ip calculating needs,
Cheers
mike
- Next message: Nico Kadel-Garcia: "Re: linux box compromised: advice needed"
- Previous message: dwij: "Re: linux password"
- In reply to: Lup: "iptables and Class B IP ranges"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]