set default port for firewall

Since port parameter seems to be missing from init.pp, use the same logic to determin it as in cli_helper.pp