![Juniper Junos OS Getting Started Manual Download Page 59](http://html1.mh-extra.com/html/juniper/junos-os/junos-os_getting-started-manual_2032488059.webp)
3.
Configure a rule that matches packets and translates the destination address
(1.1.1.3/29) to the address in the pool (dst-nat-pool-1 that includes IP address
192.168.2.2/32).
[edit]
user@srx210-host#
set security nat destination rule-set rs1 rule r1 match
destination-address 1.1.1.3/29
user@srx210-host#
set security nat destination rule-set rs1 rule r1 then destination-nat
pool dst-nat-pool-1
4.
Configure proxy ARP for the address 1.1.1.3/29 on interface ge-0/0/0.0.
[edit]
user@srx210-host#
set security nat proxy-arp interface ge-0/0/0.0 address 1.1.1.3/29
5.
Configure an address in the address book for Server-HTTP-1.
[edit]
user@srx210-host#
edit security zones security-zone DMZ address-book address
Server-HTTP-1 192.168.2.2/32
6.
Configure a security policy to allow traffic from the untrust zone to the server
(Server-HTTP-1) in the DMZ zone.
[edit]
user@srx210-host#
set security policies from-zone untrust to-zone DMZ policy
server-access match source-address any
user@srx210-host#
set security policies from-zone untrust to-zone DMZ policy
server-access match destination-address Server-HTTP-1
user@srx210-host#
set security policies from-zone untrust to-zone DMZ policy
server-access match application junos-http
user@srx210-host#
set security policies from-zone untrust to-zone DMZ policy
server-access then permit
Results
From configuration mode [edit], confirm your configuration by entering the
show security
nat destination
and
show security policies from-zone untrust to-zone DMZ
commands.
If the output does not display the intended configuration, repeat the configuration
instructions in this example to correct it.
[edit]
user@srx210-host# show security nat destination
pool dst-nat-pool-1 {
address 192.168.2.2/32;
}
rule-set rs1 {
from interface ge-0/0/0.0;
rule r1 {
match {
destination-address 1.1.1.3/29;
}
then {
destination-nat {
pool {
dst-nat-pool-1;
}
}
}
43
Copyright © 2016, Juniper Networks, Inc.
Chapter 6: Configuring NAT for SRX Series
Summary of Contents for Junos OS
Page 6: ...Copyright 2016 Juniper Networks Inc vi Getting Started Guide for Branch SRX Series...
Page 8: ...Copyright 2016 Juniper Networks Inc viii Getting Started Guide for Branch SRX Series...
Page 10: ...Copyright 2016 Juniper Networks Inc x Getting Started Guide for Branch SRX Series...
Page 18: ...Copyright 2016 Juniper Networks Inc 2 Getting Started Guide for Branch SRX Series...
Page 20: ...Copyright 2016 Juniper Networks Inc 4 Getting Started Guide for Branch SRX Series...
Page 22: ...Copyright 2016 Juniper Networks Inc 6 Getting Started Guide for Branch SRX Series...
Page 32: ...Copyright 2016 Juniper Networks Inc 16 Getting Started Guide for Branch SRX Series...
Page 42: ...Copyright 2016 Juniper Networks Inc 26 Getting Started Guide for Branch SRX Series...
Page 44: ...Copyright 2016 Juniper Networks Inc 28 Getting Started Guide for Branch SRX Series...
Page 46: ...Copyright 2016 Juniper Networks Inc 30 Getting Started Guide for Branch SRX Series...
Page 54: ...Copyright 2016 Juniper Networks Inc 38 Getting Started Guide for Branch SRX Series...
Page 62: ...Copyright 2016 Juniper Networks Inc 46 Getting Started Guide for Branch SRX Series...
Page 78: ...Copyright 2016 Juniper Networks Inc 62 Getting Started Guide for Branch SRX Series...
Page 86: ...Copyright 2016 Juniper Networks Inc 70 Getting Started Guide for Branch SRX Series...
Page 90: ...Copyright 2016 Juniper Networks Inc 74 Getting Started Guide for Branch SRX Series...
Page 155: ...PART 5 Index Index on page 141 139 Copyright 2016 Juniper Networks Inc...
Page 156: ...Copyright 2016 Juniper Networks Inc 140 Getting Started Guide for Branch SRX Series...