Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
powder-vpn
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
David Johnson
powder-vpn
Commits
980ddf05
Commit
980ddf05
authored
Aug 31, 2018
by
David Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Setup /etc/iproute2/rt_tables properly on server side for net30mp case.
parent
0b51ea75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
bin/setup-vpn.sh
bin/setup-vpn.sh
+3
-1
No files found.
bin/setup-vpn.sh
View file @
980ddf05
...
...
@@ -193,6 +193,7 @@ EOF
systemctl
enable
openvpn@server.service
systemctl start openvpn@server.service
elif
[
$VPNTYPE
=
$TOPO_NET30MP
]
;
then
mkdir
-p
/etc/iproute2
# For each aggregate, add a separate server config file.
for
aggprefix
in
$AGGREGATES
;
do
agglan
=
"
${
aggprefix
}
lan"
...
...
@@ -250,9 +251,10 @@ EOF
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
$agg
num
ip route add
$mlan_CIDR
dev tun-
$aggprefix
table
$agg
prefix
done
else
echo
"VPNTYPE '
$VPNTYPE
' not yet supported; aborting!"
...
...
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