Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Iptables and multipal ip addrs

0 views
Skip to first unread message

Jeppe Sorensen

unread,
Mar 23, 2002, 3:48:09 PM3/23/02
to
I have tryed to get iptables to understand multipal ip addrs

I have tryed

-s 192.168.1.1-192.168.1.20
-s 192.168.1.1,192.168.1.20
-s 192.168.1.1:192.168.1.20


but I get the same error everytime
"iptables v1.2.3: host/network '192.168.1.1-192.168.1.20' not found

what am I doing wrong?


Jeppe

MM

unread,
Mar 23, 2002, 4:05:41 PM3/23/02
to
Jeppe Sorensen wrote:

To my knowledge, you can't specify ip address ranges like that. You
have to do it in terms of netmasks eg

192.168.1.1/32 equates to 192.168.1.1 only
192.168.1.0/31 equates to 192.168.1.0-192.168.1.1
192.168.1.0/30 equates to 192.168.1.0-192.168.1.3

etc

The range you need would be covered by 192.168.1.0/27, but this would
also include the range 192.168.1.21-192.168.1.31 .


MM


Jeppe Sorensen

unread,
Mar 23, 2002, 4:30:47 PM3/23/02
to
Ok
Thanks

My problem is that I have to get 192.168.1-10 to go out of the inet by eth0
and 192.168.1.11-30 to go out of the inet by eth0:0

eth0 and eth0:0 are getting their IP from a DHCP-server

I know that I have to route them but I don't know how. I have read a lot
of how to use iproute but I can't get it installed (get some errors) To
get iproute installed I have to upgrad almost the entire system (Using RH
6.2 with kernel 2.4.18)

The only thing I have to get route to eth0:0 from the 192.168.1.11-30 is
the IRC-packets. Is their an easy way to do this without upgrading the
entire system?


Jeppe

0 new messages