Add DNAT/Full NAT/load balancing rule
This page describes how to configure a DNAT/Full NAT/load balancing (non-web) rule.
- Go to Firewall and select between IPv4 or IPv6 using the default filter.
- Now, click +Add firewall rule and select Business application rule.
-
Specify the general rule details.
- Application template
- Select DNAT/Full NAT/load balancing to configure a rule for generic non-web based applications.
- Description
- Enter a description for the rule.
- Rule position
- Specify the position of the rule.
- Available options:
- Top
- Bottom
- Rule group
- Specify the rule group to add the firewall rule to. You can also create a new rule group by using Create new from the list.
- If you select Automatic, the firewall rule will be added to an existing group based on first match with rule type and source-destination zones.
- Rule name
- Specify a name to identify the rule.
-
Specify Source details.
- Source zones
- Select a source zone or click Add new item to define a new LAN or DMZ zone.
- Allowed client networks
- Select the allowed host(s) or add a new one by clicking Add new item.
- Blocked client networks
- Select the blocked host(s)/network(s).
-
Specify Destination & service details.
- Destination host/network
- Select the destination host/network to apply rule. It is the public IP address through which users access an internal server/host over the internet.
- Available options:
- IP address: Specified IP address is mapped to a corresponding mapped single IP address or a range of IP addresses. If a single IP address is mapped to a range of IP addresses, the device uses a round robin algorithm to load balance the requests.
- IP range: (Only available for IPv4). Specified IP address range is mapped to a corresponding range of mapped IP addresses. The IP range defines the start and end of an address range. The start of the range must be lower than the end of the IP. Select when any of the device port, alias or virtual LAN (VLAN) sub-interface is required to be mapped to the destination host or network.
- Forward type
- Select the type of external port from the available options.
- Available options:
- Port
- Port range
- Port list
- Everything
When Everything is selected, all ports are forwarded. Select other options to enable custom port forwarding and specify port forwarding details.
- Service port(s) forwarded (not available if Forward type selected is Everything)
- Specify the public port number for which you want to configure port forwarding.
- Protocol (not available if Forward type selected is Everything)
- Select the protocol TCP or UDP to be used by forwarding packets.
-
Specify Forward to details.
- Protected server(s)
- From the available options, select the application server(s) on which the web server is to be hosted.
- Available options:
- IP address: External IP address is mapped to the specified IP address.
- IP range: External IP address range is mapped to the specified IP address range.
- IP list: External IP address is mapped to the specified IP list.
- FQDN: External IP address is mapped to the specified FQDN. Internal mapped server can be accessed by FQDN. This option is only available for IPv4 virtual hosts.
- Mapped port
- Specify the mapped port number on the destination network to which
the public port number is mapped. Mapped port
must have the same number of ports as specified in the public
service, or at least have one port. Mapped
port is disabled if:
- No TCP/UDP service is selected
- Multiple services are selected
- Service group is selected
- Selected service is with TCP/UDP combination
- Protected zone
- Select the zone to apply web server rule.
-
Specify Load balancing details.
- Load balancing (available only if selected Protected server is IP range or IP list or selected Destination host/network is IP address)
- Select the method for load balancing from the available options.
- Available options:
- Round robin: Requests are served in a sequential manner where the first request is forwarded to the first server, second request to the second server and so on. When a request is received, the device checks to see which was the last server that was assigned a request. It then assigns this new request to the next available server. This method can be used when equal distribution of traffic is required and there is no need for session-persistence.
- First alive: All incoming requests are served by the first server (the first IP address that is configured in the IP range). This server is considered as the primary server and all others are considered as backup. Only when the first server fails, the requests are forwarded to the next server in line. This method is used for failover scenarios.
- Random: Requests are forwarded to the servers randomly. Nevertheless, the device makes sure that all configured servers receive equally distributed load. Hence, this is also called as uniform random distribution. This method can be used when equal distribution of traffic is required and there is no need for session-persistence or order of distribution.
- Sticky IP: Along with the Round Robin distribution of traffic, the device forwards incoming traffic according to the source IP address. All traffic from a particular source is forwarded only to its mapped server. This means that all requests for a given source IP are sent to the same application server instance. This method is useful when all requests or sessions are required to be processed by the same server. For example: banking websites, E-Commerce websites.
- Health check (available only if Load balancing is enabled)
- Click to enable a health check for failover and specify the
parameters based on the description shown below.
- Port: Port on which the server health is monitored.
- Interval: Time, in seconds, after which the health will be monitored.
- Probe method: Method to use to check the health of the server.
- Timeout: Time, in seconds, within which the server must respond.
- Retries: Number of tries to probe the health of the server, after which the server will be declared unreachable.
-
Specify Identity details.
- Match known users
- Match rule based on user identity allows you to check whether the specified user/user group from the selected zone is allowed to access the selected service or not.
- Click to attach the user identity.
- Enable check identity to apply the following policies per user.
- Show captive portal to unknown users
- Select the check box to accept traffic from unknown users. Captive portal page is displayed to the user where the user can sign in to access the internet.
- Clear the check box to drop traffic from unknown users.
- User or groups (available if Match known users is selected)
- Select the user(s) or group(s) from the list of available options.
- Exclude this user activity from data accounting (available if Match known users is selected)
- Click to enable/disable user traffic activity from data accounting.
By default, user’s network traffic is considered in data accounting. Select to exclude certain traffic from user data accounting. The traffic allowed through this firewall rule will not be accounted towards data transfer for the user.
-
Specify Advanced settings details.
-
Specify Polices for business applications.
- Intrusion prevention
- Select the required IPS policy. If Match rule based on user identity is enabled, user’s IPS policy will be applied automatically, but will not be effective till the respective module is subscribed. A new IPS policy can be created directly from this page or from the Intrusion prevention > IPS policies page.
- Traffic shaping policy
- Select the required traffic shaping policy. If Match rule based on user identity is enabled, user’s traffic shaping policy will be applied automatically.
- You need to select traffic shaping policy for the rule if Match known users is not selected.
- A new traffic shaping policy can be created directly from this page or from the Profiles > Traffic shaping page.
-
Specify Security Heartbeat details (only available if IPv4 is selected).
- Minimum source HB permitted
- Select a minimum health status that a source device must have to conform to this rule. Health status can be either Green, Yellow or No restriction. If the health criterion is not met, access and privileges defined in this rule will not be granted to the user.
- Block clients with no heartbeat
- Heartbeat-capable devices can be required to send information on their health status in defined intervals - this is called a heartbeat.
- Based on that information, you can restrict a source device’s access to certain services and networks.
- Enable the option to require the sending of heartbeats.
- Block request to destination with no heartbeat (not available if Protected zone selected is WAN)
- Heartbeat-capable devices can be required to send information on their health status in defined intervals - this is called a heartbeat.
- Based on that information, you can block requests to destinations not sending heartbeat.
Enable/disable the option to require the sending of heartbeats.
-
Specify Routing details.
- Rewrite source address (Masquerading)
- Enable/disable to re-write the source address or specify a NAT policy.
- Use outbound address (available only if Rewrite source address is enabled)
- Select the NAT policy to be applied from the list of available NAT policies.
- A new NAT policy can be created directly from this page or from the Profiles > Network address translation page.
- The default NAT policy is Masquerade.
MASQ (interface default IP): IP address of the selected protected zone as configured in Network > Interfaces will be displayed instead of (interface default IP).
- Create reflexive rule
- Enable to automatically create a reflexive firewall rule for the protected host.
- A reflexive rule has the same policies as those rules configured for the hosted server but instead of source zone to destination zone, this rule is applicable on traffic from destination zone to source zone.
- By default, the reflexive rule is not created.
-
Specify Polices for business applications.
-
Specify the logging option for the user application traffic.
- Log firewall traffic
- Click to enable logging of permitted and denied traffic.
- Click Save.