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

    CheckMates Events