FortiGate Service Port Config Generator

How to use this tool:

  1. Specify a service name prefix (optional)
  2. Enter TCP ports/ranges in the TCP Ports box (one per line or comma-separated)
  3. Enter UDP ports/ranges in the TCP Ports box (one per line or comma-separated)
  4. Click "Generate CLI Commands"
  5. Copy the output and paste into your FortiGate CLI

Examples: TCP: 80, 443, 8080, 1000-2000
UDP: 53, 123, 500-510

Note: Accepts port numbers or service names (e.g., "https" or "443")

Enter ports in any format (e.g., "80", "tcp-8080", "udp/53", "1000-2000") - the tool will automatically extract the port numbers.

Preview Table

Protocol Port/Range Service Name CLI Command