This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Modify Host Definition and enable/disable NAT rule via command line

Hi,

is it possible to modify the IP address of an existing host definition via command line? 
Additionally is it possible to enable/disable NAT rules via command line?
Could it be done via cc?

EDIT: Reason: I need to change these values automatically through a script.


Thanks in advance

Dino


This thread was automatically locked due to age.
Parents
  • Cool - Thanks, teched!  I played a little with the new (to me) get_objects_filtered command.  Instead of using cc get nat rules and having to look at each rule, I found the REF for the Axis Camera that plays receptionist with:
    cc get_objects_filtered '$_->{data}->{comment} eq "Axis Camera"'

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
Reply
  • Cool - Thanks, teched!  I played a little with the new (to me) get_objects_filtered command.  Instead of using cc get nat rules and having to look at each rule, I found the REF for the Axis Camera that plays receptionist with:
    cc get_objects_filtered '$_->{data}->{comment} eq "Axis Camera"'

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
Children
No Data