From a2ec27fe7e08872914a899d50f4adb7b693a2611 Mon Sep 17 00:00:00 2001 From: maride Date: Thu, 6 Sep 2018 00:08:44 +0200 Subject: Get subnet to be routed through the container via env variables --- chainloader.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'chainloader.sh') diff --git a/chainloader.sh b/chainloader.sh index 8bf5a6f..880fcfe 100644 --- a/chainloader.sh +++ b/chainloader.sh @@ -5,6 +5,7 @@ openvpn --genkey --secret /prod/persist/static.key # Generate client.conf echo "remote $remoteAddress $remotePort" > /tmp/client.conf +echo "route $subnet $subnetMask" >> /tmp/client.conf cat /prod/client.conf >> /tmp/client.conf echo "" >> /tmp/client.conf cat /prod/persist/static.key >> /tmp/client.conf -- cgit 1.4.1