From 9c167802cc9b9a72fb6b3d773e9ce10edcf434c4 Mon Sep 17 00:00:00 2001 From: maride Date: Fri, 24 Aug 2018 18:21:51 +0200 Subject: Fix announced IP space, fix routes, fix client cert generation --- chainloader.sh | 3 ++- client.conf | 3 ++- server.conf | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/chainloader.sh b/chainloader.sh index 98558b2..d9ec139 100644 --- a/chainloader.sh +++ b/chainloader.sh @@ -4,7 +4,8 @@ openvpn --genkey --secret /prod/persist/static.key # Generate client.conf -cat /prod/client.conf > /tmp/client.conf +echo "remote $remoteAddress $remotePort" > /tmp/client.conf +cat /prod/client.conf >> /tmp/client.conf echo "" >> /tmp/client.conf cat /prod/persist/static.key >> /tmp/client.conf echo "" >> /tmp/client.conf diff --git a/client.conf b/client.conf index 7b1d2b4..7c529f5 100644 --- a/client.conf +++ b/client.conf @@ -1,6 +1,7 @@ # Network related dev tun -ifconfig 10.13.37.253 10.13.37.254 +ifconfig 10.13.42.2 10.13.42.1 +route 10.13.37.0/24 # Connection related comp-lzo diff --git a/server.conf b/server.conf index 6d3a0e4..2acb7cd 100644 --- a/server.conf +++ b/server.conf @@ -1,7 +1,7 @@ # Network related dev tun -ifconfig 10.13.37.254 10.13.37.253 -route 10.13.37.0 255.255.255.0 +ifconfig 10.13.42.1 10.13.42.2 +push "route 10.13.37.0 255.255.255.0" # Connection related comp-lzo -- cgit 1.4.1