Commit 234e6df7 authored by David Johnson's avatar David Johnson

Bugfix; this bit must be run on the client to find the client-side peer.

parent 9895c9fc
......@@ -361,7 +361,7 @@ ip rule add from $agg_cidr table $aggprefix
ip rule add iif tun-$aggprefix to $agg_cidr table $aggprefix
server=$VPN_SERVER
if [ ! \$TOPO = "$TOPO_SUBNET" ]; then
server=`ip -br addr show tun-$aggprefix | sed -nre "s/^tun-$aggprefix[ \t]+.*peer ([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*)\/.*$/\1/p"`
server=\`ip -br addr show tun-$aggprefix | sed -nre "s/^tun-$aggprefix[ \t]+.*peer ([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*).*$/\1/p"\`
fi
ip route add $mlan_CIDR via \$server dev tun-$aggprefix table $aggprefix
ip route add 192.168.0.0/16 via \$server dev tun-$aggprefix table $aggprefix
......
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