Commit fcec0b6f authored by Leigh B Stoller's avatar Leigh B Stoller

Make sure forwarding is turned on for newly created gre devices.

Without it, ip route fails to find the route.
parent 3faf7d2b
......@@ -1905,6 +1905,12 @@ sub vz_vnodePreConfigExpNetwork {
return -1;
# Must do this else routing lookup fails.
mysystem2("echo 1 > /proc/sys/net/ipv4/conf/$gre/forwarding");
if ($?) {
return -1;
$key2gre{$grekey} = $gre;
# Record gre creation.
$private->{'tunnels'}->{$gre} = $gre;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment