Help opening firewall on RedHat 7.5

Latest response

Do I need to do anything more than the belwo?
firewall-cmd --permanent --add-port=7/tcp
firewall-cmd --permanent --add-port=22/tcp
firewall-cmd --permanent --add-port=5433/tcp
firewall-cmd --permanent --add-port=5434/tcp
firewall-cmd --permanent --add-port=5433/udp
firewall-cmd --permanent --add-port=5444/tcp
firewall-cmd --permanent --add-port=5450/tcp
firewall-cmd --permanent --add-port=4803/tcp
firewall-cmd --permanent --add-port=4803/udp
firewall-cmd --permanent --add-port=4804/udp
firewall-cmd --permanent --add-port=6543/udp

-Keith

Responses

Hi Doug,

firewall-cmd --reload

to make the rules active without a reboot

Regards,

Jan Gerrit Kootstra

Not sure if you want to set a certain zone with these. Can list the zones with the following command:

firewall-cmd --get-zone

Also you'll have to reload the rules once you add them:

firewall-cmd --reload

Do I have to add them to a zone? Or will they just be open by doing the above?

Your commands above are all you need to change the configuration files, though you could consider extra zones, particularly if you want to limit the ports to particular address ranges. They don't however change the settings of the running firewall without a reload.