UFW blocking VM internet access (virt-manager)

Hey guys,

I’m trying to set up some VMs using virt-manager on Manjaro 24.02 but whenever UFW is enabled, the VMs lost internet access. The only valid solution seems to be appending “firewall_backend=iptables” to /etc/libvirt/network.conf

but that solution doesn’t work for me. I’ve got iptables installed and have nftables removed because they conflict and because UFW uses iptables.

Not sure what else to do and hate the idea of using VMs while ufw is disabled.

I’ve just tried setting up forwarding rules in before.rules like so:
-A FORWARD -d [IP] -j ACCEPT
-A FORWARD -s [IP] -j ACCEPT

and put both virbr1’s ip and the guest ip in before.rules

still doesn’t work

Any ideas?

use firewalld instead

please search the forum - it has previously been discussed

2 Likes

You are supposed to read the monthly announcements.

Cheers, using firewalld now instead of ufw.

Tried searching but only found “edit /etc/libvirt/network.conf”.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.