Firewalld Fedora 34 -> 35 Masquerade between Zones not working anymore

I updated my firewall from 34 to 35 and my firewall was not working anymore. There is a not good documented change with the release of firewalld 1.0 that hit me.

The fix is simple if you found it.

firewall-cmd --permanent --new-policy policy_int_to_ext
firewall-cmd --permanent --policy policy_int_to_ext --add-ingress-zone public
firewall-cmd --permanent --policy policy_int_to_ext --add-egress-zone external
firewall-cmd --permanent --policy policy_int_to_ext --set-priority 100
firewall-cmd --permanent --policy policy_int_to_ext --set-target ACCEPT
firewall-cmd --permanent --zone=external --add-masquerade
systemctl restart firewalld
firewall-cmd --info-policy policy_int_to_ext

Source

This entry was posted in Uncategorized and tagged . Bookmark the permalink.

1 Response to Firewalld Fedora 34 -> 35 Masquerade between Zones not working anymore

  1. John says:

    I had the same problem, and fixed it like this. Do you have any comments about the differences?

    # firewall-cmd –permanent –set-target=ACCEPT –zone=internal

    # firewall-cmd –reload

Leave a Reply

Your email address will not be published.