X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=vpn-server-setup;h=69ce5416c47fec3c13dad237930962fd1cfdddaa;hb=469644c652891c70bbddc29ad6da872e83e76cc4;hp=6254f0f7a9fe0825232959245f0786b9f82ba311;hpb=e6ee9ad43e4e1605f27d73555045f1e82ea5bc1c;p=vpn-setup diff --git a/vpn-server-setup b/vpn-server-setup index 6254f0f..69ce541 100755 --- a/vpn-server-setup +++ b/vpn-server-setup @@ -33,6 +33,8 @@ usage: ${0##*/} [OPTIONS] [IPV6_ADDR/BITS] -s Do not start openvpn -h --help print help +IPV6_ADDR/BITS Ipv6 address of the vpn interface. + Sets up a vpn server which pushes gateway route and dns server so all traffic goes through the vpn. requires systemd, and might have some debian specific paths. @@ -77,7 +79,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