Commit 3245747c authored by David Johnson's avatar David Johnson

Add routes on fw node to VPN subnets via concentrator.

parent 574a8003
......@@ -81,6 +81,20 @@ if [ -n $aggprefix ] ; then
ip route add via $agg_gw
# The firewall node also needs routes to the VPN networks via the
# concentrator.
if [ $HOSTNAME = "fw" ]; then
for aggprefix in $AGGREGATES ; do
eval "varname=${agglan}_CIDR"
eval "agg_cidr=\$$varname"
ip route add $agg_cidr via $con_conlink_IP
# Mark things as done right here, it's safe.
touch $OURDIR/setup-driver-done
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