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!!
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!!!!!!!
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).
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
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.
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.
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.
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 ?
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.
Hi Tony, I have "Ubuntu 22.04.2 LTS" and I got this error on installation time: 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.
This probably a dumb question: But if i host an Ubuntu server at home as Access server using Openvpn, do i need to config the router (such as Enable VPN or Forward port) so i can ssh to the server remotely?
No you need a reverse proxy to access it from the outside. I recommend Apache, but it might take you a while to configure it right. Good Luck if you are still intersted! :)
@@thegerman1239 Thank u for the answer, after make some searching I decided to go for the Tailscale and got exactly what I need without any complicated configuration:))
I'm trying to connect to Debian server from a Centos client. Once I enter the credential to connect, it's not as straight forward like the Mac. It's asking for more configuration. Is there a configuration file I should use and if yes, what command should I invoke? Thanks
They're using a VPS. If you're using your own server, you'll need to take care of the routing/networking bit as well in order to be able to access it remotely
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.
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.
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?
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 :(
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?
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.
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?
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.
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?
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?
Can u help me i have a problem when i install openvpn i can acces to the login page but when i type the command openvpn passwd it says that the use doesn't exist
i have got the solution just getting to the directory /usr/local/openvpn_as/scripts/ and using command ./sacli --user openvpn --new_pass 123 SetLocalPassword
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.
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?
Thanks for the Tut, but I'm having issues connecting. For some reasons unknown to me, after running the OpenVPN installer, the IP always default to my ubuntu private IP instead of the public IP, and it doesn't open the OpenVPN admin page with the private IP but when I put the public IP, it opens the admin UI. Same thing is happening on the OpenVPN client, the IP is also default to the private IP. Is this normal? Is the IP supposed to be the private IP? If yes, why then does it refused connection. I have tried this using Oracle Cloud always free tier and also tried this on Amazon AWS. Both having same issues. Please your assistance is appreciated. Sorry for the long note 😊
@@TonyTeachesTech It still refuse to connect on the client app. But on AWS, I had to go through their app section then install it through there and it doesn't default to the private IP on the client side which allows it to connect. Anyways thanks alot for your tutorials.
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.
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.
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 :(
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
I get an error at the wget line "apt-key is deprecated". E: this command can only be used by root. Also, I get Access denied at the echo "deb..." line as well
Thanks Tony I did it. For newer versions you don't set a password. Also in my server passwd openvpn does not work it says openvpn user does not exist in my linux. Nowadays passwords are created automatically by the server. Once you set it up, server assigns a password. If you happen to miss it, to recover that password, simply type cat /usr/local/openvpn_as/init.log This will give your login password like To login please use the "openvpn" account with "somPass-SLDJKSLFj235" password
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?
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!
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
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.
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)
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.
This is good from a local / lab point of view, but this is no good as a means to connect to you network from somewhere else... What you have implies a static ip address.. but most vpn setups such as this will require a DDNS setup in order to connect a vpn
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 .
*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
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"
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!!
Happy to help you out!
@@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! ❤
@@TonyTeachesTech you are awesome, you have basically every tutorial on every piece of tech.
Where did you found his email I am trying to contact him thanks
Yo thank you so much for making this shit, saved my ass so much money.@@TonyTeachesTech
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!!!!!!!
You're welcome Eric!
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).
Paul, I think I might love you. Thanks
Hero of the people
I really owe you one dude. After hours trying by other guys yours worked ! You won a new subscriber.
Thanks for the sub!
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
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.
Glad it helped!
Thanks!
You bet!
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.
Short, sweet and to the point. SIMPLE
:)
The only guide thats actually beginner friendly
very much THANK you!
i spent two day reading forums, and couldn't look find a good solution.
i'm just learning linux system
You're welcome!
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.
Unfortunately I am having the same problems I see after 6 months you got no reply
you aswell
@@CoachGarcia
check if you are using the 20.04 version of ubuntu , i was using the 22.0 version and it didnt worked, but i updated and it did
Man. I really appreciate your tutorial. Learned a lot and it makes managing my plex server so much easier.
Great video! Bold to share your IP like that, but I like bold 👍
yo, this was a great video, very easy to follow along. Thanks! subbed btw
Thanks!
if you get this error: "Depends: libssl1.1 (>= 1.1.1) but it is not installable".... change the name "focal" to the name of your ubuntu version
My fucking xhai! Fixed it by replacing focal with noble (noble is ubuntu 24.04). Easy ass fix.
Great Video. Thanks Tony😊👍
Brilliant content straight to the point, lean bacon! Love it!🤓
Thanks!!
amazing Tony your videos are great appreciate you
Thank you very much
@@TonyTeachesTech it is using my private ip address so i cant access it how can i fix it?
thanks for this ! did this right after Canadian bill c-11 (censorship) passed on my American vps
Amazing! Thanks, Tony
You're welcome!
thank you, but this is a very difficult way. I just installed hide expert vpn and everything works)
++
Thank you for this. Much appreciated.
Thank you Tony, that was useful and very clear :)
Very welcome
I really exited that it worked when I followed what you did
It's a good feeling :)
Very useful. Thanks 👍🏽.
thanks man, it was great :)
You're welcome!
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 ?
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.
hi, i changed the openvpn_as user password but the web GUI says the credentials are invalid, any suggestions? Thank you.
@@derfinlay5854 any fix?
@@rogedgames yes. Run sudo ovpn-init
@@derfinlay5854 This was the solution I was looking for, Thank you!!!
@@biggiantcookie sure
Hi Tony,
I have "Ubuntu 22.04.2 LTS" and I got this error on installation time:
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.
same here
same
@@kiril135790 use ubuntu 20 and 22 version have this error
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!
Glad it helped!
Great Video. Thanks!
Sure thing ;)
This probably a dumb question: But if i host an Ubuntu server at home as Access server using Openvpn, do i need to config the router (such as Enable VPN or Forward port) so i can ssh to the server remotely?
No you need a reverse proxy to access it from the outside. I recommend Apache, but it might take you a while to configure it right. Good Luck if you are still intersted! :)
@@thegerman1239 Thank u for the answer, after make some searching I decided to go for the Tailscale and got exactly what I need without any complicated configuration:))
This great and I like your other videos to I just subbed
Thanks :)
After running apt install openvpn-as it doesnt show me a link after installing
Thanks, man! You helped me a lot
Glad I could help!
Just a quick question.Can i use this to access the rds in the private subnet ?
min 3:22 apeear private ip not public :S where can i change it? :S
Hi, Tony can you make the same tutorial with the OpenVPN community edition where we have no limitation of the connections(licenses). Thank you
I'm trying to connect to Debian server from a Centos client. Once I enter the credential to connect, it's not as straight forward like the Mac. It's asking for more configuration. Is there a configuration file I should use and if yes, what command should I invoke? Thanks
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?
They're using a VPS. If you're using your own server, you'll need to take care of the routing/networking bit as well in order to be able to access it remotely
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.
Hi Tony , Please can you do a video about how to automate the openVpn installation using Ansible playbook
can you make a tutorial similar to this but for WireGuard
Something I can look into
Great video!
Thanks
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.
No sorry I don't have a video on that topic
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?
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 :(
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?
Awesome Brother..give me a suggestion or a video how can i forword my port using openvpn hosted on my vps..please
Thanks triple T. 💪🏿
Hi Tony. Do you know how to set it up for Remote access?
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.
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?
my problem with this is that access server is paid i want to manage my vpn completely opensource allowing me to have multiple users
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.
ich auch bro;)
@@youtubeasmrchannel don’t worry. Its resolved
@@atharvmukane4768 bro can you write how you did it?
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?
Do you have any videos showing how to limit users to say just 1 server on the network?
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?
Thanks @tony😊😊
Can I use these installation steps in Ubuntu 22.04.2 LTS ?
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?
I have faced the same problem. I couldn't find a solution.
@Tony Please help
With the VPN active is all data passed through the VPN now encrypted?
Hi Tony, can you restrict access to your webserver only to pc connected to vpn server ?
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 ?
Can u help me i have a problem when i install openvpn i can acces to the login page but when i type the command openvpn passwd it says that the use doesn't exist
i have got the solution just getting to the directory /usr/local/openvpn_as/scripts/ and using command ./sacli --user openvpn --new_pass 123 SetLocalPassword
Happy you figured it out
Thanks you, clear and easy explanation
You're welcome!
Dont you need to implement policy and routing on the server? Like what you are allowed to access etc.
hello, thanks for the video, i wanna ask where I can find that address that u inserted after @ thanks in advance
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.
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?
Hi, how to install SSL for openvpn access server? by default, the connect to admin and client UI is not secured
Thanks for the Tut, but I'm having issues connecting. For some reasons unknown to me, after running the OpenVPN installer, the IP always default to my ubuntu private IP instead of the public IP, and it doesn't open the OpenVPN admin page with the private IP but when I put the public IP, it opens the admin UI. Same thing is happening on the OpenVPN client, the IP is also default to the private IP. Is this normal? Is the IP supposed to be the private IP? If yes, why then does it refused connection. I have tried this using Oracle Cloud always free tier and also tried this on Amazon AWS. Both having same issues. Please your assistance is appreciated. Sorry for the long note 😊
OpenVPN should be using your public IP. That is the normal behavior. Any update on your end?
@@TonyTeachesTech It still refuse to connect on the client app. But on AWS, I had to go through their app section then install it through there and it doesn't default to the private IP on the client side which allows it to connect. Anyways thanks alot for your tutorials.
if i want to access some specific domain through OpenVPN then?
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.
I can add this to my list of video ideas
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.
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 :(
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
How come you didnt need to port foward port 1194 to be able connect on your open vpn ? Usually u need to do this
I get an error at the wget line "apt-key is deprecated". E: this command can only be used by root. Also, I get Access denied at the echo "deb..." line as well
same for me as well, did you find a solution?
same, not sure what to do
Thanks Tony I did it. For newer versions you don't set a password. Also in my server passwd openvpn does not work it says openvpn user does not exist in my linux.
Nowadays passwords are created automatically by the server. Once you set it up, server assigns a password. If you happen to miss it, to recover that password, simply type
cat /usr/local/openvpn_as/init.log
This will give your login password like
To login please use the "openvpn" account with "somPass-SLDJKSLFj235" password
Thanks a lot bro.
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?
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!
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
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.
Do a video on installing open VPN without access server
Can I do this with Kali or is this Ubuntu exclusive?
After got url to access openvpn on browser it's not opening for me, ll traffic is opened , can you suggest here ?
Run "ovpn-init" if you are having issues with the username / password.
When you connect to your openvpn server can you access local ip addresses inside LAN?
I believe so
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
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)
Yeah I would think similar steps
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.
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.
Great video! :) Just to let you know "apt-key add -" does not work on ubuntu 22.04
yeh thats where i ran into some issues too lol
I love your video.
Good tutorial. Works for windows and macbook, but clicking on ubuntu redirects to some article, instead of downloading settings.
Thank you so much i just started my vpn server. How can i restart the server without reinstalling?
This is good from a local / lab point of view, but this is no good as a means to connect to you network from somewhere else... What you have implies a static ip address.. but most vpn setups such as this will require a DDNS setup in order to connect a vpn
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 .
thank mr Tony.I have problem can you help me?
*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
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"