How to setup OpenVPN Server on Centos 7
In this tutorial, I will setup OpenVPN Server on Centos 7. Step 1: Prepare install OpenVPN server sudo yum update -y sudo yum install epel-release -y sudo yum update -y sudo yum install -y openvpn easy-rsa Configure Ip forwarding for OpenVPN Server vim /etc/sysctl.conf The content sysctl.conf file as below: Packet forwarding net.ipv4.ip_forward = 1 Step 2: Configure OpenVPN Server Open server.conf file vim /etc/openvpn/server.conf The content configure as below: #Secure OpenVPN Server Config #Basic Connection Config dev tun proto udp port 1194 keepalive 10 120 max-clients 4 #Certs ca ca.crt cert server.crt key server.key dh dh.pem tls-auth ta.key 0 #Ciphers and Hardening reneg-sec 0 remote-cert-tls client crl-verify crl.pem tls-version-min 1.2 cipher AES-256-CBC auth SHA512 tls-cipher TLS-DHE-RSA-WITH-AES-256-GCM-SHA384:TLS-DHE-RSA-WITH-AES-256-CBC-SHA256:TLS-DHE-RSA-WITH-AES-128-GCM-SHA256:TLS-DHE-RSA-WITH-AES-128-CBC-SHA256 #D