Hi,
In Ubuntu 18.04 with LXD 4.9 (snap version), how can I see the firewalls rules associated with lxd?
Iptables is not showing anything related with lxd:
$ sudo iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
$ sudo iptables -t nat -L -n
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
There must be rules because the containers in lxdbr0 network have an internet connection.
Looking at /var/snap/lxd/common/lxd/logs/lxd.log I can see a line with
“Firewall loaded driver “nftables””
in previous versions of lxd I could see the rules with iptables -L
Thanks