dot

packages and services management
Log | Files | Refs | README

commit d0b73a82faab6c0268e48fb42687e5292e4adf83
parent 87af4250d509b1a13e1c81ff29707761dbaab0e0
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sun,  7 Oct 2018 11:54:05 +0200

update curvevpn startup file with help of sibling documentation

Diffstat:
Ms6/curvevpn-server/data/data | 18+++++++++++++-----
As6/curvevpn-server/env/ROOT | 1+
Ms6/curvevpn-server/run | 7++++++-
3 files changed, 20 insertions(+), 6 deletions(-)

diff --git a/s6/curvevpn-server/data/data b/s6/curvevpn-server/data/data @@ -1,5 +1,13 @@ -# user IP configuration for -i::172.16.85.3:172.16.85.4 - -# global routes -r::192.168.0.0:255.255.0.0 +# -- EXAMPLE ------------------------------------------------------------------------------------------------------------------ +# #defaut routes +# r::192.168.0.0:255.255.0.0 +# r::10.2.0.0:255.255.0.0 +# r::172.16.85.0:255.255.255.0 +# +# #IP address for the first user with public key 84fb6a942b1bcddff2cfd231d012d5d586b710ff180b6841da721eea5ee4004e +# i:84fb6a942b1bcddff2cfd231d012d5d586b710ff180b6841da721eea5ee4004e:172.16.85.3:172.16.85.4 +# +# #IP address for the second user with public key 68585b65041498f7b9f300ef890169cbc4b55927e9d15f9b3651109f338bf35e + extra route +# i:68585b65041498f7b9f300ef890169cbc4b55927e9d15f9b3651109f338bf35e:172.16.85.5:172.16.85.6 +# r:68585b65041498f7b9f300ef890169cbc4b55927e9d15f9b3651109f338bf35e:10.0.0.0:255.255.0.0 +# -- EXAMPLE ------------------------------------------------------------------------------------------------------------------ diff --git a/s6/curvevpn-server/env/ROOT b/s6/curvevpn-server/env/ROOT @@ -0,0 +1 @@ +data diff --git a/s6/curvevpn-server/run b/s6/curvevpn-server/run @@ -6,7 +6,12 @@ multisubstitute { importas NAME NAME importas IP IP importas PORT PORT + importas ROOT ROOT importas EXT EXT } -curvevpn-server $NAME data/key $IP $PORT $EXT curvevpn +cd $ROOT +if { rm -f lock/???????????????????????????????????????????????????????????????? } +curvevpn-server $NAME data/key $IP $PORT $EXT +curvevpn-message +curvevpn -s ................................................................