Use Private Internet Access with OpenVPN in a Proxmox Container

Поділитися
Вставка
  • Опубліковано 4 лис 2024

КОМЕНТАРІ • 56

  • @NicholasWalsh
    @NicholasWalsh 2 роки тому +9

    Thanks for sharing but I wish you would have included how you setup your PIA Container! The link to the video by craft computing shows him setting this up as a VM not a CT.

  • @jjsmitto
    @jjsmitto 2 роки тому +1

    Fantastic! Super helpful video. You sorted out a few of my problems and now everything is working great!

  • @joshanders
    @joshanders 2 роки тому

    Thanks for the video and Lets go Blues!

    • @LoResDIY
      @LoResDIY  2 роки тому +1

      You Bet
      Lets Go Blues!!!

  • @Henri2492
    @Henri2492 2 роки тому +15

    Just a quick note:
    With the latest ProxMox 7.x version the line "lxc.cgroup.devices.allow: c 10:200 rwm" has to be changed to "lxc.cgroup2.devices.allow: c 10:200 rwm" so "cgroup" changes to "cgroup2", because of the new default cgroup version in PVE7.x.
    It took me a complete evening to figure that one out.
    Without the change to "cgroup2" the /dev/net/tun device is created but has no permission to be used from within the lxc-container since the wrong group is used and thus openvpn throws errors and does not connect to PIA. The changed line fixes this.

    • @LoResDIY
      @LoResDIY  2 роки тому

      Thanks for sharing

    • @wahwuhRAW
      @wahwuhRAW 2 роки тому +3

      Thank you so much kind sir. Your input helped someone!

    • @Kryotek7
      @Kryotek7 2 роки тому

      Thanks, you helped someone else out

    • @autoentropy
      @autoentropy 7 місяців тому

      how about proxmox 8?

    • @mrhashbrowns
      @mrhashbrowns 3 місяці тому

      @@autoentropy I know its been 4 months but for Proxmox 8 use cgroup2 as well.

  • @JeffOwens
    @JeffOwens 3 роки тому

    Thanks. I just found your channel and subscribed. Setting up my homelab and a new Plex server instead of doing thing manually. All of this will help.

    • @LoResDIY
      @LoResDIY  2 роки тому +1

      Thanks for the sub!

  • @MarcelodeSouzaSilva
    @MarcelodeSouzaSilva Рік тому

    I used the tutorial and everything works perfectly. Thanks!
    But I'm wondering, is it possible to use this same container to make external access to my network?

  • @johanneshepperle8390
    @johanneshepperle8390 2 роки тому

    Great video and exactly what I was looking for, a simple vpn gateway. Also works with unraid in a VM

  • @nihoniumog5185
    @nihoniumog5185 5 місяців тому

    hi, i've tried your setup, on the vpn provider lxc container, it worked. the ip changed and all. however when i try to use it on another container, via the gateway, it doesn't work. the curl command just not responding to anything.

  • @IvoPereira
    @IvoPereira 3 роки тому

    Loved this! Going to make it too

  • @AburaGamer
    @AburaGamer Рік тому

    Downloading movies/series/music or software isn't illegal. The uploading is, in most countries, what is not allowed

  • @markdickey7807
    @markdickey7807 3 місяці тому

    if i get this working - how do i have another container connect through this?

  • @JoeLaGreca
    @JoeLaGreca Рік тому

    This video was great! Thank you. I wondering if anyone knows how to accomplish this same thing, but using a docker container?

  • @hajunkie5820
    @hajunkie5820 2 роки тому +2

    I set this up and the container is behind the VPN and showing an IP that is given by PIA VPN. I cant get my client machines to connect to the container and get internet access. I have put the IP of the VpN as my gateway. I am using proxmox7 did the steps and built 3 containers with same issue. does anyone have any tips? I was trying to use a Debian 11 template with no success. I used a Debian 10 template and it is working now.

    • @p20ph37
      @p20ph37 2 роки тому +3

      I'm having the same issue. He glossed over the "just set the gateway and it works". This doesn't appear to be the case for me either.

    • @mintypockets8261
      @mintypockets8261 Рік тому

      @@p20ph37 Did anyone figure this - I can get the VPN to work, I'm unsure what the gateway address is. I've tried the IP of the VPN container, I've tried my gateway - all with no joy.

    • @mintypockets8261
      @mintypockets8261 Рік тому

      if you look @3:31 in the video you can see the gateway of the server -it's just the IP of the container (.72). That said I've tried this and the other containers hang when I try to check the IP address (routing it via my OpenVPN).

  • @ahlooii5432
    @ahlooii5432 3 роки тому

    Dear Lo-Res DIY, i would like to first thank you for all the content! It's very helpful and great! However there's one culprit i faces. If i were to first deployed my VPN first and then deploy the iptables rules, it would worked.
    However, i dont understand that the systemd service we use, it's deploying the firewall first then the vpn. Which to me is abit confusing because my LXC simply unable connect to the vpn because iptables will block if it's not a tunneled VPN connection. But how can it be possible to connect to VPN when the first rule is deploying the iptables, and it blocks all connection that is not already a vpn?

    • @LoResDIY
      @LoResDIY  3 роки тому

      I believe you will need to turn off the firewall for the container.
      Let me know if that works.

  • @aaro_n
    @aaro_n 3 роки тому

    Now I'm curious how you have a dark proxmox theme. My r610 is dang near identical to yours at this point because of your videos

    • @LoResDIY
      @LoResDIY  3 роки тому +2

      Follow this link and follow the instructions. github.com/Weilbyte/PVEDiscordDark
      It's quick and simple and I'm glad the video's are helping

  • @aHondaAccord
    @aHondaAccord Рік тому

    what if there are no existing config files in /etc/pve/lxc even though I have running vms?

    • @jewlouds
      @jewlouds Рік тому

      there wont be anytihng in the lxc folder unless you have containers. a VM is not a container.

  • @MatthewCrofut
    @MatthewCrofut 3 роки тому +1

    does it need to be a privileged container?

    • @LoResDIY
      @LoResDIY  3 роки тому

      yes mine is a privileged container

  • @doc_ineeda_win5834
    @doc_ineeda_win5834 2 роки тому

    pia takes a paid subscribtion?

  • @monicahernandez3216
    @monicahernandez3216 Рік тому

    hey im getting the following error when try to connect to the vpn: " Temporary failure in name" this is only happening after i run the iptables command, before that i can connect to the vpn without issue, anyone can help me?