Junos OS

last person joined: 4 days ago 

Ask questions and share experiences about Junos OS.
  • 1.  Static NAT rule on a Juniper SRX

    Posted 08-28-2015 08:53

    Hi,
    I need to first disable (to test) then eventually delete a NAT rule on a Juniper SRX router.
    I have searched for the right command but I can't seem to find it.



  • 2.  RE: Static NAT rule on a Juniper SRX

     
    Posted 08-28-2015 09:20

    Hello,

     

    To disable the NAT rule:

     

    set security nat <nat-type> rule-set <name> rule <name> disable.

     

    To re-enable it:

     

    delete security nat <nat-type> rule-set <name> rule <name> disable.

     

    To delete it:

     

    delete security nat <nat-type> rule-set <name> rule <name>

     

    <nat-type> is source, destination or static.

     

    Regards,

     

    Rushi



  • 3.  RE: Static NAT rule on a Juniper SRX

    Posted 09-04-2015 07:13

    Many Thanks for your reply.

    This is what I get when I type in "set security nat <nat-type> rule-set <name> rule <name> disable"

     

    root@SRX# set security nat static rule-set rule7 disable
    ^
    syntax error.

     



  • 4.  RE: Static NAT rule on a Juniper SRX
    Best Answer

    Posted 09-04-2015 07:17

    I've just found out I can delete the rule in the J-Web. Why was I trying the CLI?