Do you know the TCP stack? (127.x.x.x routing)
Subsystems (2)
Quoted 4 lines
The question, though, is: *How* do you configure the nodes within the chassis such that the internal IPs (whatever they are) _stay_ internal, and any non-127/8 addressing can be used for the external interfaces?
Quoted 9 lines
I've done something similar, for example, using policy routing and the arp sysctls. Suppose you have a machine with 2 interfaces, and you want IP routing to happen on each of the two interfaces as independently as possible. My solution involves using the "iif" modifier in your routing rules ("ip rule" rules) to send packets to two completely different routing tables, and making sure arp doesn't bleed across the two interfaces. I don't know whether policy routing gives enough control to do this in a general fashion; i did it only for very specific types of traffic. But I suspect you could come up with something workable.
you can do that but you omit the interface addresses - suppose ext net is 10.20.10.1/24, internal is 10.10.10.1/24, no matter what routing policies and rules you put, both interface ips will be visible from both interfaces. now imagine you have another external net 10.30.10.1/24 and customer wants to route e.g. 10.10.0.0/16 from 10.20.10.1/24 via 10.30.10.5... at least host 10.10.10.1 will not route but arrive locally to your blade host
btw. i have seen recently on iptables' patch-o-matic some module that could by condition route traffic to local addresses to another host. anyway the whole thing is doable with any kind of addresses but just imagine what nightmare startup ruleset you will have on each box; then modify your custom rules to conform that hell ruleset and... imho it will be much more easy to create a custom transport over ethernet (in case your ext network could share addresses form that protocol also) and forget about ipv4 for internal implementation. thus you'd have at least better security between worlds ;-)
b.
Quoted 4 lines · Boian Bonev
you can do that but you omit the interface addresses - suppose ext net is 10.20.10.1/24, internal is 10.10.10.1/24, no matter what routing policies and rules you put, both interface ips will be visible from both interfaces.
What do you mean by "visible"? If you're referring to arp, the arp sysctls are probably adequate, and there's arpfilter if not.
Quoted 4 lines
now imagine you have another external net 10.30.10.1/24 and customer wants to route e.g. 10.10.0.0/16 from 10.20.10.1/24 via 10.30.10.5... at least host 10.10.10.1 will not route but arrive locally to your blade host
Not if you take 10.10.10.1 out of the "local" routing table, and policy route that traffic only through tables that don't consider 10.10.10.1 local. I'm not saying it's trivial, but if you set your rules up right, you can make some packets be routed by *completely different routing tables* than others.
Jason