This section provides an example for configuring Internet users of different ISPs to access the same public IP address of a server on a dual-egress intranet in case of sticky load balancing.
As shown in Figure 1, an enterprise deploys a FW at the network border as the security gateway that connects to the Internet over two ISP networks. The intranet FTP server applies for a public IP address (1.1.10.10) only from ISP1 to provide services for Internet users. Internet users on ISP1 and ISP2 networks must use this public IP address to access the FTP server.
| Item | Data | Description | |
|---|---|---|---|
GigabitEthernet 0/0/1 |
IP address: 1.1.1.1/24 Security zone: untrust1 |
Set the parameters according to the requirement of the ISP. |
|
GigabitEthernet 0/0/7 |
IP address: 2.2.2.2/24 Security zone: untrust2 |
Set the parameters according to the requirement of the ISP. |
|
GigabitEthernet 0/0/2 |
IP address: 10.2.0.1/24 Security zone: DMZ |
- |
|
NAT Policy |
Policy name: policy1 Source zones: untrust1 and untrust2 Public address: 1.1.10.10 Destination address pool: 10.2.0.8 |
The NAT policy converts traffic whose destination address is 1.1.10.10 to traffic whose destination address is 10.2.0.8 so that the traffic can be sent to the intranet FTP server. |
|
Configure sticky load balancing and the default gateway on the GigabitEthernet 0/0/1 and GigabitEthernet 0/0/7.
Make clear the incoming interface of the traffic that may have different forward and return paths based on the configured routes and then configure the sticky load balancing function on the interface.
Contact the ISP's network administrator to perform this step.
Configuration script for the FW:
# sysname FW # ip route-static 1.1.10.10 255.255.255.255 NULL0 # interface GigabitEthernet0/0/1 undo shutdown ip address 1.1.1.1 255.255.255.0 redirect-reverse next-hop 1.1.1.254 gateway 1.1.1.254 # interface GigabitEthernet0/0/2 undo shutdown ip address 10.2.0.1 255.255.255.0 # interface GigabitEthernet0/0/7 undo shutdown ip address 2.2.2.2 255.255.255.0 redirect-reverse next-hop 2.2.2.254 gateway 2.2.2.254 # firewall zone dmz set priority 50 add interface GigabitEthernet0/0/2 # firewall zone name untrust1 id 4 set priority 10 add interface GigabitEthernet0/0/1 # firewall zone name untrust2 id 5 set priority 20 add interface GigabitEthernet0/0/7 # firewall interzone dmz untrust1 detect ftp # destination-nat address-group addressgroup1 section 10.2.0.8 10.2.0.8 # nat-policy rule name policy1 source-zone untrust1 source-zone untrust2 destination-address 1.1.10.10 32 service ftp action destination-nat static address-to-address address-group addressgroup1 # security-policy rule name policy1 source-zone untrust1 source-zone untrust2 destination-zone dmz destination-address 10.2.0.0 24 action permit # return