wiki:ovpn_file_example
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| wiki:ovpn_file_example [2021/06/02 10:09] – created antisa | wiki:ovpn_file_example [2024/06/10 08:27] (current) – [ovpn file example] add howto ignore pushed DNS servers antisa | ||
|---|---|---|---|
| Line 47: | Line 47: | ||
| -----END CERTIFICATE----- | -----END CERTIFICATE----- | ||
| </ca> | </ca> | ||
| + | </ | ||
| + | |||
| + | |||
| + | <file openvpn client-example-2.txt> | ||
| + | client | ||
| + | dev tun | ||
| + | |||
| + | proto udp | ||
| + | remote vpn.example.org | ||
| + | port 1194 | ||
| + | |||
| + | resolv-retry infinite | ||
| + | |||
| + | nobind | ||
| + | |||
| + | persist-key | ||
| + | persist-tun | ||
| + | |||
| + | # use this to point to certificates or embed them directly in file like below | ||
| + | #ca ca.crt | ||
| + | #cert client.crt | ||
| + | #key client.key | ||
| + | |||
| + | remote-cert-tls server | ||
| + | |||
| + | key-direction 1 | ||
| + | |||
| + | cipher AES-256-CBC | ||
| + | |||
| + | #Uncomment this block to ignore the pushed DNS servers and use your own | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | |||
| + | verb 3 | ||
| + | |||
| + | |||
| + | # embedded certificates | ||
| + | <ca> | ||
| + | ... CA certificate | ||
| + | </ca> | ||
| + | <key> | ||
| + | ... client' | ||
| + | </ | ||
| + | < | ||
| + | ... client' | ||
| + | </ | ||
| + | < | ||
| + | ... tls-auth ta.key | ||
| + | </ | ||
| </ | </ | ||
| ====== Tested on ====== | ====== Tested on ====== | ||
wiki/ovpn_file_example.1622628575.txt.gz · Last modified: by antisa
