How to Install OpenVPN on Ubuntu (self-hosted VPN)

  Рет қаралды 268,330

Tony Teaches Tech

Tony Teaches Tech

Күн бұрын

Learn how to install OpenVPN on Ubuntu for free. In this tutorial, we will be using Ubuntu 20.04.
Get $200 of free DigitalOcean credits here 👉 ttt.do/OpenVPNDigitalOcean (affiliate link)
Don't want to bother with a self-hosted VPN? Use my affiliate link to install Private Internet Access 👉 ttt.do/PIA (they don't keep logs)
Code snippets and more at tonyteaches.tech/openvpn-ubuntu/
Check out my vlog channel ‪@TonyFlorida‬
#openvpn #ubuntu

Пікірлер: 296
@SSmaverick
@SSmaverick 2 жыл бұрын
Sent Tony an email like 2 days ago regarding this specific question and literally 2 days later this man comes out with the perfect tutorial! Appreciate your help so much dude!!
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Happy to help you out!
@thebusinesscentre
@thebusinesscentre Жыл бұрын
@@TonyTeachesTech I have not mailed tony yet. But that man has helped me more than anyone. And I wish to thank him for his help! ❤
@tabbytobias2167
@tabbytobias2167 10 ай бұрын
@@TonyTeachesTech you are awesome, you have basically every tutorial on every piece of tech.
@CoachGarcia
@CoachGarcia 9 ай бұрын
Where did you found his email I am trying to contact him thanks
@VixityTheFox1
@VixityTheFox1 4 ай бұрын
Yo thank you so much for making this shit, saved my ass so much money.@@TonyTeachesTech
@abdinasirmoalin2849
@abdinasirmoalin2849 2 жыл бұрын
Thank you very much. Your explanation made it so simple. I watched others a lot. Luckily I found your when I had to give up. The way you showed was even easier and effictive teaching than the ready-made templates. Thank you again
@reachmind.411
@reachmind.411 2 жыл бұрын
I really owe you one dude. After hours trying by other guys yours worked ! You won a new subscriber.
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Thanks for the sub!
@snowysysadmin59
@snowysysadmin59 2 жыл бұрын
Short, sweet and to the point. SIMPLE
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
:)
@erichart2072
@erichart2072 Жыл бұрын
Dude, I've been trying to configure one of these for years on an old vps. Every guide I found was crap. This was perfection, had it all up and running in about 30 mins. Thank you!!!!!!!
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
You're welcome Eric!
@Stev.3n
@Stev.3n 2 жыл бұрын
Awesome guide. Was going to use the OVA template from them, but this worked out much better to setup it and run my unifi controller on the same server.
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Glad it helped!
@hallercory
@hallercory 2 жыл бұрын
Man. I really appreciate your tutorial. Learned a lot and it makes managing my plex server so much easier.
@khalidelgazzar
@khalidelgazzar 2 жыл бұрын
Great Video. Thanks Tony😊👍
@TK-rr1gj
@TK-rr1gj 2 жыл бұрын
Brilliant content straight to the point, lean bacon! Love it!🤓
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Thanks!!
@helioradial
@helioradial Жыл бұрын
Thank you for this. Much appreciated.
@metamototomo
@metamototomo 2 жыл бұрын
Amazing! Thanks, Tony
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
You're welcome!
@dirac7233
@dirac7233 5 ай бұрын
Very useful. Thanks 👍🏽.
@splitee
@splitee 2 жыл бұрын
yo, this was a great video, very easy to follow along. Thanks! subbed btw
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Thanks!
@WassimBM
@WassimBM 2 жыл бұрын
Thank you Tony, that was useful and very clear :)
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Very welcome
@jyudat4433
@jyudat4433 Жыл бұрын
thanks for this ! did this right after Canadian bill c-11 (censorship) passed on my American vps
@josiahv92
@josiahv92 Жыл бұрын
Great video! Bold to share your IP like that, but I like bold 👍
@anakinskywalker6728
@anakinskywalker6728 9 ай бұрын
very much THANK you! i spent two day reading forums, and couldn't look find a good solution. i'm just learning linux system
@TonyTeachesTech
@TonyTeachesTech 9 ай бұрын
You're welcome!
@JoseRodriguez-os3qv
@JoseRodriguez-os3qv 2 жыл бұрын
amazing Tony your videos are great appreciate you
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Thank you very much
@coding3617
@coding3617 8 ай бұрын
@@TonyTeachesTech it is using my private ip address so i cant access it how can i fix it?
@wuliuxiansheng1605
@wuliuxiansheng1605 Жыл бұрын
I really exited that it worked when I followed what you did
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
It's a good feeling :)
@user-zp9cm4by4d
@user-zp9cm4by4d 2 жыл бұрын
Thanks you, clear and easy explanation
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
You're welcome!
@mortezarostami3287
@mortezarostami3287 Жыл бұрын
thanks man, it was great :)
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
You're welcome!
@vikrammalkan4695
@vikrammalkan4695 16 күн бұрын
I love your video.
@PreetBinning
@PreetBinning Жыл бұрын
Great Video. Thanks!
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
Sure thing ;)
@JustLikeHammer
@JustLikeHammer 2 жыл бұрын
Thanks to your tutorial I do managed to setup my own VPN. It was pretty hard for me because I'm totally new to linux. Whatever Thank you man!
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Glad it helped!
@TheRuslanChanel
@TheRuslanChanel Жыл бұрын
Thanks, man! You helped me a lot
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
Glad I could help!
@Mikeb8134
@Mikeb8134 2 жыл бұрын
Thanks!
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
You bet!
@genobisceglia5629
@genobisceglia5629 Жыл бұрын
Great video!
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
Thanks
@ahmedu921
@ahmedu921 Жыл бұрын
Hi Tony , Please can you do a video about how to automate the openVpn installation using Ansible playbook
@thayaganthusiyanthan9708
@thayaganthusiyanthan9708 2 жыл бұрын
This great and I like your other videos to I just subbed
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Thanks :)
@paulhaubourdin6234
@paulhaubourdin6234 10 ай бұрын
Things have changed a bit: first off when adding the repositories you have to change the name of the ubuntu version you're using (in my case I changed "focal" to "jammy", also the default password for the openvpn (admin) user is given in the terminal when finished installing (so you cannot use "passwd openvpn" command anymore).
@stejothepisto
@stejothepisto 8 ай бұрын
Paul, I think I might love you. Thanks
@tigerhatestobi2890
@tigerhatestobi2890 Ай бұрын
Hero of the people
@RoyHess666
@RoyHess666 2 жыл бұрын
found this tutorial, since I've ever managed openvpn via command line only so far. Installed openvpn-as on a freshly installed testing vm on ubuntu 20 but I cannot for the sake access the admin panel, it shows eula to accept, but sends me right back to the login screen.. what a brilliant piece of software this is. username and password are correct, accessing it from different browsers, still the same.
@jjbesp
@jjbesp Жыл бұрын
Great video but I'm having some trouble getting it to work on a virtualbox VM running on my home PC. I'm using the virtual appliance provided by openvpn on their website and set it up using all defaults, but it uses the private ip. When I switch to my public ip in the access server I can no longer connect nor import profile :(
@pwhilby
@pwhilby Жыл бұрын
Thanks triple T. 💪🏿
@eduardoxmenezes
@eduardoxmenezes 9 ай бұрын
Aha now i get it. Thanksss
@ilona7051
@ilona7051 Жыл бұрын
Don't forget to run as superuser (root), or use 'sudo' before every 'apt' command. You can change to superuser/root mode by running 'sudo su -' in the command line.
@rohannema9304
@rohannema9304 2 жыл бұрын
Sincerely, Thank You
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
You're welcome Rohan
@k0u0s0h0a0g0r0a0
@k0u0s0h0a0g0r0a0 2 жыл бұрын
Good tutorial. Works for windows and macbook, but clicking on ubuntu redirects to some article, instead of downloading settings.
@speedtnt7591
@speedtnt7591 Жыл бұрын
Thanks for this amazing tutorial. how can we set it up on two vps? one inside the country and the other one in a country that we want our IP get changed? and how can we change the port?
@emilstomehoff4465
@emilstomehoff4465 3 ай бұрын
Hi, Tony can you make the same tutorial with the OpenVPN community edition where we have no limitation of the connections(licenses). Thank you
@BlueDolphinBlues
@BlueDolphinBlues Ай бұрын
Do a video on installing open VPN without access server
@mdatiqmazumder
@mdatiqmazumder 10 ай бұрын
Awesome Brother..give me a suggestion or a video how can i forword my port using openvpn hosted on my vps..please
@Erick101271
@Erick101271 2 жыл бұрын
Hi, I tried to setup the same as you discussed. But Im not getting internet when I turn-on the client app. I actually used Virtual Machine using Virtual box to setup the OpenVPN server ? Is this might be the issue?
@jonaskofoed1470
@jonaskofoed1470 Жыл бұрын
Hi Tony. Do you know how to set it up for Remote access?
@elementriders3053
@elementriders3053 Жыл бұрын
Hi tony thanks for the amazing guide could you maybe assist with how do i make my vpn out in the public? once created the open vpn i've got no ping from other endpoint tjhanks
@nurferdi8994
@nurferdi8994 2 жыл бұрын
hi can u help me i use Ubuntu 18.04 i want to install open vpn-as in putty and then it says unable to correct problems, you have held broken package , what should i do ?
@adrianpadilla1425
@adrianpadilla1425 Жыл бұрын
*correction post edit ...thank you for this tutorial I have it installed and working but one thing I need help with..when I connect to my network via vpn I can not see any printers on my connected network....any hep would be greatly appreciated
@EpochIsEpic
@EpochIsEpic 2 жыл бұрын
Sweet, as soon as oracle finishes setting my account up I'm installing this on one of the free servers. I'm sick of playing lost ark with the crappy speeds from free VPNS lol.
@danejohre6657
@danejohre6657 2 жыл бұрын
Great tutorial, thanks. Used it to get OpenVPN server running on a pi4 with ubuntu server.
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Nice work!
@othmankial
@othmankial 28 күн бұрын
hello, thanks for the video, i wanna ask where I can find that address that u inserted after @ thanks in advance
@ysfkyya
@ysfkyya Жыл бұрын
Thanks for the video. i have a question: i did the installation steps and when i clicked the link, This site can’t be reached. What is the reason for this error? what should I do?
@c.m.7037
@c.m.7037 2 жыл бұрын
Dont you need to implement policy and routing on the server? Like what you are allowed to access etc.
@sajidifti
@sajidifti Жыл бұрын
Thank You!!!
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
You're welcome Saijid
@gorazdnovsak3705
@gorazdnovsak3705 Жыл бұрын
I attempted to ask on your webpage but it looks like reCaptcha is broken. Is this also limited to 2 users as is image on OpenVPN page or is unlimited users?
@HisLoveArmy
@HisLoveArmy Жыл бұрын
Do you have any videos showing how to limit users to say just 1 server on the network?
@jaydentechvids2620
@jaydentechvids2620 Жыл бұрын
Thank you for the video! Do you know how to set up the vpn server to not change the ip? I want to access my linux server outside my network. For example, I want to access samba server, cockpit, and home assistant outside the network.
@vahidmardani3885
@vahidmardani3885 7 ай бұрын
thank you
@exact-itacademy1282
@exact-itacademy1282 Жыл бұрын
Hi Tony, can you restrict access to your webserver only to pc connected to vpn server ?
@1000left
@1000left 2 жыл бұрын
Another STELLAR video!!! Thank you!!!
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
My pleasure!
@Lebyy
@Lebyy Жыл бұрын
After running apt install openvpn-as it doesnt show me a link after installing
@siddharthsharma871
@siddharthsharma871 Ай бұрын
when you login into the openvpn UI , we saw there was line which was saying only 2 vpn connection allowed. so if wanna setup this openvpn server for my 50 member of team member. will this setup work or we have to purchase the Paid plan?
@a1wsq
@a1wsq 2 жыл бұрын
thanks very much;
@it-expat-china
@it-expat-china 2 жыл бұрын
Thanks Tony for this great tutorial which I followed through and successfully creatd my OpenVPN access server. I just want to mentiona that as of writing this comment, it seems that this access server setup doesn't generate a user account "openvpn" anymore. Instead you are getting a new "openvpn_as" user on the Ubuntu system. Also, you'll have to open up port 943 (tcp) for the admin portal to be accessible through web browser. In addition, port 443/tcp and port 1194/udp will be used by open VPN service itself for client to connect. Hence above mentioned ports shall be open on the Ubuntu ufw and relevant security rules from the cloud hosting service provider.
@derfinlay5854
@derfinlay5854 2 жыл бұрын
hi, i changed the openvpn_as user password but the web GUI says the credentials are invalid, any suggestions? Thank you.
@rogedkone9757
@rogedkone9757 2 жыл бұрын
@@derfinlay5854 any fix?
@derfinlay5854
@derfinlay5854 2 жыл бұрын
@@rogedkone9757 yes. Run sudo ovpn-init
@biggiantcookie
@biggiantcookie 2 жыл бұрын
@@derfinlay5854 This was the solution I was looking for, Thank you!!!
@derfinlay5854
@derfinlay5854 2 жыл бұрын
@@biggiantcookie sure
@hamon3533
@hamon3533 Жыл бұрын
Thank you so much i just started my vpn server. How can i restart the server without reinstalling?
@Neutral621
@Neutral621 2 жыл бұрын
Hi Tony, I'd like to configure the "ovpn" file from the user access area for a Linksys WRT54G router running Fresh Tomato. I've been on it unsuccessfully for hours. Any idea how to do that?
@Maxiwee
@Maxiwee Жыл бұрын
I got a problem everytime I get an error saying it failed to automatically configure it and if try to do it manually it fails saying there are errors in the python script
@HuDz1966
@HuDz1966 Жыл бұрын
With the VPN active is all data passed through the VPN now encrypted?
@fahimshafahi4388
@fahimshafahi4388 Жыл бұрын
my iphone can not connect to the VPN-Server when i am out of the network. how can i fix it. how to connect to my home vpn server from another network? thank you.
@HisLoveArmy
@HisLoveArmy 4 ай бұрын
So my self hosted box is not working. On my client i get the error "peer certificate verification failure" I even removed my cert and added a new one and it is still not working.
@manibarma9478
@manibarma9478 2 жыл бұрын
After got url to access openvpn on browser it's not opening for me, ll traffic is opened , can you suggest here ?
@arminbrkic841
@arminbrkic841 10 ай бұрын
I did everything in tutorial but cannot connect in the end, connection timed out, nothing in logs
@Rmly
@Rmly 2 жыл бұрын
Finally!
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
:)
@commandcracker8635
@commandcracker8635 Жыл бұрын
What Linux distel are you using?
@atharvmukane4768
@atharvmukane4768 6 ай бұрын
My VPN profile is stuck on loading when trying to connect and after a while says connection timed out. Dont know what I did wrong. Please help.
@tmati7860
@tmati7860 Жыл бұрын
I did everything stpe by step and when I'm going to reach the admin page or even my IP address with 943 port, the page doesn't load and I get this message from browser: "This site can’t be reached"
@saulramirez727
@saulramirez727 Жыл бұрын
Great video
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
Thanks Saul
@m1schief10
@m1schief10 Жыл бұрын
great video , but when I want to add oepnvpn to my repository list , it won't work , I get an error " Try `wget -- help for more option " , I triple check it , I'll do everything as you say .
@hamonadesigns616
@hamonadesigns616 Жыл бұрын
But it only works for local connections . What shall i do?
@JPabloDonayreQuintana
@JPabloDonayreQuintana Жыл бұрын
How to use VPN for sharing critical data of my company ? I mean, how to setup my company website in order to access only if im using a specific VPN ?
@CoachGarcia
@CoachGarcia 9 ай бұрын
How come you didnt need to port foward port 1194 to be able connect on your open vpn ? Usually u need to do this
@WilliamGasperi
@WilliamGasperi 2 жыл бұрын
Mto bem explicado, obrigado
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Thanks
@RINEGANALQUIMISTA
@RINEGANALQUIMISTA 16 күн бұрын
The video was excellent, BUT it does not apply to servers at home, because everything comes out as localhost ip
@DeepThakkar
@DeepThakkar Жыл бұрын
Hi @Tony, I installed OpenVPN on Ubuntu Server, hosted on Oracle Cloud. I am able to connect to the OpenVPN using client from a windows PC, but after getting connected to the VPN, internet is not working. Please help.
@user-em3zv2jd1y
@user-em3zv2jd1y 10 ай бұрын
I have finished the admin login step and not getting how to login as a user in ubuntu
@alanhiggins2521
@alanhiggins2521 2 жыл бұрын
This is my first Ubuntu server/ OpenVPN set up. I have typically used the built VPN service built into my home router however i decided to build my own VPN server to access my resources at home. This video appears to be what i need to accomplish this task however since it's my first attempt, do you have a video that goes over the steps/configuration to access my LAN resources with security in mind.
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
No sorry I don't have a video on that topic
@CloudGirl
@CloudGirl Жыл бұрын
I try install on my VDS - Ubuntu but.. I have failure message: This page is not working, web has not sent any data. When i try login to admin
@atharvmukane4768
@atharvmukane4768 6 ай бұрын
I have forgot my openvpn access server admin password. Plus, when I try "passwd openvpn", It says "passwd: user 'openvpn' does not exist". Please help me solve this. Thankyou.
@afshaarahmed2114
@afshaarahmed2114 10 ай бұрын
if i want to access some specific domain through OpenVPN then?
@stejothepisto
@stejothepisto 8 ай бұрын
I can only connect while I'm on my home network.. How do I fix this?
@quanghuypham5789
@quanghuypham5789 Жыл бұрын
Can I use these installation steps in Ubuntu 22.04.2 LTS ?
@montala3380
@montala3380 Жыл бұрын
Hi, how to install SSL for openvpn access server? by default, the connect to admin and client UI is not secured
@dorpix9974
@dorpix9974 Жыл бұрын
I went through all the steps, but when I entered the admin's IP in the browser, no page came to me
@rafiekalibuxful
@rafiekalibuxful Жыл бұрын
Thanks, I just succesfully installed openvpn on ubuntu server 22.04. Can you explain how to create the config file .ovpn, which we can use for android devices. I want to connect to my vpn server at home from outside. tnx
@farshadtalebi1849
@farshadtalebi1849 Жыл бұрын
when I install openvpn and finish aftar type passwd openvpn show this error "user 'openvpn' does not exist' please help
@djordje1999
@djordje1999 Жыл бұрын
i can't pass a licence agreement.. it constantly logs me out.. type username and password, get licence agree button, just click to reload and boom im logged out again..
@Nova-Rift
@Nova-Rift Жыл бұрын
I don't see how you got the client gui installed and showing.
@Beardbarian46
@Beardbarian46 3 ай бұрын
it doesnt show me the IP Addresses also they dont work. am i missing any command to launch the server?
@farshadtalebi1849
@farshadtalebi1849 Жыл бұрын
thank mr Tony.I have problem can you help me?
@endeshaw1000
@endeshaw1000 2 ай бұрын
I cannot install the dependency libssl1.1 as it was removed from the ubuntu repository due security concerns - Maybe because of the recently poped up xz-CVE? Do already a workaround for this exists?
@FreePizza007
@FreePizza007 2 ай бұрын
And split tunnels?
@Shredzter
@Shredzter Жыл бұрын
Can I do this with Kali or is this Ubuntu exclusive?
OpenVPN.  Большой практический выпуск
57:51
Артем Матяшов
Рет қаралды 98 М.
How to Make Your Own VPN (And Why You Would Want to)
25:54
Wolfgang's Channel
Рет қаралды 2,2 МЛН
터키아이스크림🇹🇷🍦Turkish ice cream #funny #shorts
00:26
Byungari 병아리언니
Рет қаралды 28 МЛН
когда повзрослела // EVA mash
00:40
EVA mash
Рет қаралды 3,7 МЛН
60 Linux Commands you NEED to know (in 10 minutes)
10:50
NetworkChuck
Рет қаралды 1,4 МЛН
Should You Make Your Own VPN?
8:13
Linus Tech Tips
Рет қаралды 1,7 МЛН
I Should NEVER Have Listened To Your TERRIBLE Linux Idea...
10:32
Dawid Does Tech Stuff
Рет қаралды 352 М.
host ALL your AI locally
24:20
NetworkChuck
Рет қаралды 811 М.
Set Up Your Own VPN at Home With Raspberry Pi! (noob-friendly)
18:16
Wolfgang's Channel
Рет қаралды 672 М.
OpenVPN install on Proxmox LXC - VPN tutorial
17:55
BlueMonkey 4n6
Рет қаралды 10 М.
build your own cloud
47:13
NetworkChuck
Рет қаралды 1,8 МЛН
Build your OWN WireGuard VPN! Here's how
12:21
Jeff Geerling
Рет қаралды 312 М.
🎂They Ate Mom's Cake And Got Away With It😲🤪
0:49
BorisKateFamily
Рет қаралды 8 МЛН
Бездомный помог ребятам на дне рождения 🤯
0:39
Фильмы I Сериалы
Рет қаралды 853 М.
My little bro is funny😁  @artur-boy
0:18
Andrey Grechka
Рет қаралды 13 МЛН