Installing OpenVPN

Discussion in 'Proxmox VE: Installation and configuration' started by creaky, Feb 12, 2019.

Tags:
  1. creaky

    creaky New Member

    Joined:
    Oct 16, 2018
    Messages:
    15
    Likes Received:
    0
    Does anyone have a link to an up to date tutorial for installing OpenVPN on proxmox, I’ve found a couple but not been able to get them working.

    I want to be able to connect to proxmox and the vm’s remotely and for when downloading torrents.

    Is it best to run as a container or a vm? Also what’s the best OS for OpenVPN?
     
  2. sb-jw

    sb-jw Member

    Joined:
    Jan 23, 2018
    Messages:
    266
    Likes Received:
    23
    I would run a pfsense in a VM, so you are flexible and you do not have additional packets on the HV itself.
     
    creaky likes this.
  3. LnxBil

    LnxBil Well-Known Member

    Joined:
    Feb 21, 2015
    Messages:
    3,514
    Likes Received:
    315
    The LXC configuration in the forum still works:

    Code:
    lxc.cgroup.devices.allow: c 10:200 rwm
    lxc.hook.autodev: /path/to/hook/script
    
    With this hook script:

    Code:
    #!/bin/sh
    cd ${LXC_ROOTFS_MOUNT}/dev
    mkdir net
    mknod net/tun c 10 200
    chmod 0666 net/tun
    (can also be done completely inside of the configuration as a barely-readable one-liner.

    Alpine - small and easy:

    Code:
    root@openvpn ~ > df -PTh /
    Filesystem           Type            Size      Used Available Capacity Mounted on
    .../proxmox/subvol-1254-disk-1                 zfs            64.0M     12.9M     51.1M  20% /
    
     
    creaky likes this.
  4. creaky

    creaky New Member

    Joined:
    Oct 16, 2018
    Messages:
    15
    Likes Received:
    0
    Stupid question but which file does that edit need to be in?

    Also do you have a link to that config or is it in the wiki?
     
  5. LnxBil

    LnxBil Well-Known Member

    Joined:
    Feb 21, 2015
    Messages:
    3,514
    Likes Received:
    315
    The LX(C) container configuration file in

    Code:
    /etc/pve/lxc/<container-id>.conf
    I don't understand that question :-(
     
    creaky likes this.
  6. creaky

    creaky New Member

    Joined:
    Oct 16, 2018
    Messages:
    15
    Likes Received:
    0
    That was me being stupid, not sure what I meant either :)
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice