How to create and modify custom .xml file under /etc/firewalld/services for adding certain ports with firewalld in RHEL 7?

Solution Verified - Updated -

Issue

  • FirewallD: Custom xml under /etc/firewalld/services is not adding ports.
  • How to modify custom created .xml service in firewalld ?
  • How to add multiple ports as a service to a particular zone in firewalld ?
  • Enable multiple ports ports for a specific zone in firewalld.

Environment

  • Red Hat Enterprise Linux 7. (RHEL 7)
  • Firewalld.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In