Skip to content

Commit

Permalink
feat(temp-privatek8s) add automatic routing to the temp-privatek8s ne…
Browse files Browse the repository at this point in the history
…twork

Using the following commands after updating the config.yaml:

mv cert/ccd /tmp/ccd
mkdir cert/ccd
./easyvpn config --commit=false $( echo $(ls -1 /tmp/ccd))

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
  • Loading branch information
dduportal committed Dec 30, 2021
1 parent 193d199 commit 3b1d2a4
Show file tree
Hide file tree
Showing 22 changed files with 44 additions and 25 deletions.
3 changes: 2 additions & 1 deletion cert/ccd/abayer
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ifconfig-push 10.8.0.20 255.255.254.0
ifconfig-push 10.8.0.2 255.255.254.0
push "route 10.0.2.0 255.255.255.0"
push "route 10.240.0.0 255.252.0.0"
3 changes: 2 additions & 1 deletion cert/ccd/aheritier
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ifconfig-push 10.8.0.6 255.255.254.0
ifconfig-push 10.8.0.3 255.255.254.0
push "route 10.0.2.0 255.255.255.0"
push "route 10.240.0.0 255.252.0.0"
5 changes: 2 additions & 3 deletions cert/ccd/danielbeck
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ifconfig-push 10.8.1.3 255.255.254.0
push "route 10.0.1.0 255.255.255.0"
ifconfig-push 10.8.0.4 255.255.254.0
push "route 10.0.2.0 255.255.255.0"
push "route 10.0.99.0 255.255.255.0"
push "route 10.240.0.0 255.252.0.0"
3 changes: 2 additions & 1 deletion cert/ccd/dduportal
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ifconfig-push 10.8.0.16 255.255.254.0
ifconfig-push 10.8.0.5 255.255.254.0
push "route 10.0.2.0 255.255.255.0"
push "route 10.240.0.0 255.252.0.0"
3 changes: 2 additions & 1 deletion cert/ccd/garethjevans
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ifconfig-push 10.8.0.15 255.255.254.0
ifconfig-push 10.8.0.6 255.255.254.0
push "route 10.0.2.0 255.255.255.0"
push "route 10.240.0.0 255.252.0.0"
3 changes: 2 additions & 1 deletion cert/ccd/halkeye
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ifconfig-push 10.8.0.11 255.255.254.0
ifconfig-push 10.8.0.7 255.255.254.0
push "route 10.0.2.0 255.255.255.0"
push "route 10.240.0.0 255.252.0.0"
3 changes: 2 additions & 1 deletion cert/ccd/hlemeur
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ifconfig-push 10.8.0.17 255.255.254.0
ifconfig-push 10.8.0.8 255.255.254.0
push "route 10.0.2.0 255.255.255.0"
push "route 10.240.0.0 255.252.0.0"
3 changes: 2 additions & 1 deletion cert/ccd/jequals5
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ifconfig-push 10.8.0.13 255.255.254.0
ifconfig-push 10.8.0.9 255.255.254.0
push "route 10.0.2.0 255.255.255.0"
push "route 10.240.0.0 255.252.0.0"
3 changes: 2 additions & 1 deletion cert/ccd/jthompson
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ifconfig-push 10.8.0.2 255.255.254.0
ifconfig-push 10.8.0.10 255.255.254.0
push "route 10.0.2.0 255.255.255.0"
push "route 10.240.0.0 255.252.0.0"
3 changes: 2 additions & 1 deletion cert/ccd/jvz
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ifconfig-push 10.8.0.4 255.255.254.0
ifconfig-push 10.8.0.11 255.255.254.0
push "route 10.0.2.0 255.255.255.0"
push "route 10.240.0.0 255.252.0.0"
3 changes: 2 additions & 1 deletion cert/ccd/kevingrdj
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ifconfig-push 10.8.0.19 255.255.254.0
ifconfig-push 10.8.0.12 255.255.254.0
push "route 10.0.2.0 255.255.255.0"
push "route 10.240.0.0 255.252.0.0"
3 changes: 2 additions & 1 deletion cert/ccd/markewaite
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ifconfig-push 10.8.0.12 255.255.254.0
ifconfig-push 10.8.0.13 255.255.254.0
push "route 10.0.2.0 255.255.255.0"
push "route 10.240.0.0 255.252.0.0"
3 changes: 2 additions & 1 deletion cert/ccd/mpapo
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ifconfig-push 10.8.0.8 255.255.254.0
ifconfig-push 10.8.0.14 255.255.254.0
push "route 10.0.2.0 255.255.255.0"
push "route 10.240.0.0 255.252.0.0"
5 changes: 2 additions & 3 deletions cert/ccd/olblak
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ifconfig-push 10.8.1.2 255.255.254.0
push "route 10.0.1.0 255.255.255.0"
ifconfig-push 10.8.0.15 255.255.254.0
push "route 10.0.2.0 255.255.255.0"
push "route 10.0.99.0 255.255.255.0"
push "route 10.240.0.0 255.252.0.0"
3 changes: 2 additions & 1 deletion cert/ccd/oleg_nenashev
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ifconfig-push 10.8.0.9 255.255.254.0
ifconfig-push 10.8.0.16 255.255.254.0
push "route 10.0.2.0 255.255.255.0"
push "route 10.240.0.0 255.252.0.0"
3 changes: 2 additions & 1 deletion cert/ccd/olivergondza
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ifconfig-push 10.8.0.7 255.255.254.0
ifconfig-push 10.8.0.17 255.255.254.0
push "route 10.0.2.0 255.255.255.0"
push "route 10.240.0.0 255.252.0.0"
3 changes: 2 additions & 1 deletion cert/ccd/slide_o_mix
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ifconfig-push 10.8.0.5 255.255.254.0
ifconfig-push 10.8.0.18 255.255.254.0
push "route 10.0.2.0 255.255.255.0"
push "route 10.240.0.0 255.252.0.0"
3 changes: 2 additions & 1 deletion cert/ccd/smerle
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ifconfig-push 10.8.0.18 255.255.254.0
ifconfig-push 10.8.0.19 255.255.254.0
push "route 10.0.2.0 255.255.255.0"
push "route 10.240.0.0 255.252.0.0"
3 changes: 2 additions & 1 deletion cert/ccd/timja
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ifconfig-push 10.8.0.10 255.255.254.0
ifconfig-push 10.8.0.20 255.255.254.0
push "route 10.0.2.0 255.255.255.0"
push "route 10.240.0.0 255.252.0.0"
3 changes: 2 additions & 1 deletion cert/ccd/vsilverman
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ifconfig-push 10.8.0.14 255.255.254.0
ifconfig-push 10.8.0.21 255.255.254.0
push "route 10.0.2.0 255.255.255.0"
push "route 10.240.0.0 255.252.0.0"
3 changes: 2 additions & 1 deletion cert/ccd/wfollonier
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ifconfig-push 10.8.0.3 255.255.254.0
ifconfig-push 10.8.0.22 255.255.254.0
push "route 10.0.2.0 255.255.255.0"
push "route 10.240.0.0 255.252.0.0"
2 changes: 2 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ networks:
netmask: 255.255.254.0
routes:
- 10.0.2.0/24
- 10.240.0.0/14
- name: admin
iprange: 10.8.1.1/24
netmask: 255.255.254.0
routes:
- 10.0.1.0/24
- 10.0.2.0/24
- 10.0.99.0/24
- 10.240.0.0/14

0 comments on commit 3b1d2a4

Please sign in to comment.