From 27f55a7c1cb8b00d66a86de02d9ffbed54d5fcf0 Mon Sep 17 00:00:00 2001 From: Ben Bristow Date: Wed, 7 Mar 2018 01:55:30 +0000 Subject: [PATCH] Allow multiple connections using one certificate Could be confusing to anyone using this script otherwise. Source: https://www.unixtutorial.org/2016/03/multiple-openvpn-clients-sharing-the-same-certificate/ --- openvpn-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index ee420ca..2a067b3 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -267,6 +267,7 @@ auth SHA512 tls-auth ta.key 0 topology subnet server 10.8.0.0 255.255.255.0 +duplicate-cn ifconfig-pool-persist ipp.txt" > /etc/openvpn/server.conf echo 'push "redirect-gateway def1 bypass-dhcp"' >> /etc/openvpn/server.conf # DNS @@ -422,4 +423,4 @@ verb 3" > /etc/openvpn/client-common.txt echo "" echo "Your client configuration is available at" ~/"$CLIENT.ovpn" echo "If you want to add more clients, you simply need to run this script again!" -fi \ No newline at end of file +fi