OpenVPN install on Proxmox LXC - VPN tutorial

  Рет қаралды 21,919

BlueMonkey 4n6

BlueMonkey 4n6

Күн бұрын

Пікірлер: 58
@BrentHaub
@BrentHaub 8 ай бұрын
Great stuff! Got it working like a charm. Came here after failing to get the native VPN connection working on my Netgear Nighthawk. Using proxmox + openVPN on an Ubuntu CT just works with your method.
@BlueMonkey4n6
@BlueMonkey4n6 8 ай бұрын
Glad I could help
@huntermcclovio4517
@huntermcclovio4517 8 ай бұрын
Thank you for taking the time and explain this tutorial in great detail. I am new to proxmox and vpn. I learned something new today and I now have a VPN!! 😀🥰
@BlueMonkey4n6
@BlueMonkey4n6 8 ай бұрын
Awesome, glad the video helped.
@zach7269
@zach7269 8 ай бұрын
Thanks for taking the time to make this. Explaining each linux command would be helpful. Maybe that would be too long of a video for most audience.
@BlueMonkey4n6
@BlueMonkey4n6 8 ай бұрын
Good suggestion, I will see about explaining each command in the future and balance it with video length
@Whatisthatcrypto
@Whatisthatcrypto 5 ай бұрын
Help please. I got up to 07:20 no problems but try to boot up the container and it fails. I have this on an R710 server with CT setup of 2 cores + 2048 RAM + 8 GB SSD. Error log says mount_entry: 2213 No such file or directory - Failed to mount "/dev/net" on "/usr/lib/x86_64-linux-gnu/lxc/rootfs/dev/net" lxc_setup: 3915 Failed to setup mount entries do_start: 1273 Failed to setup container "201" sync_wait: 34 An error occurred in another process (expected sequence number 3) __lxc_start: 2114 Failed to spawn container "201" TASK ERROR: startup for container '201' failed I have 6 CTs and 8 VMs runnable without issue so I closed them all down and the VPM CT still wont fire up. Any help appreciated.
@BlueMonkey4n6
@BlueMonkey4n6 5 ай бұрын
Did you enable the VPN inside the unprivileged container? On your host machine, you can do: # chown 100000:100000 /dev/net/tun
@kbbenton7792
@kbbenton7792 6 ай бұрын
I like this better than the previous video I watched because it uses Ubuntu 22.04 instead of Ubuntu 18.04. Works great and is on a still-supported OS! 🙂
@BlueMonkey4n6
@BlueMonkey4n6 6 ай бұрын
Thanks for watching and for the positive comment!
@Oliviero-sb9ko
@Oliviero-sb9ko 5 ай бұрын
Thx mate you pointed me to well working solution, i am using proxmox, but created light ubuntu server as VM just for this, installed openvpn, trasnfer file and its perfectly working in my mac. From there i can go with RDP etc. go to my private machine when i am at work or anywhere or to my homelab. IT works its fast as my Download upload is 1/1G with static ip. Also i have added a bit of securuty layer about downloading stuff so it drops when its sus. I am running multiple servers at my home lab for fun and for education - also to improve myself as IT admin in work. Thank you for pointing me good direction :) Enjoy your day and keep those tech vids, i love em :) 🖥🖥🖥🖥🖥🖥🖥🖥🖥🖥🖥🖥🖥
@BlueMonkey4n6
@BlueMonkey4n6 4 ай бұрын
Awesome, keep doing what you are doing. There is so many things one can do with a home lab. And it so much fun!
@elefteriosmouratidis
@elefteriosmouratidis Ай бұрын
maybe i missed it but how do you copy the ovpn file from the lxc container?
@BlueMonkey4n6
@BlueMonkey4n6 26 күн бұрын
ah, that's a good question and I may have glossed over that. In my case, I setup an internal share with using Snapdrop (it's like AirDrop but for all system, not just Apple machines). But you could very well have used a thumb drive to transfer the keyfiles from the LXC container to other machines.
@ErezMaruani
@ErezMaruani 8 ай бұрын
the system does not have the tun device available. tun needs to be enabled before running this installer. can help please
@BlueMonkey4n6
@BlueMonkey4n6 7 ай бұрын
did you edit the .conf file for that LXC to add the /dev/net/tun device?
@skylerhilborn6892
@skylerhilborn6892 6 ай бұрын
​​@@BlueMonkey4n6 I am having the same issue, followed all steps up to this point and getting the same message after running bash ./openvpn-install.sh command Edit: couple typos when I updated the conf file.
@DonJackson-y7g
@DonJackson-y7g 6 ай бұрын
where are *.ovpn files located on proxmox lxc and how do i copy file to use on windows10 client?
@BlueMonkey4n6
@BlueMonkey4n6 5 ай бұрын
The .ovpn files are located in "/root/" of the OpenVPN where you should run the script openvpn-install.sh. To copy the file to your windows client, you can transfer the file via scp or sneaker net if by copying the file to a USB drive.
@DonJackson-y7g
@DonJackson-y7g 5 ай бұрын
@@BlueMonkey4n6 thanks for all of your help I appreciate your response very much
@hendmele
@hendmele Ай бұрын
You mention that you would prepare a video to address the assumption that public ip is static. Is that video out or still on the pipeline?
@BlueMonkey4n6
@BlueMonkey4n6 Ай бұрын
That video is still in the works. Been distracted with other things. Thanks for asking, i will bump it up in priority
@hendmele
@hendmele Ай бұрын
@BlueMonkey4n6 great stuff, thank you!
@vijaydembla2447
@vijaydembla2447 10 ай бұрын
Thanks for putting this together, and explaining it step by step. Unfortunately, since i have moved to pfsense, my vpn files are taking the local address, and not the wan ip address. And therefore, it doesn't work for me. To add more detail. The step right after when you execute the bash script, it doesn't prompt me for the option "This servere is behind NAT...". and When i create an opvn file, it has the containers local ip address listed on the top. Would you please be able to help? Thanks in advance
@moonfall84
@moonfall84 4 ай бұрын
I'm not that expert as you - how did you save the .ovpn file to be able to transfer it later on via Snapdrop? This part is not showed :( I'm using Windows based PC not Mac)
@moonfall84
@moonfall84 4 ай бұрын
OK I just copied the data to new notepad file
@BlueMonkey4n6
@BlueMonkey4n6 4 ай бұрын
Yeah that was pretty much what i did
@FRVN3K
@FRVN3K 5 ай бұрын
How can i create a more config files for more devices?
@BlueMonkey4n6
@BlueMonkey4n6 5 ай бұрын
you just run the script "openvpn-install.sh" again for other client machines. It will create more private-key and public-cert-request files.
@maomao6679
@maomao6679 7 ай бұрын
I've did pretty everything identically except the I used debian instead of ubuntu i don’t know if that's a big deal. But when I try, my vpn can connect, but cannot get the proper dns server when connected to the vpn, it gets 10.0.0.10 instead of the ip of my router... Help pls TwT. Ps: I use tunnelblick to connect to my vpn on a macbook
@NguyenCungHoaHien
@NguyenCungHoaHien 6 ай бұрын
Thanks for the video! I think this way of installation doesn't come with a WebUI for OpenVPN, yeah?
@BlueMonkey4n6
@BlueMonkey4n6 6 ай бұрын
Thats a good question, i am sure there is a WebUI to do this but I am a command line guy who likes to type and understand whats going on under the hood.
@michaelcooper5490
@michaelcooper5490 4 ай бұрын
Hey there, awesome job on the video. How do I create 2nd certificate for another client system/workstation? Thank you for your hard work really good job.
@BlueMonkey4n6
@BlueMonkey4n6 4 ай бұрын
Thanks for watching and for the support! To create additional certificates for other client systems, you just need to run the openvpn-install.sh script again and give a different name for the client. This will generate new keys. Your new client configuration files is available where you ran the script.
@KrisHoobergs
@KrisHoobergs Жыл бұрын
Great finally a video where my OpenVpn is working... except for some reason the performance is very bad and so not useful (talking B/S and KB/S). Do you have any idea what the reason could be?
@BlueMonkey4n6
@BlueMonkey4n6 Жыл бұрын
Great question. I believe there are many factors as to why performance is not so good. Two top reasons is encryption algorithm and CPU power. You could monitor the CPU usage to see how much of it is taken up when OpenVPN is doing its thing. And trying out a less taxing encryption algorithm may help in speed but you sacrifice security. You may also want to check on whether you have compression turned on, that would for sure slow things down on older processors
@gambeta1337
@gambeta1337 8 ай бұрын
11:30 you should've shown how to actually download that file to a computer so that you can send it to your iPhone.
@BlueMonkey4n6
@BlueMonkey4n6 8 ай бұрын
Ah, good point. I was so excited to get that file to my iPhone, I didnt explain clearly. I basically just copied that text from the terminal window from Proxmox and then pasted it to a TextEdit document on my Mac. Alternatively I could have transferred it using a NAS on my network.
@gambeta1337
@gambeta1337 8 ай бұрын
@@BlueMonkey4n6 Yup, that works as well. Was jsut something I noticed you didn't explain so that you can improve in further videos. I was able to do this by setting up a SCP connection
@BlueMonkey4n6
@BlueMonkey4n6 8 ай бұрын
@@gambeta1337 appreciate the useful feedback! scp is definitely another good way of doing it.
@Warroy_
@Warroy_ 10 ай бұрын
Thanks, works perfectly fine and learned more on proxmox
@BlueMonkey4n6
@BlueMonkey4n6 10 ай бұрын
You are welcome
@repairstudio4940
@repairstudio4940 8 ай бұрын
Liked and Subbed, is this as secure as CloudFlare and do I need a domain and all the jazz like Cloudflare?
@BlueMonkey4n6
@BlueMonkey4n6 8 ай бұрын
Thats a good question. Stay tuned to this channel as I am planning to do an episode about services that provide Dynamic DNS such as Cloudflare.
@jlgiorio
@jlgiorio Жыл бұрын
Great tut!! I wondering, can we setup a password for the user?
@BlueMonkey4n6
@BlueMonkey4n6 Жыл бұрын
Apparently you can although not recommended due to security. I have not tried it out myself but I'm going to look into it and maybe create video tutorial for the steps.
@jlgiorio
@jlgiorio Жыл бұрын
@@BlueMonkey4n6 I thought having a password would be safer. We have the certificates and you would still have to enter a password to connect. I'm going to do some tests here too. Post results here. Thank you and congratulations again for the videos!
@Hckr-ei2xj
@Hckr-ei2xj Жыл бұрын
thanks for this
@BlueMonkey4n6
@BlueMonkey4n6 Жыл бұрын
you are welcome. Thanks for watching and thanks for leaving a comment
@IGrowUP2023
@IGrowUP2023 5 ай бұрын
its give me error when i boot the container "bpf_device_cgroup_prepare: 3469 Invalid argument - Failed to parse device rule devices.allow==c 10:200 rwm mount_entry: 2262 Operation not permitted - Failed to mount "=/dev/net" on "/usr/lib/x86_64-linux-gnu/lxc/rootfs/dev/net" lxc_setup: 3915 Failed to setup mount entries do_start: 1273 Failed to setup container "101" sync_wait: 34 An error occurred in another process (expected sequence number 3) __lxc_start: 2114 Failed to spawn container "101" TASK ERROR: startup for container '101' failed"
@IGrowUP2023
@IGrowUP2023 5 ай бұрын
i have fixed it
@BlueMonkey4n6
@BlueMonkey4n6 5 ай бұрын
oh glad you fixed the problem. care to share how you fixed it?
How to Install OpenVPN server in a Proxmox Container
14:50
virtualize everything
Рет қаралды 10 М.
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
Don’t run Proxmox without these settings!
25:45
Christian Lempa
Рет қаралды 341 М.
Why VPNs are a WASTE of Your Money (usually…)
14:40
Cyberspatial
Рет қаралды 1,5 МЛН
You're running Pi-Hole wrong! Setting up your own Recursive DNS Server!
18:02
Plex on ProxMox Tutorial WITH nVidia Hardware Encoding
26:41
Craft Computing
Рет қаралды 233 М.
Virtualizing OPNsense on Proxmox as Your Primary Router
41:08
Home Network Guy
Рет қаралды 108 М.
Docker on Proxmox LXC 🚀 Zero Bloat and Pure Performance!
20:53
SimpleHomelab
Рет қаралды 74 М.
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН