This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| deb9:openvpn [2023/05/12 16:32] – [Links] Bernard Condrau | deb9:openvpn [2026/08/14 20:13] (current) – Bernard Condrau | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== OpenVPN ====== | ====== OpenVPN ====== | ||
| - | Follow one of the excellent guides from DigitalOcean. Follow all the steps to the detail and everything will work, below are modifications I made for my personal requirements. Make sure you run commands as regular user and only elevate to root when told to do so. | + | Follow one of the excellent guides from DigitalOcean |
| - | * [[https:// | + | |
| - | * [[https:// | + | |
| - | * [[https:// | + | |
| ===== Prerequisites ===== | ===== Prerequisites ===== | ||
| - Make sure you followed [[https:// | - Make sure you followed [[https:// | ||
| Line 11: | Line 9: | ||
| - Install [[https:// | - Install [[https:// | ||
| + | ===== Migrating server ===== | ||
| + | If you resinstall OpenVPN on a new machine with existing client configurations do the following: | ||
| + | - Copy ''/ | ||
| + | - Follow [[https:// | ||
| + | - Check the VPN is running with< | ||
| ===== Adding Clients ===== | ===== Adding Clients ===== | ||
| Setting up the environment (//VPN Server(s)// and //CA Server//) takes a while, the many steps are outlined clearly and in detail in the Original Article below in [[deb9: | Setting up the environment (//VPN Server(s)// and //CA Server//) takes a while, the many steps are outlined clearly and in detail in the Original Article below in [[deb9: | ||
| Line 20: | Line 23: | ||
| === CA Server === | === CA Server === | ||
| - | * Log in to your //CA Server// and copy the client1.req file from the //VPN Server//:< | + | * Log in to your //CA Server// and copy the client1.req file from the //VPN Server//:< |
| * Navigate to the EasyRSA directory and sign the request, be sure to specify the client request type:< | * Navigate to the EasyRSA directory and sign the request, be sure to specify the client request type:< | ||
| - | * Copy the signed client1.crt file back to the //VPN Server//:< | + | * Copy the signed client1.crt file back to the //VPN Server//:< |
| === VPN Server === | === VPN Server === | ||
| Line 30: | Line 33: | ||
| * Install the //OpenVPN Client// for [[https:// | * Install the //OpenVPN Client// for [[https:// | ||
| * On Android, open the app and select the import icon top right to import the config file.{{ : | * On Android, open the app and select the import icon top right to import the config file.{{ : | ||
| + | |||
| + | ===== Managing network ===== | ||
| + | * If you have more than one network adapter enabled you need to make sure that the OpenVPN settings match the default adapter. This can be necessary, when you have a virtual machine running on your main server, for example to host websites, and the virtual machine get's its IP address from a DHCP server in the system. | ||
| + | * Check active adapters:< | ||
| + | * Disable the adapter (example IP and device enp47s0):< | ||
| + | * To make it permanent for **NetworkManager** | ||
| + | - Create a new connection profile< | ||
| + | - Disable IP configurations< | ||
| + | - Bring the interface up< | ||
| ===== Links ===== | ===== Links ===== | ||
| - | * [[https:// | + | |
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | | ||
| + | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||