From f673ee83ceaffcc706e5b7583fd34e9fbd0b7878 Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Wed, 4 Jun 2014 09:08:09 -0700 Subject: [PATCH] openvpn.sh: Save servername used during init * Save the DNS domain name or IP address the server was configured with * Useful for generating client configurations --- bin/openvpn.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/openvpn.sh b/bin/openvpn.sh index 979e629..24f81da 100755 --- a/bin/openvpn.sh +++ b/bin/openvpn.sh @@ -52,6 +52,8 @@ do_init() { [ -n "$ptr" ] && cn=$ptr || cn=$ip4 fi + echo "$cn" > $OPENVPN/servername + easyrsa build-server-full $cn nopass [ -f "$OPENVPN/udp1194.conf" ] || cat > "$OPENVPN/udp1194.conf" <