Commit 9895c9fc authored by David Johnson's avatar David Johnson

We don't need per-agg route tables for net30* after all.

parent a075e4b1
......@@ -246,15 +246,15 @@ EOF
systemctl start openvpn@$node.service
# XXX: do this in a script on server-side, somehow
i=8
while [ ! -e /sys/class/net/tun-$aggprefix -a $i -gt 0 ]; do
i=`expr $i - 1`
sleep 1
done
echo $aggnum $aggprefix >> /etc/iproute2/rt_tables
ip rule add from $agg_cidr table $aggprefix
ip rule add iif tun-$aggprefix to $agg_cidr table $aggprefix
ip route add $mlan_CIDR dev tun-$aggprefix table $aggprefix
#i=8
#while [ ! -e /sys/class/net/tun-$aggprefix -a $i -gt 0 ]; do
# i=`expr $i - 1`
# sleep 1
#done
#echo $aggnum $aggprefix >> /etc/iproute2/rt_tables
#ip rule add from $agg_cidr table $aggprefix
#ip rule add iif tun-$aggprefix to $agg_cidr table $aggprefix
#ip route add $mlan_CIDR dev tun-$aggprefix table $aggprefix
done
else
echo "VPNTYPE '$VPNTYPE' not yet supported; aborting!"
......
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