Adding iptables to Firewall config to make change permanent for Samba

Like some others I’m having problems with Dophin seeing Windows/Samba shares. However I found this fix which works:

iptables -t raw -A OUTPUT -p udp -m udp --dport 137 -j CT --helper netbios-ns

Is anyone out there up enough on iptables and the firewall to know how to make this rule part of the firewall configuration so it’s permanent?

Thanks!

Assume you’re using firewalld? If so, just allow the ‘samba-client’ service.
https://firewalld.org/documentation/howto/open-a-port-or-service.html