Skip to content

Instantly share code, notes, and snippets.

@arkenous
Last active July 16, 2023 17:50
Show Gist options
  • Save arkenous/1570bbc417aafb8b19a9 to your computer and use it in GitHub Desktop.
Save arkenous/1570bbc417aafb8b19a9 to your computer and use it in GitHub Desktop.
OpenVPN server configuration file
port 1194
proto tcp
dev tun
ca ca.crt
cert openvpnsv.crt
key openvpnsv.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
client-to-client
keepalive 10 120
tls-auth ta.key 0 # This file is secret
comp-lzo
user nobody
group nobody
persist-key
persist-tun
push "dhcp-option PROXY_HTTP your.proxy.server port"
push "dhcp-option PROXY_HTTPS your.proxy.server port"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment