From 3134bbc747e454fad0910669b290a39cfb245cea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Wed, 25 Sep 2019 18:38:00 +0200 Subject: [PATCH] fix(openvpn): option for only-hu-traffic --- configs/hu-berlin.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configs/hu-berlin.nix b/configs/hu-berlin.nix index 65ed76b..c63ab9f 100644 --- a/configs/hu-berlin.nix +++ b/configs/hu-berlin.nix @@ -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;