Академический Документы
Профессиональный Документы
Культура Документы
2014 Juniper Networks, Inc. All rights reserved. | www.juniper.net | Worldwide Education Services
Objectives
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2
Agenda: Network Address Translation
Implementation of NAT
Source NAT
Destination NAT
Static NAT
Overlapping IP Addresses
Verification Commands and Common Issues
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 3
NAT Overview
Implementation of NAT
Source NAT
Destination NAT
Static NAT
Overlapping IPs between sites
Verification commands
Common Issues
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 4
NAT Guidelines
Implementation of NAT
Source NAT
Destination NAT
Static NAT
Overlapping IP Addresses
Verification Commands and Common Issues
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 6
Source NAT: Processing
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 7
Source NAT Types
Source NATInterface
Source NATPool with PAT
Source NATPool with fixed port
Source NATAddress shifting
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 8
Source NAT: Interface
Configured under security nat source
[edit security nat source]
rule-set source_nat {
from zone trust;
to zone untrust;
rule source_nat_all {
match {
source-address 0.0.0.0/0;
}
then {
source-nat
interface;
}
}
}
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 9
Source NAT: Pool with PAT
[edit security nat source]
pool source_nat_pool {
address {
115.102.126.119/32;
}
}
rule-set source_nat_from_pool {
from zone trust;
to zone untrust;
rule 1 {
match {
source-address 10.1.10.0/24;
}
then {
source-nat {
pool {
source_nat_pool;
}
}
}
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 10
Source NAT: Pool Without PAT
[edit security nat source]
pool source_nat_pool_range {
address {
115.102.126.1/32 to 115.102.126.254/32;
}
port no-translation;
}
rule-set source_nat_pool_no_pat {
from zone trust;
to zone untrust;
rule 1 {
match {
source-address 0.0.0.0/0;
}
then {
source-nat {
pool {
source_nat_pool_range;
}
}
}
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11
Source NAT: Overflow Pool
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 12
Source NAT: Pool Utilization Alarm
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 13
Source NAT: Address Shifting
[edit security nat source]
pool address_shift {
address {
115.102.126.1/32 to 115.102.126.254/32;
}
host-address-base 10.0.0.6/32;
}
rule-set shift_address_pool {
from zone trust;
to zone untrust;
rule 1 {
match {
source-address 10.0.0.0/24;
}
then {
source-nat {
pool {
address_shift;
}
}
}
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 14
Source NAT: Verification
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 15
Source NAT: Persistent NAT
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 16
Persistent NAT: Interface
[edit security nat source]
interface {
port-overloading off;
}
rule-set source_persistant-NAT {
from zone trust;
to zone untrust;
rule persistent-return-traffic {
match {
source-address 101.10.11.0/24;
destination-address 30.20.10.0/24
}
then {
source-nat {
interface {
persistent-nat {
permit target-host;
inactivity-timeout 1800;
}
}
}
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 17
Persistent NAT: Pool
[edit security nat source]
pool voip-clients {
address {
10.0.0.6/32;
}
}
rule-set voip-pool-NAT {
from zone trust;
to zone untrust;
rule voip-persistent-NAT {
match {
source-address 101.10.11.0/24;
destination-address 30.20.10.0/24
}
then {
source-nat {
pool {
source_nat_pool;
persistent-nat {
permit target-host;
inactivity-timeout 360;
}
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 18
Persistent NAT Verification
Policy options
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 19
Address-Persistent
Address-persistent
Different from persistent-nat
Global option configured under security NAT source
Ensures the same address is used for multiple concurrent
sessions
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 20
Agenda: Network Address Translation
Implementation of NAT
Source NAT
Destination NAT
Static NAT
Overlapping IP Addresses
Verification Commands and Common Issues
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 21
Destination NAT Rules
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 22
Destination NAT: Without PAT
[edit security nat destination]
pool destination_nat_pool {
address 10.0.0.6/32;
}
rule-set one_address_no_PAT {
from zone untrust;
rule to_web_server {
match {
destination-address 70.20.10.1/32;
}
then {
destination-nat {
pool
destination_nat_pool;
}
}
}
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 23
Destination NAT: With PAT
[edit security nat destination]
pool destination_nat_pool {
address 10.0.0.6/32 port 8080;
}
rule-set one_address_no_PAT {
from zone untrust;
rule to_web_server {
match {
destination-address 70.20.10.1/32;
destination-port 80
}
then {
destination-nat {
pool
destination_nat_pool;
}
}
}
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 24
Proxy ARP
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 25
Destination NAT Verification
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 26
Agenda: Network Address Translation
Implementation of NAT
Source NAT
Destination NAT
Static NAT
Overlapping IP Addresses
Verification Commands and Common Issues
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 27
Static NAT Rules
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 28
Static NAT
[edit security nat static]
rule-set static_nat {
from zone untrust;
rule two_way_nat {
match {
destination-address 100.0.0.1/32;
}
then {
static-nat prefix 10.0.0.6/32;
}
}
}
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 29
Agenda: Network Address Translation
Implementation of NAT
Source NAT
Destination NAT
Static NAT
Overlapping IP Addresses
Verification Commands and Common Issues
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 30
Overlapping Address Space
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 31
Agenda: Network Address Translation
Implementation of NAT
Source NAT
Destination NAT
Static NAT
Overlapping IP Addresses
Verification Commands and Common Issues
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 32
NAT Verification Commands
Common show commands
>show security nat source pool
>show security nat source rule
>show security nat destination pool
>show security nat destination rule
>show security nat static rule
>show security nat proxy-arp
Traceoptions
#set security nat traceoptions flag .
#set security flow traceoptions flag basic-datapath
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 33
Common Issues
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 34
Summary
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 35
Network Address Translation Lab
2014 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 36
Worldwide Education Services