Skip to main content
Andrei_Feldman
New Member
February 28, 2012
Question

Get list of Predefined services from CLI

  • February 28, 2012
  • 4 replies
  • 4318 views
Hi all, I am trying to find a way to get all list of predefined services thru the CLI together with their protocol/port definitions. I know of the command: get firewall service predefined that retrieves a list of predefined service names but it lacks the port definition. I couldn' t find it in ' show full-configuration' as well. In addition, is there an updated list of predefined services available online? Thanks in advance, Andrei

    4 replies

    ede_pfau
    SuperUser
    SuperUser
    February 28, 2012
    Hi, welcome to the forums. You can get the details by specifying the service name (! case-sensitive):
    gate # get firewall service pre SSH  name                : SSH   icmpcode            :   icmptype            :   protocol            : TCP/UDP/SCTP   protocol-number     : 6   sctpport-range      :   tcpport-range       : 22:0-65535   udpport-range       :   
    Unfortunately, that means a lot of keystrokes if you want them all. The list of predefined services gets updated in firmware images only. I' m not sure that this happens in every firmware update.
    Andrei_Feldman
    New Member
    February 28, 2012
    Thanks for your answer and greetings, I was hoping there is a way to obtain all the list along with protocol/port definitions. Is it possible in anyway to get all the predefined services full definition in the latest version issued by FortiOs? This could help me a lot. Thanks
    ede_pfau
    SuperUser
    SuperUser
    February 28, 2012
    Sorry, not that I know of.
    Jordan_Thompson_FTNT
    Staff
    Staff
    March 11, 2012
    You can also see a full list from the GUI under " Firewall->Service->Predefined" .