Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
David Johnson
powder-vpn
Commits
3245747c
Commit
3245747c
authored
Aug 29, 2018
by
David Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add routes on fw node to VPN subnets via concentrator.
parent
574a8003
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
bin/setup-driver.sh
bin/setup-driver.sh
+14
-0
No files found.
bin/setup-driver.sh
View file @
3245747c
...
...
@@ -81,6 +81,20 @@ if [ -n $aggprefix ] ; then
ip route add 192.168.0.0/16 via
$agg_gw
fi
#
# The firewall node also needs routes to the VPN networks via the
# concentrator.
#
if
[
$HOSTNAME
=
"fw"
]
;
then
for
aggprefix
in
$AGGREGATES
;
do
agglan
=
"
${
aggprefix
}
lan"
eval
"varname=
${
agglan
}
_CIDR"
eval
"agg_cidr=
\$
$varname
"
ip route add
$agg_cidr
via
$con_conlink_IP
done
fi
# Mark things as done right here, it's safe.
touch
$OURDIR
/setup-driver-done
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment