Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
configuration:openvpn [2021/03/05 05:46]
dodenhoeft [Server]
configuration:openvpn [2022/08/05 20:05] (current)
fachet
Line 87: Line 87:
 |use keepalive|enable| |use keepalive|enable|
  
-==== Keys and certificates ​====+==== minimal configuration ​==== 
 +Generate a static key: 
 + 
 +    openvpn --genkey --secret static.key 
 + 
 +Copy the static key to both client and server, over a pre-existing secure channel. 
 +Server configuration file 
 + 
 +    dev tun 
 +    ifconfig 10.8.0.1 10.8.0.2 
 +    secret static.key 
 + 
 +Client configuration file 
 + 
 +    remote myremote.mydomain 
 +    dev tun 
 +    ifconfig 10.8.0.2 10.8.0.1 
 +    secret static.key