Deleting destination NAT rule and policy on a Juniper SRX

DonKwizote
DonKwizote used Ask the Experts™
on
Hi,
I need to first disable (to test) then eventually delete a NAT rule and a policy on a Juniper SRX router.
I have searched for the right command but I can't seem to find it.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
After entering configuration mode issue the "edit security nat" command moving to the static or dynamic portion of your config. Then all you need to do is issue the "deactivate <Rule_name>" command,  then of course the commit or commit confirmed.

To enable the rule all you would need to do is issue the "activate <Rule_name>" command


harbor235 ;}


harbor235 ;}

Author

Commented:
This is what I'm getting now. Am I entering the deactivate command incorrectly?

root@SRX% cli
root@SRX> configure
Entering configuration mode
[edit]
root@SRX# edit security nat static rule-set rule7
[edit security nat static rule-set rule7]
root@SRX# deactivate rule7
                          ^
syntax error, expecting <statement>, <attribute-name>, <flag-value>, or <identifier>.
I've just found out I can delete the rule in the J-Web. Why was I trying the CLI?

Author

Commented:
Thanks!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial