Skip to content

Instantly share code, notes, and snippets.

@bryanchance
Forked from seuros/sample.ovpn
Created December 14, 2025 20:05
Show Gist options
  • Select an option

  • Save bryanchance/54f5d98435033bb87a98838e1f8b08c2 to your computer and use it in GitHub Desktop.

Select an option

Save bryanchance/54f5d98435033bb87a98838e1f8b08c2 to your computer and use it in GitHub Desktop.
Sample OpenVPN client config
client
dev tun
proto tcp
remote 192.168.1.1 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca [inline]
cert [inline]
key [inline]
verb 1
keepalive 10 900
inactive 3600
comp-lzo
<ca>
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----
</key>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment