What's new

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

Status
Not open for further replies.

sXc

Forum Expert
Joined
Jul 31, 2017
Posts
3,094
Reaction
19,879
Points
2,824
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 do not have permission to view the full content of this post. Log in or register now. :
$ sudo apt update
$ sudo apt upgrade

Step 2 – Find and note down your IP address
Use the You do not have permission to view the full content of this post. Log in or register now. as follows:
$ ip a
$ ip a show eth0
1566967124730.png


Step 3 – Download and run
wget You do not have permission to view the full content of this post. Log in or register now.
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 do not have permission to view the full content of this post. Log in or register now.
646151

Also,
Special thanks to Sir lfasmpao
646151

Like & Feedback for more update
640027

THANKS
 

Attachments

Last edited:
Status
Not open for further replies.
Back
Top