Avatar of DonKwizote
DonKwizote
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Deleting destination NAT rule and policy on a Juniper SRX

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.
Hardware FirewallsRoutersNetworking Hardware-Other

Avatar of undefined
Last Comment
DonKwizote

8/22/2022 - Mon
harbor235

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 ;}
DonKwizote

ASKER
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>.
ASKER CERTIFIED SOLUTION
DonKwizote

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
DonKwizote

ASKER
Thanks!
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes