firewall: Fix rule generation for protocols without ports.