From e4d0ddc70be57937367dae618bb6033cdc6e8a04 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 18 Dec 2017 21:27:26 +0100 Subject: ma vpn: add vpnws client and server --- 2configs/vpn/vpnws/client.nix | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 2configs/vpn/vpnws/client.nix (limited to '2configs/vpn/vpnws/client.nix') diff --git a/2configs/vpn/vpnws/client.nix b/2configs/vpn/vpnws/client.nix new file mode 100644 index 000000000..d06bc27db --- /dev/null +++ b/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"; + }; +} -- cgit v1.2.3 [cgit] Unable to lock slot /tmp/cgit/c4200000.lock: No such file or directory (2)