| # This file autogenerated by OpenVPNTenant synchronizer |
| # It contains the OPENVPN config file for the server |
| script-security 3 system |
| port {{ port_number }} |
| proto {{ protocol }} |
| dev tun |
| writepid {{ pki_dir }}/pid |
| ca {{ pki_dir }}/ca.crt |
| cert {{ pki_dir }}/server.crt |
| key {{ pki_dir }}/server.key |
| dh {{ pki_dir }}/dh.pem |
| crl-verify {{ pki_dir }}/crl.pem |
| server {{ server_network }} {{ vpn_subnet }} |
| ifconfig-pool-persist {{ pki_dir }}/ipp.txt |
| status {{ pki_dir }}/openvpn-status.log |
| verb 3 |
| {% if is_persistent %} |
| keepalive 10 60 |
| persist-tun |
| persist-key |
| {% endif %} |
| {% if clients_can_see_each_other %} |
| client-to-client |
| {% endif %} |