OpenVZ Forum


Home » General » Support » routing tables with openvz container
routing tables with openvz container [message #37656] Tue, 06 October 2009 21:46 Go to previous message
Wittiko is currently offline  Wittiko
Messages: 2
Registered: October 2009
Location: Wien
Junior Member
i have two interfaces for some containers one for internal network and one for external network

my problem is that the extern interface gateway is the modem of my isp and the internal is my firewall/routing server

so i need two routing tables

i tried this with two routing tables

the problem was that every change in a container was applied to all containers

for example:

i did is this way:

echo "1 wan" >> /etc/iproute2/rt_tables
ip route add [WAN-NETWORK] dev eth0 src [WAN-IP] table wan
ip route add default via [WAN-GW] dev eth0 table wan
ip rule add from [WAN-IP]/32 table wan
ip rule add to [WAN-IP]/32 table wan

any solutions for this problem?
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Why umount script runs on VE start?
Next Topic: change memory ram for VE
Goto Forum:
  


Current Time: Sat Oct 04 22:50:36 GMT 2025

Total time taken to generate the page: 0.13359 seconds