Hey everyone,
I've been trying to figure this out for the better part of the day. I've got a commercial VPN subscription and I want to have my containers send their traffic through wireguard which I've set up on the host. I get an error when running wg-quick up wg0:
I added the following lines to the container's configuration:
Any idea what the problem could be here?
Thanks
I've been trying to figure this out for the better part of the day. I've got a commercial VPN subscription and I want to have my containers send their traffic through wireguard which I've set up on the host. I get an error when running wg-quick up wg0:
Truth be told, I don't know how to fix the issue so I just manually set the DNS in the Proxmox web UI to match that of the config file I got from the commercial VPN:/etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a symbolic link to /run/resolvconf/resolv.conf
If I do it that way, it works fine:[Interface]
PrivateKey = <private key>
Address = <address>
DNS = <dns address>
[Peer]
PublicKey = <public key>
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = <endpoint>
curl ifconfig.io/all shows that I have the right IP, and dig +trace google.com shows that the DNS specified in the above file is used by the host. The problem I get is when I try to pass this VPN to the container. I have internet access (as I can ping 8.8.8.8) but the DNS fails to resolve anything (I can't ping google.com). If I manually set an external DNS through the Proxmox web UI, then it shows that the host's VPN address is being used by the container and I can access the internet as usual (pinging 8.8.8.8 and google.com both work). Trying to manually set the DNS of the container to match that of the host doesn't work (either through manually typing it or leaving the field blank) and running the wireguard binary within the container doesn't work either.I added the following lines to the container's configuration:
and ranlxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net dev/net none bind,create=dir
chown 100000:100000 /dev/net/tun as described on the wiki. I tried to follow a couple more threads but to no avail. Adding net.ipv4.ip_forward=1 to the guest's /etc/sysctl.conf also had no effect.Any idea what the problem could be here?
Thanks
Last edited: