diff options
author | makefu <github@syntax-fehler.de> | 2017-12-18 21:27:26 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2017-12-18 21:27:26 +0100 |
commit | e2369d551e211c0eeb360868c2bba30564e33ca0 (patch) | |
tree | c8c19f08e0ad3261eb43a99f32b35e7b8121fa52 /makefu/2configs/vpn/vpnws/client.nix | |
parent | 4d4d11a76501246e485ed73f33277ce470d32dfd (diff) |
ma vpn: add vpnws client and server
Diffstat (limited to 'makefu/2configs/vpn/vpnws/client.nix')
-rw-r--r-- | makefu/2configs/vpn/vpnws/client.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/makefu/2configs/vpn/vpnws/client.nix b/makefu/2configs/vpn/vpnws/client.nix new file mode 100644 index 000000000..d06bc27db --- /dev/null +++ b/makefu/2configs/vpn/vpnws/client.nix @@ -0,0 +1,9 @@ +{ pkgs, ... }: +{ + users.users.makefu.packages = with pkgs; [ iproute vpn-ws ]; + # vpn-ws-client vpnws wss://localhost/vpn --no-verify --exec "ip link set vpnws up;ip addr add 10.244.1.2/24 dev vpnws" + networking.interfaces.vpnws = { + virtual = true; + virtualType = "tap"; + }; +} |