diff options
author | maride <maride@darknebu.la> | 2018-09-06 00:08:44 +0200 |
---|---|---|
committer | maride <maride@darknebu.la> | 2018-09-06 00:08:44 +0200 |
commit | a2ec27fe7e08872914a899d50f4adb7b693a2611 (patch) | |
tree | 8fc1df68fddb856b4af8263311bd9670f39e7eff | |
parent | f79b8e408df9bfa401976f70ed50d0b0034c2510 (diff) |
Get subnet to be routed through the container via env variables
-rw-r--r-- | chainloader.sh | 1 | ||||
-rw-r--r-- | client.conf | 1 | ||||
-rw-r--r-- | server.conf | 1 |
3 files changed, 1 insertions, 2 deletions
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 "<secret>" >> /tmp/client.conf cat /prod/persist/static.key >> /tmp/client.conf diff --git a/client.conf b/client.conf index 77c588c..e42fc7c 100644 --- a/client.conf +++ b/client.conf @@ -1,7 +1,6 @@ # Network related dev tun ifconfig 10.13.42.2 10.13.42.1 -route 10.13.37.0 255.255.255.0 # Connection related comp-lzo diff --git a/server.conf b/server.conf index b7856e5..656ad62 100644 --- a/server.conf +++ b/server.conf @@ -1,7 +1,6 @@ # Network related dev tun ifconfig 10.13.42.1 10.13.42.2 -push "route 10.13.37.0 255.255.255.0" # Connection related comp-lzo |