Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Chris_Gage
Explorer

add protocols to add-service-tcp

I'm looking for a way to add a service with the API with the standard protocols.  For example, add-service-tcp for port 8000 that uses the http protocol.  Instead of creating a generic tcp 8000 object, we'd like to create an http object that runs on 8000.

0 Kudos
1 Reply
Eugene_Grybinny
Employee Alumnus
Employee Alumnus

This is possible in API version 1.1 which is a part of R80.10!

You have to call add-service-tcp command with the next payload:

{

  "match-by-protocol-signature": "true",

  "name": "http_on_8000",

  "port": "8000",

  "protocol": "http"

}

CLI example:

mgmt_cli -r true add service-tcp name http_on_8000 protocol http port 8000 match-by-protocol-signature true

Documentation reference: https://sc1.checkpoint.com/documents/latest/APIs/index.html#gui-cli/add-service-tcp~v1.1

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    Tue 23 Apr 2024 @ 11:00 AM (EDT)

    East US: What's New in R82

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Thu 02 May 2024 @ 11:00 AM (SGT)

    APAC: What's new in R82

    Tue 23 Apr 2024 @ 11:00 AM (EDT)

    East US: What's New in R82

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Thu 02 May 2024 @ 11:00 AM (SGT)

    APAC: What's new in R82
    CheckMates Events