Example 7.3. Using NAT Pools
This example creates a stateful NAT pool with the external IP address range
10.6.13.10
to
10.16.13.15
. This is then used with a
NAT
IP rule for HTTP traffic on the wan interface originating
from the
lan_net
.
Note that if a network such as 10.6.13.0/24 is used for the NAT pool IP range, the 0 and 255
addresses (10.6.13.0 and 10.6.13.255) are automatically excluded from the range.
Command-Line Interface
A. First, create an object in the address book for the address range:
gw-world:/> add Address IP4Address nat_pool_range
Address=10.6.13.10-10.16.13.15
B. Next, create a stateful NAT Pool object called
my_stateful_natpool
:
gw-world:/> add NatPool my_stateful_natpool
Range=nat_pool_range
Type=Stateful
ProxyARPInterfaces=wan
C. Finally, define the
NAT
rule in the IP rule set:
gw-world:/> add IPRule Action=NAT
SourceInterface=lan
SourceNetwork=lannet
DestinationInterface=wan
DestinationNetwork=all-nets
Service=http-all
NATAction=UseNATPool
NATPool=my_stateful_natpool
Name=NAT_HTTP
Web Interface
A. First, create an object in the address book for the address range:
1.
Go to: Objects > Address Book > Add > IP4 Address
2.
Specify a suitable name for the IP range
nat_pool_range
3.
Enter
10.6.13.10-10.16.13.15
in the IP Address textbox
4.
Click OK
B. Next, create a stateful NAT Pool object called
my_stateful_natpool
:
1.
Go to: Objects > NAT Pools > Add > NAT Pool
2.
Now enter:
•
Name: my_stateful_natpool
•
Pool type: stateful
Chapter 7: Address Translation
586
Summary of Contents for NetDefendOS
Page 30: ...Figure 1 3 Packet Flow Schematic Part III Chapter 1 NetDefendOS Overview 30 ...
Page 32: ...Chapter 1 NetDefendOS Overview 32 ...
Page 144: ...Chapter 2 Management and Maintenance 144 ...
Page 284: ...Chapter 3 Fundamentals 284 ...
Page 392: ...Chapter 4 Routing 392 ...
Page 419: ... Host 2001 DB8 1 MAC 00 90 12 13 14 15 5 Click OK Chapter 5 DHCP Services 419 ...
Page 420: ...Chapter 5 DHCP Services 420 ...
Page 573: ...Chapter 6 Security Mechanisms 573 ...
Page 607: ...Chapter 7 Address Translation 607 ...
Page 666: ...Chapter 8 User Authentication 666 ...
Page 775: ...Chapter 9 VPN 775 ...
Page 819: ...Chapter 10 Traffic Management 819 ...
Page 842: ...Chapter 11 High Availability 842 ...
Page 866: ...Default Enabled Chapter 13 Advanced Settings 866 ...
Page 879: ...Chapter 13 Advanced Settings 879 ...