Under Yast - firewall my enp2s0 device was not showing up as interface. Network manager was reporting that it used that interface to connect to the network. I have added the interface by executing:
sudo firewall-cmd --add-interface=enp2s0 --zone=home --permanent
sudo systemctl restart firewalld.service
This let the interface now show in the firewall gui under Yast. However the zone is not picked up by the firewall:
sudo firewall-cmd --get-active-zones
To my understanding this should be showing that home is set active for enp2s0 (I compared that with another TW install), however no matter what I try that does not reflect here. When I make changes to the public profile that change is reflected.
- Why did the interface not show up and I manually had to add that?
- Why are the changes made to the interface not shown after restarting the firewall daemon?
UPDATE I solved it. Under network manager no zone was selected and setting that in the network manager instantly reflects in firewall-cmd.