Re: NETMAP of destination *after* routing

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

 



On 08/07/08 09:55, Charles Duffy wrote:
Perhaps I could also also add a rule setting an appropriate mark in OUTPUT. Not being able to communicate with the hosts from the local system is a showstopper, however, and I'd prefer to avoid munging the routing tables if possible to keep the patch to libvirt implementing this functionality minimal. (Robust infrastructure is already in place for modifying iptables rules for libvirt-managed networks; routing, not so much).

If you did get the rules in the PREROUTING and OUTPUT to work and they were the same, I'd suggest you put them in a common sub-chain and jump to it from both the PREROUTING and OUTPUT chains. This will make maintenance much easier down the road.

Have you considered doing this on layer 2, doing so would allow your systems to have the same IP address. You would in effect be altering the destination MAC address of the ethernet frames. In fact, except for ARPing, you could easily have an unlimited number of hosts with the same address on the same physical network. You will just need to translate IPs to the proper MAC at the time you want to communicate with them.

This will work from a traditional routing point of view. However this does not take in to account that the target systems may see an IP conflict on the network. To resolve this, you may want to put each system on its own micro network and bridge micro networks together as you see fit.



Grant. . . .
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux