diff options
author | Adrian Kummerlaender | 2023-12-01 10:29:44 +0100 |
---|---|---|
committer | Adrian Kummerlaender | 2023-12-01 10:29:44 +0100 |
commit | 74a4d31089d4410204a97d87673413ec138de3c9 (patch) | |
tree | 883e4a20b89a735e812dcd51e9fc178dc26ab3f7 /host/software | |
parent | c8ddf91829b9b3104f7b69117034e744951580e0 (diff) | |
download | nixos_system-74a4d31089d4410204a97d87673413ec138de3c9.tar nixos_system-74a4d31089d4410204a97d87673413ec138de3c9.tar.gz nixos_system-74a4d31089d4410204a97d87673413ec138de3c9.tar.bz2 nixos_system-74a4d31089d4410204a97d87673413ec138de3c9.tar.lz nixos_system-74a4d31089d4410204a97d87673413ec138de3c9.tar.xz nixos_system-74a4d31089d4410204a97d87673413ec138de3c9.tar.zst nixos_system-74a4d31089d4410204a97d87673413ec138de3c9.zip |
Update openvpn config
Diffstat (limited to 'host/software')
-rw-r--r-- | host/software/desktop/asset/T-TeleSec_GlobalRoot_Class_2.pem | 23 | ||||
-rw-r--r-- | host/software/desktop/kit.vpn.nix | 24 |
2 files changed, 6 insertions, 41 deletions
diff --git a/host/software/desktop/asset/T-TeleSec_GlobalRoot_Class_2.pem b/host/software/desktop/asset/T-TeleSec_GlobalRoot_Class_2.pem deleted file mode 100644 index 374b050..0000000 --- a/host/software/desktop/asset/T-TeleSec_GlobalRoot_Class_2.pem +++ /dev/null @@ -1,23 +0,0 @@ ------BEGIN CERTIFICATE-----
-MIIDwzCCAqugAwIBAgIBATANBgkqhkiG9w0BAQsFADCBgjELMAkGA1UEBhMCREUx
-KzApBgNVBAoMIlQtU3lzdGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAd
-BgNVBAsMFlQtU3lzdGVtcyBUcnVzdCBDZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNl
-YyBHbG9iYWxSb290IENsYXNzIDIwHhcNMDgxMDAxMTA0MDE0WhcNMzMxMDAxMjM1
-OTU5WjCBgjELMAkGA1UEBhMCREUxKzAp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b/host/software/desktop/kit.vpn.nix index 039733e..9f51a42 100644 --- a/host/software/desktop/kit.vpn.nix +++ b/host/software/desktop/kit.vpn.nix @@ -3,25 +3,13 @@ { services.openvpn.servers = { KIT = { - # adapted from https://www.scc.kit.edu/scc/net/openvpn/os/debian/kit.ovpn - config = '' - client - remote 141.52.8.20 - port 1194 - dev tun - proto udp - auth-user-pass - nobind - comp-lzo no - tls-version-min 1.2 - ca ${./asset/T-TeleSec_GlobalRoot_Class_2.pem} - verify-x509-name "C=DE, ST=Baden-Wuerttemberg, L=Karlsruhe, O=Karlsruhe Institute of Technology, CN=ovpn.scc.kit.edu" subject - cipher AES-256-CBC - auth SHA384 - verb 3 - script-security 2 - ''; autoStart = false; + config = let + path = pkgs.fetchurl { + url = "https://www.scc.kit.edu/scc/net/openvpn/conf/kit-split.ovpn"; + hash = "sha256-j4pCKyU7t1ZmwIGm5kuUgZ26Qiqa1jzoDZcP2x+A9pM="; + }; + in "config ${path}"; }; }; } |