2014-07-09 7:17 GMT+02:00 Frank Kirschner <fr...@celebrate.de>:
> 192.168.13.254 is the nat_router ip of the LVS. If I would change the
> default gateway of the hardware node,
> I will loose the NAT (port forwarding) of the 192.168.130.254 ISP gateway to
> the other containers inside the hardware node.
>
> What's the routing solution for this?

Policy routing (ip rule) on the real server, keyed on local source
192.168.13.0/24, e.g.
ip route add 192.168.13.0/24 table 1234
ip route add default via 192.168.13.254 table 1234
ip rule add from 192.168.13.0/24 table 1234

If you can make it so, best also separate the LVS traffic in a
different VLAN. You still need that policy routing, but the resulting
setup is simpler to debug and analyze and has some operational
advantages that I won't go into now :)

best regards
  Patrick

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-requ...@linuxvirtualserver.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

Reply via email to