Тёмный
No video :(

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

Tony Teaches Tech
Подписаться 107 тыс.
Просмотров 277 тыс.
50% 1

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

Опубликовано:

 

6 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 299   
@SSmaverick
@SSmaverick 3 года назад
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 3 года назад
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 11 месяцев назад
@@TonyTeachesTech you are awesome, you have basically every tutorial on every piece of tech.
@CoachGarcia
@CoachGarcia 10 месяцев назад
Where did you found his email I am trying to contact him thanks
@KyraTheFloof
@KyraTheFloof 5 месяцев назад
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
@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!
@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!
@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.
@snowysysadmin59
@snowysysadmin59 2 года назад
Short, sweet and to the point. SIMPLE
@TonyTeachesTech
@TonyTeachesTech 2 года назад
:)
@maomao6679
@maomao6679 21 день назад
Hi, thanks for the tutorial, so for this one you do not need port forwarding? Openvpn does all? Or you still need to setup the port on the router?
@TK-rr1gj
@TK-rr1gj 2 года назад
Brilliant content straight to the point, lean bacon! Love it!🤓
@TonyTeachesTech
@TonyTeachesTech 2 года назад
Thanks!!
@splitee
@splitee 2 года назад
yo, this was a great video, very easy to follow along. Thanks! subbed btw
@TonyTeachesTech
@TonyTeachesTech 2 года назад
Thanks!
@paulhaubourdin6234
@paulhaubourdin6234 11 месяцев назад
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 10 месяцев назад
Paul, I think I might love you. Thanks
@tigerhatestobi2890
@tigerhatestobi2890 2 месяца назад
Hero of the people
@khalidelgazzar
@khalidelgazzar 2 года назад
Great Video. Thanks Tony😊👍
@WassimBM
@WassimBM 2 года назад
Thank you Tony, that was useful and very clear :)
@TonyTeachesTech
@TonyTeachesTech 2 года назад
Very welcome
@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 :(
@josiahv92
@josiahv92 Год назад
Great video! Bold to share your IP like that, but I like bold 👍
@helioradial
@helioradial Год назад
Thank you for this. Much appreciated.
@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 ?
@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?
@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
@emilstomehoff4465
@emilstomehoff4465 4 месяца назад
Hi, Tony can you make the same tutorial with the OpenVPN community edition where we have no limitation of the connections(licenses). Thank you
@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.
@anakinskywalker6728
@anakinskywalker6728 10 месяцев назад
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 10 месяцев назад
You're welcome!
@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.
@k0u0s0h0a0g0r0a0
@k0u0s0h0a0g0r0a0 2 года назад
Good tutorial. Works for windows and macbook, but clicking on ubuntu redirects to some article, instead of downloading settings.
@ahmedu921
@ahmedu921 Год назад
Hi Tony , Please can you do a video about how to automate the openVpn installation using Ansible playbook
@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.
@metamototomo
@metamototomo 2 года назад
Amazing! Thanks, Tony
@TonyTeachesTech
@TonyTeachesTech 2 года назад
You're welcome!
@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?
@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?
@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!
@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.
@jyudat4433
@jyudat4433 Год назад
thanks for this ! did this right after Canadian bill c-11 (censorship) passed on my American vps
@dirac7233
@dirac7233 6 месяцев назад
Very useful. Thanks 👍🏽.
@Maxiwee
@Maxiwee 2 года назад
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
@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
@montala3380
@montala3380 Год назад
Hi, how to install SSL for openvpn access server? by default, the connect to admin and client UI is not secured
@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 ?
@othmankial
@othmankial 2 месяца назад
hello, thanks for the video, i wanna ask where I can find that address that u inserted after @ thanks in advance
@HisLoveArmy
@HisLoveArmy 5 месяцев назад
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.
@JoseRodriguez-os3qv
@JoseRodriguez-os3qv 2 года назад
amazing Tony your videos are great appreciate you
@TonyTeachesTech
@TonyTeachesTech 2 года назад
Thank you very much
@coding3617
@coding3617 9 месяцев назад
@@TonyTeachesTech it is using my private ip address so i cant access it how can i fix it?
@atharvmukane4768
@atharvmukane4768 7 месяцев назад
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.
@HisLoveArmy
@HisLoveArmy Год назад
Do you have any videos showing how to limit users to say just 1 server on the network?
@Lebyy
@Lebyy Год назад
After running apt install openvpn-as it doesnt show me a link after installing
@biancas13
@biancas13 Год назад
help, my user never connects and failure after connection timeout my server has the ports tcp 443, tcp 943 and udp 1194 open. I dont know what is happening, Can someone help me?
@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.
@thayaganthusiyanthan9708
@thayaganthusiyanthan9708 2 года назад
This great and I like your other videos to I just subbed
@TonyTeachesTech
@TonyTeachesTech 2 года назад
Thanks :)
@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"
@DeepThakkar
@DeepThakkar 2 года назад
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.
@exact-itacademy1282
@exact-itacademy1282 Год назад
Hi Tony, can you restrict access to your webserver only to pc connected to vpn server ?
@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
@mdatiqmazumder
@mdatiqmazumder 11 месяцев назад
Awesome Brother..give me a suggestion or a video how can i forword my port using openvpn hosted on my vps..please
@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
@jonaskofoed1470
@jonaskofoed1470 Год назад
Hi Tony. Do you know how to set it up for Remote access?
@CoachGarcia
@CoachGarcia 10 месяцев назад
How come you didnt need to port foward port 1194 to be able connect on your open vpn ? Usually u need to do this
@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
@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 ?
@arminbrkic841
@arminbrkic841 11 месяцев назад
I did everything in tutorial but cannot connect in the end, connection timed out, nothing in logs
@benxinsai
@benxinsai Год назад
I installed openvpn in my ubuntu but the admin address is my private ip address instead of the public ip address provided by Microsoft azure, could someone help to answer?
@stejothepisto
@stejothepisto 10 месяцев назад
I can only connect while I'm on my home network.. How do I fix this?
@hamonadesigns616
@hamonadesigns616 Год назад
But it only works for local connections . What shall i do?
@user-em3zv2jd1y
@user-em3zv2jd1y Год назад
I have finished the admin login step and not getting how to login as a user in ubuntu
@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?
@farshadtalebi1849
@farshadtalebi1849 Год назад
when I install openvpn and finish aftar type passwd openvpn show this error "user 'openvpn' does not exist' please help
@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 .
@afshaarahmed2114
@afshaarahmed2114 11 месяцев назад
if i want to access some specific domain through OpenVPN then?
@dorpix9974
@dorpix9974 Год назад
I went through all the steps, but when I entered the admin's IP in the browser, no page came to me
@quanghuypham5789
@quanghuypham5789 Год назад
Can I use these installation steps in Ubuntu 22.04.2 LTS ?
@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..
@Mikeb8134
@Mikeb8134 2 года назад
Thanks for the info. I like to make puzzle and solve them. Could I use this to tunnel my connection through to another location? Say I had a computer that had it's own VPN where I wasn't the admin and thus couldn't change anything on the computer like add software or anything but I wanted the computer to think it was in a certain location before I logged into its VPN. Are there any guides that explain how to do this? Thank you!
@TonyTeachesTech
@TonyTeachesTech 2 года назад
If you're able to connect that computer (where you weren't the admin) to your self-hosted VPN, then external connections will appear as if they are from the location of the VPN server. No guide for this, but assuming you can make the connection, you'll be golden
@siddharthsharma871
@siddharthsharma871 2 месяца назад
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?
@Nova-Rift
@Nova-Rift 2 года назад
I don't see how you got the client gui installed and showing.
@HuDz1966
@HuDz1966 Год назад
With the VPN active is all data passed through the VPN now encrypted?
@Beardbarian46
@Beardbarian46 4 месяца назад
it doesnt show me the IP Addresses also they dont work. am i missing any command to launch the server?
@USMCLEHMANN
@USMCLEHMANN 2 года назад
i followed this video to the T, no matter what i do it never changes my ip. can anyone help?
@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
@mortezarostami3287
@mortezarostami3287 2 года назад
thanks man, it was great :)
@TonyTeachesTech
@TonyTeachesTech 2 года назад
You're welcome!
@TanteRegane
@TanteRegane День назад
how do you add more location on it
@atharvmukane4768
@atharvmukane4768 7 месяцев назад
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.
@hamon3533
@hamon3533 Год назад
Thank you so much i just started my vpn server. How can i restart the server without reinstalling?
@mahbodomidi3063
@mahbodomidi3063 Год назад
I done all of them but when I wanna enter admin panel I face incorrect login error even my password is correct, what is my username? it's not openvpn
@TheRuslanChanel
@TheRuslanChanel Год назад
Thanks, man! You helped me a lot
@TonyTeachesTech
@TonyTeachesTech Год назад
Glad I could help!
@homatv3709
@homatv3709 2 года назад
Hi Tony thanks for simplified and Nice tutorial, Can we have a tutorial for OPVPN open source one that can be accessed through internet. I have configured one but I can only access on Local Network.
@TonyTeachesTech
@TonyTeachesTech 2 года назад
I can add this to my list of video ideas
@angrynorseman5566
@angrynorseman5566 2 года назад
It would be great if this one was named correctly to reduce confusion like so many other versions of these videos. Everyone that demos the install of openvpn-as seems to just hijak the original project name vs using correct applications name.
@hpksingh3067
@hpksingh3067 Год назад
did you find any guide? i am looking to access openvpn server through internet like openvpn server is setup to another location on a linux system and i am not able to connect to it :(
@khartiss
@khartiss Год назад
i connected on the shell got the admin IP and password, although on the Web UI it does not connect, anyone please help?
@mohsenashouri7533
@mohsenashouri7533 Год назад
Hey Tony! Thanks for the step by step tutorial. I did everything as mentioned and created a connection. However, the connection is not stable and even when it is connected to the server nothing loads through the web, would you mind helping me?
@realmani3859
@realmani3859 10 месяцев назад
که اینطور
@thmgarnier
@thmgarnier Год назад
Hey Tony, i am getting this error when installing openvpn-as: The following packages have unmet dependencies: openvpn-as : Depends: libssl1.1 (>= 1.1.1) but it is not installable E: Unable to correct problems, you have held broken packages.
@CoachGarcia
@CoachGarcia 10 месяцев назад
Unfortunately I am having the same problems I see after 6 months you got no reply
@jokkmokk6238
@jokkmokk6238 7 месяцев назад
you aswell @@CoachGarcia
@rayreyes3922
@rayreyes3922 Год назад
Thank you so much for taking the time to teach us. I have a question, why is it that it grabs my private IP instead of the public IP?
@mhaggagegy
@mhaggagegy Год назад
I have faced the same problem. I couldn't find a solution.
@coding3617
@coding3617 9 месяцев назад
@Tony Please help
@user-zp9cm4by4d
@user-zp9cm4by4d 2 года назад
Thanks you, clear and easy explanation
@TonyTeachesTech
@TonyTeachesTech 2 года назад
You're welcome!
@PreetBinning
@PreetBinning Год назад
Great Video. Thanks!
@TonyTeachesTech
@TonyTeachesTech Год назад
Sure thing ;)
@endeshaw1000
@endeshaw1000 3 месяца назад
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?
@Fireflierification
@Fireflierification 2 года назад
Great video! I am puzzled though how it works so effortlessly for you.. I am able to get the server up and running, access it remotely by my public WAN IP with portforwarding and download the OpenVPN Connect client. This is where the fun stops... Can't connect to the Access Server from my remote machine where I installed the client... I am running the Access Server on an Ubuntu Server 20.04 in VMware pro. If you or anyone else has a solution to this it would be greatly appreciated. I wanna use this badly for my final exam project.
@TonyTeachesTech
@TonyTeachesTech 2 года назад
Not sure why it's not working for you as it did for me??
@RINEGANALQUIMISTA
@RINEGANALQUIMISTA Месяц назад
The video was excellent, BUT it does not apply to servers at home, because everything comes out as localhost ip
@rayoseldev819
@rayoseldev819 Год назад
min 3:22 apeear private ip not public :S where can i change it? :S
@Shredzter
@Shredzter Год назад
Can I do this with Kali or is this Ubuntu exclusive?
@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.
@pwchan7443
@pwchan7443 3 года назад
how about OpenVPN Community edition? cuz i dont see so much about it from google or youtube. most likely openvpn AS edition only(like what u did in the video)
@TonyTeachesTech
@TonyTeachesTech 2 года назад
Yeah I would think similar steps
@FreePizza007
@FreePizza007 4 месяца назад
And split tunnels?
@DaOnlyOppYouFear.
@DaOnlyOppYouFear. Год назад
Can someone help me setup centos 7 I have a ovh
@wuliuxiansheng1605
@wuliuxiansheng1605 Год назад
I really exited that it worked when I followed what you did
@TonyTeachesTech
@TonyTeachesTech Год назад
It's a good feeling :)
@vikrammalkan4695
@vikrammalkan4695 Месяц назад
I love your video.
Далее
Иран и Израиль. Вот и всё
19:43
Просмотров 1,5 млн
Build Your Own VPN | Free VPN
22:19
Просмотров 36 тыс.
JPEG is Dying - And that's a bad thing
8:09
Просмотров 78 тыс.
100+ Linux Things you Need to Know
12:23
Просмотров 941 тыс.
60 Linux Commands you NEED to know (in 10 minutes)
10:50
We Finally Did it Properly - "Linux" Whonnock Upgrade
21:07
Why VPNs are a WASTE of Your Money (usually…)
14:40
Build your OWN WireGuard VPN! Here's how
12:21
Просмотров 327 тыс.
Create your own VPN server with WireGuard in Docker
24:38