NAT
NAT translates packet addresses at forwarding time. netverdict covers common inside/outside NAT and PAT scenarios plus an ASA-style twice-NAT runtime for selected firewall cases.
Support level
Section titled “Support level”| Area | Level | Notes |
|---|---|---|
| Static NAT | Supported | One-to-one inside/outside translation. |
| Dynamic PAT | Supported | Overload for TCP, UDP and ICMP echo (by identifier). Endpoint-independent mapping (RFC 4787 REQ-1). No hairpinning. |
| Port forward | Supported | A static mapping for one protocol and port. |
| Inside/outside roles | Supported | Interface roles control translation direction. |
| ASA twice NAT | Behaviour model | Parser and runtime for modelled ASA-style translations. |
| ALG behaviour | Not modelled | Protocol helpers are out of scope. |
Standards coverage
Section titled “Standards coverage”| Standard | Coverage | Notes |
|---|---|---|
| RFC 3022 | Behaviour model | Traditional NAT and NAPT semantics. |
| RFC 4787 | Partial | REQ-1 endpoint-independent mapping and REQ-9 hairpinning for static NAT. No idle aging or port-exhaustion fallback. |
| Cisco IOS NAT | Behaviour model | Supported CLI forms and translation order. |
| Cisco ASA NAT | Partial | Twice NAT model for selected cases. |
Feature matrix
Section titled “Feature matrix”| Feature | Status | Notes |
|---|---|---|
ip nat inside / outside | Supported | Interface direction. |
| Static inside source | Supported | Fixed local/global mapping. |
| Dynamic overload | Supported | PAT with ACL-selected source traffic. |
| NAT pools | Supported | Each inside host maps to its own pool address. |
ip nat outside source | Supported | Translates in the direction the line means. |
| Translation table | Supported | Runtime translations can be inspected. |
| PAT scope | Supported | A PAT bound to an outside interface translates only traffic routed out of that interface: not inter-VLAN traffic, not a ping to the box itself, not traffic into a VPN. An inbound ACL on the inside port judges the packet before translation. |
| Meraki MX NAT | Supported | Automatic outbound PAT, port forwarding and 1:1 NAT from the Dashboard document. See Cisco Meraki. |
| PAN-OS NAT rules | Supported | A disabled rule translates nothing. |
| Load-balancer SNAT | Supported | BIG-IP automap and SNAT pools, NetScaler SNIP. See Load balancing. |
| ASA object/twice NAT | Behaviour model | Selected object and twice-NAT forms. |
| Hairpin NAT | Partial | Works for static NAT, also with declared inside/outside roles. Not modelled for PAT. |
| Junos SRX / RouterOS / VyOS NAT | Supported | Source NAT, published services, masquerade, rule order kept. |
Vendor command matrix
Section titled “Vendor command matrix”| Command | IOS-style | ASA-style | VyOS-style | Notes |
|---|---|---|---|---|
ip nat inside source static 10.0.0.10 203.0.113.10 | Supported | n/a | Partial | Static NAT. |
ip nat inside source list 1 interface GigabitEthernet0/0 overload | Supported | n/a | Partial | PAT overload. |
ip nat inside | Supported | n/a | n/a | Interface role. |
nat (inside,outside) source static ... | n/a | Partial | n/a | ASA twice NAT, with its line numbers and trailing keywords (no-proxy-arp, route-lookup, unidirectional, inactive). source static any any destination static M R translates the destination. A subnet maps onto a same-size subnet host by host, up to /24. |
nat (in,out) source static X X destination static Y Y (identity NAT) | n/a | Supported | n/a | Exempts the traffic from PAT in the same or a later section, as VPN traffic needs. Within one section, line order is not considered. |
object network O / nat (in,out) static A service tcp P Q | n/a | Supported | n/a | Object NAT port forward; static interface uses the interface’s own address. |
object network O / nat (in,out) dynamic pat-pool P | n/a | Supported | n/a | Object NAT PAT to the pool’s first address, as twice-NAT pat-pool does. Object and twice NAT are written back under the object names they were typed with. |
Twice NAT with service, dynamic NAT with a destination condition | n/a | Not modelled | n/a | Reported as unrecognized. |
show ip nat translations | Supported | Partial | Partial | Translation table. |
Behaviour notes
Section titled “Behaviour notes”NAT is applied as part of forwarding. ACLs select candidate flows, interface roles decide direction, and the translation result feeds the next route lookup or packet decision.
Examples
Section titled “Examples”Canonical example
configure terminalaccess-list 1 permit 10.0.0.0 0.0.0.255interface GigabitEthernet0/0 ip nat outsideinterface GigabitEthernet0/1 ip nat insideip nat inside source list 1 interface GigabitEthernet0/0 overloadendshow ip nat translationsVendor styles
IOS-style
access-list 1 permit 10.0.0.0 0.0.0.255interface GigabitEthernet0/0 ip nat outsideinterface GigabitEthernet0/1 ip nat insideip nat inside source list 1 interface GigabitEthernet0/0 overloadASA-style
object network INSIDE-NET subnet 10.0.0.0 255.255.255.0 nat (inside,outside) dynamic interfaceVyOS-style
set nat source rule 100 outbound-interface eth0set nat source rule 100 source address 10.0.0.0/24set nat source rule 100 translation address masqueradeTry it
Section titled “Try it”Known limits
Section titled “Known limits”ALG rewriting, port-block allocation, port-exhaustion fallback, idle aging, PAT hairpinning, NAT64/NPTv6, and every overlapping-object corner case are not modelled.