mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
added tu vpn
This commit is contained in:
parent
1a57beaf6c
commit
dcf91b8d59
3 changed files with 46 additions and 25 deletions
|
@ -1,29 +1,45 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
networking.wireless.networks = {
|
||||
eduroam ={
|
||||
auth = ''
|
||||
eap=PEAP
|
||||
anonymous_identity="anonymous@tu-dresden.de"
|
||||
ca_cert="/etc/ssl/certs/ca-certificates.crt"
|
||||
domain_suffix_match="radius-eduroam.zih.tu-dresden.de"
|
||||
identity="rose159e@tu-dresden.de"
|
||||
password="@EDUROAM_AUTH@"
|
||||
phase2="auth=mschapv2"
|
||||
'';
|
||||
authProtocols = [ "WPA-EAP" ];
|
||||
sops.secrets."uni/zih" = {};
|
||||
networking = {
|
||||
wireless.networks = {
|
||||
eduroam ={
|
||||
auth = ''
|
||||
eap=PEAP
|
||||
anonymous_identity="anonymous@tu-dresden.de"
|
||||
ca_cert="/etc/ssl/certs/ca-certificates.crt"
|
||||
domain_suffix_match="radius-eduroam.zih.tu-dresden.de"
|
||||
identity="rose159e@tu-dresden.de"
|
||||
password="@EDUROAM_AUTH@"
|
||||
phase2="auth=mschapv2"
|
||||
'';
|
||||
authProtocols = [ "WPA-EAP" ];
|
||||
};
|
||||
agdsn ={
|
||||
auth = ''
|
||||
eap=TTLS
|
||||
anonymous_identity="anonymous@agdsn.de"
|
||||
ca_cert="/etc/ssl/certs/ca-certificates.crt"
|
||||
domain_suffix_match="radius.agdsn.de"
|
||||
identity="r5"
|
||||
password="@AGDSN_AUTH@"
|
||||
phase2="auth=PAP"
|
||||
'';
|
||||
authProtocols = [ "WPA-EAP" ];
|
||||
};
|
||||
};
|
||||
agdsn ={
|
||||
auth = ''
|
||||
eap=TTLS
|
||||
anonymous_identity="anonymous@agdsn.de"
|
||||
ca_cert="/etc/ssl/certs/ca-certificates.crt"
|
||||
domain_suffix_match="radius.agdsn.de"
|
||||
identity="r5"
|
||||
password="@AGDSN_AUTH@"
|
||||
phase2="auth=PAP"
|
||||
'';
|
||||
authProtocols = [ "WPA-EAP" ];
|
||||
openconnect.interfaces = {
|
||||
TU-Dresden = {
|
||||
protocol = "anyconnect";
|
||||
gateway = "vpn2.zih.tu-dresden.de";
|
||||
user = "rose159e@tu-dresden.de";
|
||||
passwordFile = config.sops.secrets."uni/zih".path;
|
||||
autoStart = false;
|
||||
extraOptions = {
|
||||
authgroup = "A-Tunnel-TU-Networks";
|
||||
compression = "stateless";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue