Page 5: Client Configuration and Testing

5. Client Configuration and Testing

Create a .ovpn profile for client access and perform a final check.

5.1. Client Profile (m.ovpn) Configuration

client # Client mode
dev tun # Device type
proto udp # Protocol
remote server-ip 1194 # Server IP and Port
resolv-retry infinite # Infinite retry
nobind # Do not bind to local port
persist-key # Persist keys
persist-tun # Persist device
comp-lzo # Use compression
verb 3 # Log verbosity
<ca>
-----BEGIN CERTIFICATE-----
# Paste content of ca.crt here
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
# Paste content of client1.crt here
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
# Paste content of client1.key here
-----END PRIVATE KEY-----
</key>

5.2. Final Connection Test

sudo nmap -sU -p 1194 127.0.0.1 # Verify server port activity
sudo cat /etc/openvpn/openvpn.log # Check server logs

Once you have completed all the steps, your Linux OpenVPN Server is ready for secure operation.