usecase: we needed an openvpn server to connect our mango router (Modell: GL-MT300N-V2) via openvpn to an openvpn server,
so that clients behind the router, are getting internet through the server machine

---------------------
install necessary packages:

openvpn with easy-rsa
- apt-get install easy-rsa openvpn
- easy-rsa is a great tool that helps you to build your own certificate authority

--------------------

since the installation is quiet complex, let's use a script:

found on:
https://www.cyberciti.biz/faq/debian-10-set-up-openvpn-server-in-5-minutes/
>> this leaded us to a cool script: https://github.com/angristan/openvpn-install

>> this is the install script:
wget https://raw.githubusercontent.com/Angristan/openvpn-install/master/openvpn-install.sh -O debian10-vpn.sh

The configuration file has been written to /root/mango1.ovpn.
Download the .ovpn file and import it in your OpenVPN client.

-------------------
useful commands:
systemctl restart openvpn@server
systemctl status openvpn@server

#status check
-- ps aux |grep openvpn
-- netstat -tulpn | grep :51194

computer2know :: thank you for your visit :: have a nice day :: © 2022