Skip to contentSkip to conversation

Ip range

DISCUSSION Philippe Dhont (Sea-ro) 2 participants 2 messages Apr 16, 2003

lore
Share & tools
lore
#0 lore raw

Howdy,

I use an IP range 10.60.10.10 and 10.165.10.10 and 192.168.50.10 With subnet mask 255.255.0.0
But in my firewall script i have to us 10.60.0.0/8
And this shows up (off course) as 10.0.0.0 but if i use 10.60.0.0 i get an error that this is not right.
How can i use the correct range so that i get 10.60.0.0 and 10.165.0.0 and 192.168.0.0 in my iptables ?

Thnx!

	--Tronstr@xsomic--
#1 lore raw
Quoted 10 lines · Philippe Dhont (Sea-ro)

Howdy,

I use an IP range 10.60.10.10 and 10.165.10.10 and 192.168.50.10 With subnet mask 255.255.0.0
But in my firewall script i have to us 10.60.0.0/8
And this shows up (off course) as 10.0.0.0 but if i use 10.60.0.0 i get an error that this is not right.
How can i use the correct range so that i get 10.60.0.0 and 10.165.0.0 and 192.168.0.0 in my iptables ?

Netfilter is fairly simple when it comes to ranges, it follows some rules described in the networking concepts howto
(http://netfilter.org/documentation/HOWTO//networking-concepts-HOWTO.html).

If you wish to use different ranges, then you must tell the netfilter this, otherwise it will, quite correctly, return an error.

In your case, you must split up you 10.x.x.x into several ranges, since you use a strange setup. Why don't you just simply use the full 10.x.x.x range?

/Kim