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
af02ccb7
Commit
af02ccb7
authored
Aug 24, 2018
by
David Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hook name is route-pre-down, not route-down.
parent
944afce4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
bin/setup-vpn.sh
bin/setup-vpn.sh
+3
-3
No files found.
bin/setup-vpn.sh
View file @
af02ccb7
...
...
@@ -230,7 +230,7 @@ ns-cert-type server
comp-lzo
verb 3
route-up "/etc/openvpn/
$node
-route-up.sh"
route-
down "/etc/openvpn/
$node
-rout
e-down.sh"
route-
pre-down "/etc/openvpn/
$node
-route-pr
e-down.sh"
EOF
#
# Note that because we have to pack multiple aggregates onto ctlnuc
...
...
@@ -263,7 +263,7 @@ ifconfig br\$VTAG $agg_gw netmask $agg_mask up
ip route add
$agg_cidr
dev br
\$
VTAG table
$aggprefix
EOF
chmod
755 /etc/openvpn/clients/
$node
-route-up
.sh
cat
<<
EOF
> /etc/openvpn/clients/
$node
-route-down.sh
cat
<<
EOF
> /etc/openvpn/clients/
$node
-route-
pre-
down.sh
#!/bin/sh
VNODES=
\`
/usr/local/etc/emulab/tmcc vnodelist | sed -nre 's/^VNODEID=(pcvm[0-9]*-[0-9]*) .*
$/
\1
/p' | xargs
\`
...
...
@@ -283,7 +283,7 @@ ip rule del iif tun-$aggprefix to $agg_cidr table $aggprefix
ip route flush table
$aggprefix
ifconfig br
\$
VTAG 0 up
EOF
chmod
755 /etc/openvpn/clients/
$node
-route-down
.sh
chmod
755 /etc/openvpn/clients/
$node
-route-
pre-
down
.sh
#
# Ok, copy the key/crts/conf files to the agg host
...
...
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