Skip to content

Instantly share code, notes, and snippets.

@marvin-marvin
Created February 17, 2023 09:06
Show Gist options
  • Save marvin-marvin/2b9fc7f551a8401d99508a0cddc72b3a to your computer and use it in GitHub Desktop.
Save marvin-marvin/2b9fc7f551a8401d99508a0cddc72b3a to your computer and use it in GitHub Desktop.
openvpn_server
local 172.16.1.75
port 443
proto tcp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
tls-crypt tc.key
topology subnet
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1 bypass-dhcp"
ifconfig-pool-persist ipp.txt
#custom
#push "route-gateway 172.16.1.1"
push "dhcp-option DOMAIN at.home"
push "dhcp-option PROXY_HTTP proxy.at.home 3128"
push "dhcp-option PROXY_HTTPS proxy.at.home 3128"
status /var/log/openvpn-status.log 5
status-version 3
syslog
log /var/log/openvpn-log.log
verb 3
push "dhcp-option DNS 172.16.1.100"
push "dhcp-option DNS 172.16.1.1"
push "block-outside-dns"
keepalive 10 120
cipher AES-256-CBC
user nobody
group nogroup
persist-key
persist-tun
#verb 3
crl-verify crl.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment