X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=vpn-server-setup;h=5c6f195edb57c195c94de4523d9f12acc948b03d;hb=d749cadc99d6cb517e68afec90a394fb4ae8d1f0;hp=797594620aa416921054df9076af86959ed7bdba;hpb=1117328662c752e70660fc76f16b045ba15228bd;p=vpn-setup diff --git a/vpn-server-setup b/vpn-server-setup index 7975946..5c6f195 100755 --- a/vpn-server-setup +++ b/vpn-server-setup @@ -39,7 +39,7 @@ debian specific paths. For ipv6, we assume ipv6_addr routes to the server. -You can save all the keys by storing /etc/openvpn/easy-rsa/keys, and +You can save all the keys by storing /etc/openvpn/easy-rsa-NAME/keys, and the script will not generate them if it sees they exist already. For future updates to this script, this is a good place to @@ -77,7 +77,7 @@ read -r ip6 ip6route <<<"$@" source /a/bin/distro-functions/src/package-manager-abstractions -pi-nostart openvpn openssl resolvconf easy-rsa uuid-runtime +pi-nostart openvpn openssl easy-rsa uuid-runtime if [[ -e /lib/systemd/system/openvpn-server@.service ]]; then vpn_service=openvpn-server@$name @@ -261,31 +261,23 @@ sysctl -p /etc/sysctl.conf gw=$(ip route | sed -rn 's/^default via .* dev (\S+).*/\1/p' | head -n1) -cat >/etc/systemd/system/vpnnat.service <$f <>/etc/systemd/system/vpnnat.service <>$f <