### Start OpenVPN Service Source: https://wiki.buyvm.net/doku.php/vpn%3Aopenvpn Starts the OpenVPN service on the server. ```bash /etc/init.d/openvpn start ``` -------------------------------- ### Configure Server Certificate Paths Source: https://wiki.buyvm.net/doku.php/vpn%3Aopenvpn Example lines in server.conf pointing to the generated CA, certificate, key, and DH files. ```ini ca /etc/openvpn/ca/keys/ca.crt cert /etc/openvpn/ca/keys/server.crt key /etc/openvpn/ca/keys/server.key # This file should be kept secret dh /etc/openvpn/ca/keys/dh1024.pem ``` -------------------------------- ### Anycast IP Configuration Example Source: https://wiki.buyvm.net/doku.php/stallion?rev=1619388357 Sample /etc/network/interfaces configuration for a system using Anycast IP addresses, demonstrating the setup for both IPv4 and IPv6, as well as the Anycast binding. ```bash auto lo iface lo inet loopback auto eth0 allow-hotplug eth0 iface eth0 inet static address 209.141.56.135 network 209.141.56.0 gateway 209.141.56.1 broadcast 209.141.56.255 netmask 255.255.255.0 auto eth0:v6 allow-hotplug eth0:v6 iface eth0:v6 inet6 static address 2605:6400:0020:0078::1 gateway 2605:6400:0020::1 netmask 48 auto eth0:anycast allow-hotplug eth0:anycast iface eth0:anycast inet static address 198.251.86.22 netmask 255.255.255.0 ``` -------------------------------- ### fdisk command example (New partition creation) Source: https://wiki.buyvm.net/doku.php/slab?difftype=sidebyside&do=diff&rev=1619297441 Example of using fdisk to create a new partition. ```bash Command (m for help): n ``` -------------------------------- ### Linux fdisk command example Source: https://wiki.buyvm.net/doku.php/slab?difftype=sidebyside&do=diff&rev2%5B0%5D=1619306176&rev2%5B1%5D=1619363416 This snippet shows the sequence of commands to set up a new partition on a Linux system using fdisk. ```bash $ sudo fdisk /dev/sda Welcome to fdisk (util-linux 2.33.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): g Created a new GPT disklabel (GUID: ECA757E9-5304-594C-A9CA-17E061B2E516). The old dos signature will be removed by a write command. Command (m for help): n Partition number (1-128, default 1): 1 First sector (2048-536870878, default 2048): 2048 Last sector, +/-sectors or +/ -size{K,M,G,T,P} (2048-536870878, default 536870878): 536870878 # Set this to your own default by pressing enter. Created a new partition 1 of type 'Linux filesystem' and of size 256 GiB. Command (m for help): w ``` -------------------------------- ### Install OpenVPN on CentOS Source: https://wiki.buyvm.net/doku.php/vpn%3Aopenvpn Installs the OpenVPN package on CentOS, including EPEL repository setup. ```bash rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm yum update yum install openvpn ```