Link to home
Create AccountLog in
Avatar of DonKwizote
DonKwizoteFlag 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.
Avatar of harbor235
harbor235
Flag of United States of America image

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 ;}
Avatar of 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
Avatar of DonKwizote
DonKwizote
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Thanks!