What's new
  • Welcome to PHCorner Forums. Take a moment to Sign up and gain unlimited access and extra privileges that guests are not entitled to, such as: All that and more! Registration is quick, simple and absolutely free. Join our community today!

Tutorial StepbyStep Procedure to Set up your own OpenVPN server on Debian, Ubuntu, Fedora, CentOS or Arch Linux

sXc

Eternal Poster
Established
Joined
Jul 31, 2017
Messages
1,817
Reaction score
3,502
, Last edited:
Hello! KaPHC.

Sa mga nagtatanong o naghahanap ng Auto script for DEBIAN 9, 10 x 64
640027

646151

Credit to
Stanislas
angristan
Procedure: FOR DEBIAN
The steps are as follows:

Step 1 – Update your system
Run the You must register or login to view this. :
$ sudo apt update
$ sudo apt upgrade

Step 2 – Find and note down your IP address
Use the You must register or login to view this. as follows:
$ ip a
$ ip a show eth0
1566967124730.png

Step 3 – Download and run
wget You must register or login to view this.
chmod +x openvpn-install.sh
1566967300907.png

Setup permissions using the chmod command
$ chmod +x openvpn-install.sh
RUN ./OPENVPN-INTALL.SH TO INSTALL OPENVPN SERVER
Now all you have to do is:
$ ./debian10-vpn.sh
Sample session:
1566967603669.png
To avoid problem always choose DNS as 1.1.1.1 or Google DNS. Those are fast DNS server and reached from anywhere on the Internet. Okay, that was all script needed. We are ready to setup your OpenVPN server now. You will be able to generate a client at the end of the installation as follows:
1566967678595.png

HOW DO I START/STOP/RESTART OPENVPN SERVER ON DEBIAN ?
$ sudo systemctl stop openvpn@server # <--- stop server
$ sudo systemctl start openvpn@server # <--- start server
$ sudo systemctl restart openvpn@server # <--- restart server
$ sudo systemctl status openvpn@server # <--- get server status
1566967757985.png
EXTRACT OVPN FILE
Step 4 – Connect an OpenVPN server using IOS/Android/Linux/Windows client
Conclusion
Congratulations. You successfully set up an OpenVPN server on Debian Linux server running in the cloud. See the OpenVPN website You must register or login to view this.
646151

Also,
Special thanks to Sir lfasmpao
646151

Like & Feedback for more update
640027

THANKS
 

Attachments

Trending Topics

Trending On This Forum

Unanswered Topics

Top