Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Bernhard_Sayer
Contributor
Jump to solution

Syntax "mgmt_cli set network" with "nat-settings"

Hi!

I could not find the correct syntax to configure a network "behind gateway nat". I tried the following without luck:

mgmt_cli set network name "guest-lan" nat-settings hide-behind gateway install-on "Vienna-Branch"
mgmt_cli set network name "guest-lan" nat-settings hide-behind "Vienna-Branch" install-on "Vienna-Branch"
mgmt_cli set network name "guest-lan" nat-settings "hide-behind gateway" install-on "Vienna-Branch"
mgmt_cli set network name "guest-lan" nat-settings "hide-behind Vienna-Branch" install-on "Vienna-Branch"
mgmt_cli set network name "guest-lan" nat-settings "hide-behind gateway Vienna-Branch" install-on "Vienna-Branch"  

Has anyone already configured this?

Thanks,

Bernhard

1 Solution

Accepted Solutions
Bernhard_Sayer
Contributor

Luckily i found the correct syntax:

 mgmt_cli set network name "guest-lan" nat-settings.auto-rule "true" nat-settings.hide-behind "gateway" nat-settings.install-on "Vienna-Branch"

View solution in original post

2 Replies
Bernhard_Sayer
Contributor

Luckily i found the correct syntax:

 mgmt_cli set network name "guest-lan" nat-settings.auto-rule "true" nat-settings.hide-behind "gateway" nat-settings.install-on "Vienna-Branch"

Robert_Decker
Advisor

This is from API reference guide - 

https://sc1.checkpoint.com/documents/latest/APIs/index.html#gui-cli/set-network~v1.1

Look at the "nat-settings" parameter.

As a rule, when you have an object as a parameter, you use the "object.object-field" syntax.

Robert.

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