Everthing is working, lets wrap up:
In
On your Proxmox host do:
Now start the container and install Mullvad:
Mullvad should now be working:
But there is a catch, pve seems to have trouble reaching unified cgroupe now:
In
/etc/pve/lxc/{{ VMID }}.conf
add:
Code:
lxc.mount.entry: /dev/net dev/net none bind,create=dir
lxc.mount.entry: /tmp/net-cls-v1 tmp/net-cls-v1 none bind,create=dir
On your Proxmox host do:
Code:
script=/root/pepare-mullvad-lxc.sh
servicename=pepare-mullvad-lxc
cat > $script <<EOF
#!/usr/bin/env bash
chown 100000:100000 /dev/net/tun
mkdir -p /tmp/net-cls-v1
mount -t cgroup -o net_cls none /tmp/net-cls-v1
chown -R 100000:100000 /tmp/net-cls-v1
EOF
chmod +x $script
cat > /etc/systemd/system/$servicename.service <<EOF
[Service]
ExecStart=$script
[Install]
WantedBy=default.target
EOF
systemctl enable $servicename
systemctl start $servicename
Now start the container and install Mullvad:
Code:
curl -sSL https://mullvad.net/download/app/deb/latest-beta/ --output /tmp/mullvad.deb
sudo apt install /tmp/mullvad.deb -y
Mullvad should now be working:
Code:
$ mullvad account login 1234567890
$ mullvad connect
$ mullvad status
Connected to se4-wireguard in Malmö, Sweden
$ curl https://am.i.mullvad.net/connected
You are connected to Mullvad (server se4-wireguard). Your IP address is 193.138.218.160
But there is a catch, pve seems to have trouble reaching unified cgroupe now:
can't open '/sys/fs/cgroup/memory/lxc/XXX/ns/memory.stat' - No such file or directory (500)
Last edited: