Wireguard LXC: no internet until ping google.com?

HerzogVonWiesel

New Member
Nov 22, 2023
9
0
1
Hey everyone! I'm having quite the wild issue. I've created an LXC for Wireguard, for which I have also added the needed lines in the config of the LXC in itself as well as on the host, as per the OpenVPN installation guide.

However, it seems I can't connect to it; what's more, in contrast to my other LXCs, when I try to do a simple "ping google.com" in its console, it doesn't work, it times out with an error. If I try it again, it pings google, and on top of that I can connect to Wireguard from my phone! Until a few hours later, when it doesn't have internet anymore, and I need to ping anything again for it to get a connection.

What's happening here? Does anyone have an idea of how to fix this?

Thank you so much in advance!