I have tried both default bridged lxdbr0 and routed networking via the wifi wlp39s0 and none is working. Both bridged and routed containers can connect to external network but the moment wireguard/tailscale is activated, the containers are cut off from the network.
Searched the forum but all of the past posts dealt with wireguard within containers. My issue is I have wireguard active on the host and would like all packets from containers to be auto routed to the wireguard tunnel.
Thanks for any pointers.
Version: LXD 4.19
Linux: Ubuntu 20.04
Kernel: 5.11.0-37-generic
ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: wlp39s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 5c:80:b6:42:f9:14 brd ff:ff:ff:ff:ff:ff
inet 192.168.31.193/24 brd 192.168.31.255 scope global dynamic noprefixroute wlp39s0
valid_lft 36059sec preferred_lft 36059sec
inet6 fe80::7419:4982:6911:ea60/64 scope link noprefixroute
valid_lft forever preferred_lft forever
16: lxdbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 00:16:3e:df:b9:06 brd ff:ff:ff:ff:ff:ff
inet 10.78.73.1/24 scope global lxdbr0
valid_lft forever preferred_lft forever
inet6 fe80::216:3eff:fedf:b906/64 scope link
valid_lft forever preferred_lft forever
38: veth6b6e2ca4@if2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether fe:49:2a:49:d5:4c brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 169.254.0.1/32 scope global veth6b6e2ca4
valid_lft forever preferred_lft forever
inet6 fe80::fc49:2aff:fe49:d54c/64 scope link
valid_lft forever preferred_lft forever
41: tailscale0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1280 qdisc fq_codel state UNKNOWN group default qlen 500
link/none
inet 100.64.70.52/32 scope global tailscale0
valid_lft forever preferred_lft forever
inet6 fd7a:115c:a1e0:ab12:4843:cd96:6240:4634/128 scope global
valid_lft forever preferred_lft forever
inet6 fe80::3eca:a46d:171d:a10b/64 scope link stable-privacy
valid_lft forever preferred_lft forever
ip route
default via 192.168.31.1 dev wlp39s0 proto dhcp metric 600
10.78.73.0/24 dev lxdbr0 proto kernel scope link src 10.78.73.1 linkdown
169.254.0.0/16 dev tailscale0 scope link metric 1000
192.168.31.0/24 dev wlp39s0 proto kernel scope link src 192.168.31.193 metric 600
192.168.31.233 dev veth6b6e2ca4 scope link
ip tables (ts-* rules are added by tailscale which is a wiregaurd wrapper)
Chain INPUT (policy ACCEPT)
target prot opt source destination
ts-input all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere icmp parameter-problem /* generated for LXD network lxdbr0 */
ACCEPT icmp -- anywhere anywhere icmp time-exceeded /* generated for LXD network lxdbr0 */
ACCEPT icmp -- anywhere anywhere icmp destination-unreachable /* generated for LXD network lxdbr0 */
ACCEPT tcp -- anywhere anywhere tcp dpt:domain /* generated for LXD network lxdbr0 */
ACCEPT udp -- anywhere anywhere udp dpt:domain /* generated for LXD network lxdbr0 */
ACCEPT udp -- anywhere anywhere udp dpt:bootps /* generated for LXD network lxdbr0 */
ACCEPT udp -- anywhere anywhere multiport dports mdns
ACCEPT tcp -- anywhere anywhere multiport dports 4000
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ts-forward all -- anywhere anywhere
ACCEPT all -- anywhere anywhere /* generated for LXD network lxdbr0 */
ACCEPT all -- anywhere anywhere /* generated for LXD network lxdbr0 */
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT icmp -- anywhere anywhere icmp parameter-problem /* generated for LXD network lxdbr0 */
ACCEPT icmp -- anywhere anywhere icmp time-exceeded /* generated for LXD network lxdbr0 */
ACCEPT icmp -- anywhere anywhere icmp destination-unreachable /* generated for LXD network lxdbr0 */
ACCEPT tcp -- anywhere anywhere tcp spt:domain /* generated for LXD network lxdbr0 */
ACCEPT udp -- anywhere anywhere udp spt:domain /* generated for LXD network lxdbr0 */
ACCEPT udp -- anywhere anywhere udp spt:bootps /* generated for LXD network lxdbr0 */
Chain ts-forward (1 references)
target prot opt source destination
MARK all -- anywhere anywhere MARK set 0x40000
ACCEPT all -- anywhere anywhere mark match 0x40000
DROP all -- 100.64.0.0/10 anywhere
ACCEPT all -- anywhere anywhere
Chain ts-input (1 references)
target prot opt source destination
ACCEPT all -- diego-home-amd anywhere
RETURN all -- 100.115.92.0/23 anywhere
DROP all -- 100.64.0.0/10 anywhere