Quantcast
Channel: All SRX Services Gateway posts
Viewing all articles
Browse latest Browse all 17645

[JSRX 210] How to completly remove/delete destination NAT?

$
0
0

Recently I configured my JSRX210 with the following destination NAT rules:

 

edit security
set zones security-zone trust address-book address companyserver1 y.y.y.y/32
exit

edit security policies from-zone untrust to-zone trust
set policy companyserver1-access match source-address any destination-address [ companyserver1 ] application any
set policy companyserver1-access then permit
exit

edit security nat destination
set pool dst-nat-pool-1 address y.y.y.y port 443
set rule-set rs1 from zone untrust
set rule-set rs1 rule r1 match destination-address x.x.x.x
set rule-set rs1 rule r1 match destination-port 443
set rule-set rs1 rule r1 then destination-nat pool dst-nat-pool-1
exit

edit security nat
set proxy-arp interface ge-0/0/0.0 address x.x.x.x

commit confirmed 60
commit

edit security nat destination
set pool companyserver1-dst-nat-pool-1 address y.y.y.y port 1110
set rule-set rs1 from zone untrust
set rule-set rs1 rule r2 match destination-address x.x.x.x
set rule-set rs1 rule r2 match destination-port 1110
set rule-set rs1 rule r2 then destination-nat pool companyserver1-dst-nat-pool-1

commit confirmed 60
commit

 

And I need to completly remove the changes I made. I know I can simply rollback to prevoius config, but the thing is, I haven't saved it. I do not want to restore default config either.

 

Is there a simple set of commands, which will let me just revert the changes I made, delete / remove the rule sets, pooles, the whole destination NAT I made? Thank you.


Viewing all articles
Browse latest Browse all 17645

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>