Editing VEs and HNs in same subnets

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 134: Line 134:
 
Alternatively, just restart the VE from the host.
 
Alternatively, just restart the VE from the host.
  
11.  Verify the host and VE have connectivity to each other as well as to the rest of the network.
+
==Enable bridging through the host firewall==
 +
11.  The host firewall rules control which packets can pass through the bridge interfaces.  Add FORWARD ACCEPT statements to the host iptables and ip6tables for each VE IPv4 and IPv6 address.  You do NOT need to enable any special network forwarding via sysctl.
 +
 
 +
host iptables:
 +
        -A FORWARD -s xxx.xxx.xxx.xxx -j ACCEPT
 +
        -A FORWARD -d xxx.xxx.xxx.xxx -j ACCEPT
 +
 
 +
host ip6tables:
 +
        -A FORWARD -s xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx -j ACCEPT
 +
        -A FORWARD -d xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx -j ACCEPT
 +
 
 +
Then restart both iptables and ip6tables on the host:
 +
 
 +
        service iptables restart
 +
        service ip6tables restart
 +
 
 +
The above rules allow the VE iptables and ip6tables configuration to be fully independent of the host iptables and ip6tables configuration.
 +
 
 +
12.  Verify the host and VE have connectivity to each other as well as to the rest of the network.
  
 
==Additional VEs==
 
==Additional VEs==

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)