1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

fix(openvpn): option for only-hu-traffic

This commit is contained in:
Kierán Meinhardt
2019-09-25 18:38:00 +02:00
parent ee22f13f22
commit 3134bbc747

View File

@@ -18,6 +18,7 @@ let
}}"
phase2="auth=PAP"
'';
only-hu-traffic = true;
in {
networking.wireless.networks = {
eduroam_5GHz.auth = eduroamAuth;
@@ -31,8 +32,10 @@ in {
url = https://www.cms.hu-berlin.de/de/dl/netze/vpn/openvpn/hu-berlin.ovpn;
sha256 = "15b55aibik5460svjq2gwxrcyh6ay4k8savd6cd5lncgndmd8p8h";
}}
# route-nopull
# route 141.20.0.0 255.255.0.0
${lib.optionalString only-hu-traffic ''
route-nopull
route 141.20.0.0 255.255.0.0
''}
'';
authUserPass = {
username = eduroam.identity;