

The configuration file has been written to /root/mydesktopclient.ovpn.ĭownload the. The Subject 's Distinguished Name is as followsĬertificate is to be certified until Jul 7 10:30:18 2024 GMT (825 days) Using configuration from /etc/openvpn/easy-rsa/pki/easy-rsa- 2787.Jdi1Yh/tmp.a5F43cĬheck that the request matches the signature Writing new private key to '/etc/openvpn/easy-rsa/pki/easy-rsa-2787.Jdi1Yh/tmp.kZEeJi' Note: using Easy-RSA configuration from: /etc/openvpn/easy-rsa/vars ⚠️ You will be asked for the client password below ⚠️ encrypt the private key with a password)ĭo you want to password protect VPN client config? Then, choose the option # 2 for the OpenVPN client. It may also include an underscore or a dash.ĭo you want to protect the configuration file with a password? The name must consist of alphanumeric character. You will see prompt as follows: Tell me a name for the client. You will be able to generate a client at the end of the installation as follows (don’t worry, and we can generate more VPN clients config later on too): You are ready to setup OpenVPN server now. Okay, that is all input script needed to set up everything. Google/Cloudflare/AdGuard are fast DNS server and reached from anywhere on the Internet. To avoid problem we can choose DNS as 1.1.1.1 or Google DNS or any other provider of your choice. Sample session from Linode/DO server where cloud server has direct public IPv4 address: Setup permissions using the chmod command (see How To Use chmod and chown Command in }$ chmod -v +x debian-11-vpn-server.sh # OR use the curl command }$ curl -o debian-11-vpn-server.sh I am going to use the wget command grab the script (one can use the curl command to download script }$ wget -O debian-11-vpn-server.sh Step 3 – Download and run debian-11-vpn-server.sh script ↑ All you have to do is provide correct IP address when asked for it. The script will automatically detect your networking setup. For example, AWS EC2/Lightsail give you this kind of NAT public IP address. Private static IP address directly attached to your server and your server is behind NAT with public IP address.For example, Linode, Digital Ocean, and others gives you direct public IP address. Public static IP address directly assigned to your box and routed from the Internet.Most cloud servers have two types of IP address:
