# OpenVPN server configuration file # Specify the protocol and port proto udp port 1194 # Use tunnelling device for VPN traffic dev tun # Configure server mode and network server 10.8.0.0 255.255.255.0 # Use a pre-shared static key tls-server tls-auth ta.key 0 # Configure server certificates and keys ca ca.crt cert server.crt key server.key # Configure Diffie-Hellman parameters dh dh2048.pem # Configure client-to-client connections client-to-client # Specify DNS servers to use push "dhcp-option DNS 8.8.8.8" push "dhcp-option DNS 8.8.4.4" # Enable compression comp-lzo # Set log file verbosity verb 3 # Keepalive settings keepalive 10 120 # Persist keys across restarts persist-key persist-tun # Configure route settings push "route 192.168.1.0 255.255.255.0" # Uncomment if using NAT ;push "redirect-gateway def1 bypass-dhcp"