Skip to content

Instantly share code, notes, and snippets.

@kenyon
Last active May 31, 2019 01:07
Show Gist options
  • Save kenyon/f5a5dac0542d75670c2a32563fb6e4e3 to your computer and use it in GitHub Desktop.
Save kenyon/f5a5dac0542d75670c2a32563fb6e4e3 to your computer and use it in GitHub Desktop.
OpenVPN configuration
dev tun
remote darwin.kenyonralph.com 1194 udp6
remote darwin.kenyonralph.com 1194 udp4
client
remote-cert-tls server
ca /etc/openvpn/ca.crt
cert /etc/openvpn/gauss.crt
key /etc/openvpn/gauss.key
tls-crypt /etc/openvpn/tls-crypt-key
persist-tun
persist-key
passtos
mute 10
verb 4
explicit-exit-notify
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
dev tun
proto udp6
server 10.58.147.0 255.255.255.0
server-ipv6 2600:3c01:e002:7900::/64
topology subnet
push "redirect-gateway bypass-dhcp ipv6"
push "dhcp-option DNS 173.255.215.209"
push "dhcp-option DNS 2600:3c01::f03c:91ff:fe93:b0d1"
user nobody
group nogroup
keepalive 10 90
status /var/log/openvpn.status
ca /etc/openvpn/easy-rsa/keys/ca.crt
dh /etc/openvpn/easy-rsa/keys/dh1024.pem
cert /etc/openvpn/easy-rsa/keys/server.crt
key /etc/openvpn/easy-rsa/keys/server.key
tls-crypt /etc/openvpn/tls-crypt-key
persist-tun
persist-key
passtos
mute-replay-warnings
mute 10
verb 4
explicit-exit-notify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment