From 68f7e162065e3d277f93d9872cd70f1e1856dd78 Mon Sep 17 00:00:00 2001 From: Alexandre LUCAZEAU Date: Mon, 16 Jan 2023 10:58:29 +0100 Subject: [PATCH] ADD : test VPN conf - don't use --- hosts/dell-5590/nixos/vpn.nix | 9 +++++++++ hosts/dell-5590/nixpkgs/VPN.conf | 18 ++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 hosts/dell-5590/nixos/vpn.nix create mode 100644 hosts/dell-5590/nixpkgs/VPN.conf diff --git a/hosts/dell-5590/nixos/vpn.nix b/hosts/dell-5590/nixos/vpn.nix new file mode 100644 index 0000000..14e694a --- /dev/null +++ b/hosts/dell-5590/nixos/vpn.nix @@ -0,0 +1,9 @@ +{ pkgs, ... }: { + services.openvpn.servers = { + DRI = { config = '' config /home/alexandre/git/nixos-config/hosts/dell-5590/nixpkgs/VPN.conf ''; }; + }; +nixpkgs.config.allowUnfree = true; + virtualisation.virtualbox.host.enable = true; + virtualisation.virtualbox.host.enableExtensionPack = true; + users.extraGroups.vboxusers.members = [ "alexandre" ]; +} diff --git a/hosts/dell-5590/nixpkgs/VPN.conf b/hosts/dell-5590/nixpkgs/VPN.conf new file mode 100644 index 0000000..d1040af --- /dev/null +++ b/hosts/dell-5590/nixpkgs/VPN.conf @@ -0,0 +1,18 @@ +client +remote '185.86.178.201' 1194 udp +pkcs12 '/home/alexandre/09_DRI/Serveur_VPN_pour_le_SI_DRI_alexandre/Serveur_VPN_pour_le_SI_DRI_alexandre.p12' +auth-user-pass +cipher AES-256-GCM +comp-lzo no +dev tun +proto udp +remote-cert-tls server +verify-x509-name 'C=FR, ST=Sarthe, L=Le Mans, O=DRI, emailAddress=support@dri.fr, CN=opn-vpn.si.dri.fr' subject +tls-auth '/home/alexandre/09_DRI/Serveur_VPN_pour_le_SI_DRI_alexandre/./Serveur_VPN_pour_le_SI_DRI_alexandre-tls.key' 1 +nobind +auth-nocache +script-security 2 +persist-key +persist-tun +user nm-openvpn +group nm-openvpn