OpenVPN Setup for Linux
Complete guide to configuring OpenVPN on your Linux system
π Before You Begin
Ensure you have your CodaMail VPN credentials ready. You'll need your VPN username and password (different from your email login) to connect to our secure VPN servers.
Important: All VPN and proxy servers are under the cotse.net domain. The codamail.com domain is exclusively for email services.
π¦ Step 1: Install OpenVPN
Distribution-Specific Installation:
π© Red Hat/Fedora/CentOS:
sudo dnf install openvpn
sudo yum install openvpn
(older versions)
π§ Ubuntu/Debian:
sudo apt update
sudo apt install openvpn
π¦ openSUSE:
sudo zypper install openvpn
πΉ Arch Linux:
sudo pacman -S openvpn
π₯ Step 2: Download Configuration Files
Download one or more of the following OpenVPN configuration files to your Linux system:
π¬π§ London Server
πΊπΈ Denver Server
π³π± Amsterdam Server
π» Step 3A: Command Line Setup (Recommended)
Configuration Preparation:
mkdir ~/vpn-configs
mv ~/Downloads/*.ovpn ~/vpn-configs/
Create Credential File:
nano ~/vpn-configs/auth.txt
your-vpn-password
chmod 600 ~/vpn-configs/auth.txt
Update Configuration File:
nano ~/vpn-configs/london.ovpn
auth-user-pass auth.txt
π₯οΈ Step 3B: NetworkManager GUI Setup (Alternative)
Install NetworkManager OpenVPN Plugin:
sudo apt install network-manager-openvpn-gnome
sudo dnf install NetworkManager-openvpn-gnome
sudo zypper install NetworkManager-openvpn-gnome
sudo pacman -S networkmanager-openvpn
Import Configuration:
π Step 4: Connect to VPN
Command Line Connection:
sudo openvpn --config ~/vpn-configs/london.ovpn
sudo openvpn --config ~/vpn-configs/london.ovpn --daemon
NetworkManager Connection:
βοΈ Advanced: System Service Setup
Create Systemd Service (Optional):
sudo cp ~/vpn-configs/london.ovpn /etc/openvpn/client/
sudo cp ~/vpn-configs/auth.txt /etc/openvpn/client/
sudo systemctl enable openvpn-client@london
sudo systemctl start openvpn-client@london
Service Management:
sudo systemctl status openvpn-client@london
sudo systemctl stop openvpn-client@london
sudo journalctl -u openvpn-client@london
π₯ Firewall Configuration
UFW (Ubuntu):
sudo ufw allow 1194/udp
Firewalld (Fedora/CentOS):
sudo firewall-cmd --add-service=openvpn --permanent
sudo firewall-cmd --reload
iptables (Manual):
π Server Selection Guide
Performance Recommendations:
Network Optimization:
remote server-address 1194 udp
to use any alternative portremote london.cotse.net 443 tcp
for HTTPS portTesting Server Performance:
ping london.cotse.net
curl -s https://fast.com
vnstat -i tun0
π§ Troubleshooting
Common Linux-specific issues and solutions:
sudo modprobe tun
ip route show
telnet server-address 1194
Distribution-Specific Issues:
Network Diagnostics:
ip addr show
tail -f /var/log/openvpn.log
curl ifconfig.me
dig @8.8.8.8 google.com
π Need Help?
If you need additional assistance with OpenVPN setup on Linux or encounter any issues not covered in this guide, please contact our support team at helpdesk@codamail.com.
We're here to help ensure your VPN connection works perfectly and keeps your Linux system browsing secure and private.