Routes with ranges of destinations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there,
How is it possible to use a range of IPs in the destination of a route?
Let's say the range is the interval from ip 192.168.1.45 to 192.168.1.45 + 688.
I see that in net/ code it's is not supported.

Is it necessary to patch the net/ code or there's an alternative way with the
same performance to do this?

Maybe I can use netfilter to wrap, in some way, the ENETUNREACH code from user
space, then check if the dst ip is present in the allowed ranges I have. If it
is, I spawn a temporary route for that ip, if it is not the wrapper returns
ENETUNREACH.
But this is only an ugly hack.

And no, I can't use multicast.

Is there any solution?

Thanks & Cya ^_^/
-- 
:wq!
"I don't know nothing" The One Who reached the Thinking Matter   '.'

[ Alpt --- Freaknet Medialab ]
[ GPG Key ID 441CF0EE ]
[ Key fingerprint = 8B02 26E8 831A 7BB9 81A9  5277 BFF8 037E 441C F0EE ]
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux