Technology

Install VPN Server by script openvpn-install

I would like to introduce to you, the simplest and easiest way to install OpenVPN Server on Linux HDH that I know is openvpn-install. I have been using this script for quite some time now. It really saves me a lot of time and effort in setting up an OpenVPN Server.

Install openVPN

wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh

  • IP address: Server’s public IP address
  • Protocol: The protocol you want OpenVPN to Use. Default is UDP Protocol
  • Port: The port on which the OpenVPN Server will listen. Default is 1194
  • DNS: Domain name resolution server. Default is 1, but here I choose DNS as 2 (Cloudflare DNS)
  • Client name: VPN Client (Can be understood as the username of VPN)

After successful installation, the configuration file of openvpn will be saved at /root/.ovpn

Uninstall OpenVPN Server

bash openvpn-install.sh

Copy ovpn to local

scp username@remote:/file/to/send /where/to/put

admin

Recent Posts

Create PHP-FPM Status Page for nginx+php-fpm in directadmin

Go to Custom HTTPD ConfigurationSelect the php-fpm version you are running for the domain you…

3 years ago

Renew Let’s Encrypt For Domains Command Line

cd /usr/local/directadmin/scripts ./letsencrypt.sh renew [domain.com] 4096

4 years ago

server reached pm.max_children setting (10), consider raising it.

We calculate based on the following formula: pm.max_children = Total RAM dedicated to the web…

4 years ago

Instructions to upgrade DirectAdmin version

cd /usr/local/directadmin/custombuild/ ./build update ./build update_da

4 years ago

Directadmin change httpd to nginx

cd /usr/local/directadmin/custombuild ./build set webserver nginx ./build update ./build set php1_mode php-fpm ./build set php2_mode…

4 years ago

Directadmin upgrade/downgrade PHP version

vi /usr/local/directadmin/custombuild/options.conf #here you can modify 7.4 to 7.3./build update./build php n

4 years ago