How to Configure Services on a Palo Alto Networks Firewall

Palo Alto Networks firewalls allow administrators to configure Services to define specific TCP and UDP port numbers used by network applications.

Service Objects are useful when an administrator needs to control traffic based on specific port numbers, such as HTTP, HTTPS, SSH, RDP, DNS, and custom application ports.

A Service Object defines the transport protocol and destination port used by network traffic.

Palo Alto supports the following protocols:

  • TCP (Transmission Control Protocol)
  • UDP (User Datagram Protocol)

Prerequisites

Before configuring a service, ensure that:

  • You have administrative access to the Palo Alto firewall.
  • You know the required protocol (TCP or UDP).
    • You know the destination port number

    Configure a Service Using WebUI

    Example: Configure a custom TCP service on port 8080.

    steps:

    • Log in to the Palo Alto firewall WebUI.
    • Navigate to Objects → Services.
    • Click Add.
    • Configure the following parameters:
    ParameterValue
    NameTCP-8080
    ProtocolTCP
    Destination Port8080
      • Click OK.
      • Click Commit to apply the configuration.

        The service object is now created and available for use in Security Policies.

        Configure a UDP Service

        Example: Configure DNS using UDP port 53.

        • Navigate to Objects → Services.
        • Click Add.
        • Enter the following details:
          ParameterValue
          NameUDP-DNS
          ProtocolUDP
          Destination Port53
          • Click OK.
          • Commit the configuration.

          View service configuration:

          You can also verify the configuration through the WebUI:

          • Navigate to Objects → Services.
          • Locate the newly created service.
          • Verify the protocol and destination port.

              Configure a Service Using CLI

              Palo Alto also supports service configuration through the command-line interface.

              Configure TCP service:

              configure
              set service TCP-8080 protocol tcp port 8080
              commit

              Configure UDP service:

              configure
              set service UDP-DNS protocol udp port 53
              commit

              Verify Service Configuration

              After creating the service objects, verify the configuration using the following CLI commands.

              Display configured services:

              show service

              com.gettechgyan@gmail.com Avatar

              Leave a Reply

              Your email address will not be published. Required fields are marked *