HAOS : ufw / integrated firewall?

I was wondering if they was a way to block access from Home Assistant OS to specific IP?
in my case I would like to only allow CloudFlare IPv4/IPv6 and nothing else (I have some issue with my Gateway, Ubiquiti UDM Pro)

Or even blocking/ allowing selected ASN but I suppose is a bit to much