I have an issue with my wireguard tunnel. Im trying to set it up in a routed lxc with the lan intact. The containers networking works fine but im showing the config so you can see.
The issue is that i cant get the tunnel and the lan to work at the same time. If i set allowed ips to 0.0.0.0/0 the tunnel works fine. But the lan is gone. I tried different versions of allowed ips like “https://www.reddit.com/r/WireGuard/comments/awudup/how_to_exclude_local_network_packets_from/ehp7euo/?utm_source=share&utm_medium=web2x&context=3”
I also tried some others i found but nothing. When im using the one above i get a handshake and lan works. But no internet. Cant ping anything outside my network. ufw is disabled in the container. ssh also stops working on this one, but i can ping my host.
Im using the wg-quick. Any help?
- to: 0.0.0.0/0
netstat -rn with wireguard off.
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 169.254.0.1 0.0.0.0 UG 0 0 0 eth0