Skip to content

Instantly share code, notes, and snippets.

@sirkha

sirkha/net.nix Secret

Created October 1, 2017 08:47
Show Gist options
  • Save sirkha/4b47be8b6d0dbe4dbd87e11166714e3c to your computer and use it in GitHub Desktop.
Save sirkha/4b47be8b6d0dbe4dbd87e11166714e3c to your computer and use it in GitHub Desktop.
configuration
services.openvpn.servers = {
colostate-engrVPN = {
config = ''
client
auth-user-pass
dev tap
proto tcp
resolv-retry infinite
nobind
persist-key
persist-tun
ca /root/openvpn/engr-vpn/ca.crt
ns-cert-type server
cert /root/openvpn/engr-vpn/client.crt
key /root/openvpn/engr-vpn/client.key
verb 3
remote ssl.engr.colostate.edu
port 443
reneg-sec 864000
hand-window 60
'';
autoStart = false;
updateResolvConf = true;
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment