ADD : test VPN conf - don't use

This commit is contained in:
Alexandre LUCAZEAU 2023-01-16 10:58:29 +01:00
parent ecd84bfb99
commit 68f7e16206
No known key found for this signature in database
GPG Key ID: 3C8ADB07A8217BD3
2 changed files with 27 additions and 0 deletions

View File

@ -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" ];
}

View File

@ -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