1
0
mirror of https://github.com/kmein/niveum synced 2026-03-20 03:51:07 +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" phase2="auth=PAP"
''; '';
only-hu-traffic = true;
in { in {
networking.wireless.networks = { networking.wireless.networks = {
eduroam_5GHz.auth = eduroamAuth; eduroam_5GHz.auth = eduroamAuth;
@@ -31,8 +32,10 @@ in {
url = https://www.cms.hu-berlin.de/de/dl/netze/vpn/openvpn/hu-berlin.ovpn; url = https://www.cms.hu-berlin.de/de/dl/netze/vpn/openvpn/hu-berlin.ovpn;
sha256 = "15b55aibik5460svjq2gwxrcyh6ay4k8savd6cd5lncgndmd8p8h"; sha256 = "15b55aibik5460svjq2gwxrcyh6ay4k8savd6cd5lncgndmd8p8h";
}} }}
# route-nopull ${lib.optionalString only-hu-traffic ''
# route 141.20.0.0 255.255.0.0 route-nopull
route 141.20.0.0 255.255.0.0
''}
''; '';
authUserPass = { authUserPass = {
username = eduroam.identity; username = eduroam.identity;