A Nat Example - D-Link NetDefendOS User Manual

Network security firewall
Hide thumbs Also See for NetDefendOS:
Table of Contents

Advertisement

3.
The recipient server then processes the packet and sends its response.
4.
NetDefendOS receives the packet and compares it to its list of open connections. Once it
finds the connection in question, it restores the original address and forwards the packet.
5.
The original sender now receives the response.
The sequence of these events is illustrated further in the diagram below.
Example 7.1. Specifying a NAT IP Rule
The following will add a NAT rule that will perform address translation for all HTTP traffic
originating from the internal network lan as it flows out to the public Internet on the wan
interface. The IP address of the wan interface will be used as the NATing address for all
connections.
Command-Line Interface
gw-world:/> add IPRule Action=NAT
195.11.22.33:32789 => 195.55.66.77:80
195.55.66.77:80 => 195.11.22.33:32789
195.55.66.77:80 => 192.168.1.5:1038
Figure 7.2. A NAT Example
SourceInterface=lan
SourceNetwork=lannet
DestinationInterface=wan
DestinationNetwork=all-nets
Service=http
NATAction=UseInterfaceAddress
Name=NAT_HTTP
578
Chapter 7: Address Translation

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents