We use cookies on our website to ensure we provide you with the best experience on our website. By using our website, you agree to the use of cookies for analytics and personalized content.This website uses cookies. More Information
It seems like your browser didn't download the required fonts. Please revise your security settings and try again.
Barracuda CloudGen Firewall

This Firmware Version Is End-Of-Support

Documentation for this product is no longer updated. Please see https://campus.barracuda.com/doc/71862301/ for further information on our EoS policy.

How to Create a Destination NAT Firewall Rule

  • Last updated on

Dst NAT  rule redirects traffic sent to an external IP address to a destination in the internal network. The following example shows a  Dst NAT  rule allowing HTTP and HTTPS access from the Internet to a server in the DMZ (172.16.0.10).

FW_DNAT.png

Create a Dst NAT Firewall Rule

  1. Open the Forwarding Rules page (Config > Full Config > Virtual Servers > your virtual server > Assigned Services > Firewall > Forwarding Rules ).
  2. Click Lock.
  3. Either click the plus icon (+) in the top right of the rule set, or right-click the rule set and select New > Rule.
    FW_Rule_Add01.png
  4. Select Dst NAT as the action.
  5. Enter a N ame for the rule. For example, Internet-2-DMZ-HTTPS-Server.
  6. Specify the following settings that must be matched by the traffic to be handled by the firewall rule:
    • Source – The source addresses of the traffic.
    • Destination – The destination addresses of the traffic.
    • Service – Select a service object, or select Any for this rule to match for all services.

    • Target List – The redirection target. You have the following options to define the target:

      • Enter one IP address with or without a specific port. If you append a port to the IP address, the Barracuda NG Firewall maps the external port to that of the internal server (port 80 to port 8080). For example, 172.16.0.10 or 172.16.0.10:8080
      • Enter a space-delimited list of IP addresses.
      • Click the Reference check box, and select a network object from the drop-down list that appears. If the network objects contains multiple IP addresses, only the first IP address is used.

        Do not use network objects containing host names (DNS objects). The firewall does not redirect traffic to a hostname or FQDN. 

      • (TCP only) Fallback/Cycle – The firewall can distribute TCP traffic over multiple IP addresses in two ways:
        • Fallback – The connection is redirected to the first available IP address in the list.
        • Cycle – New incoming TCP connections are distributed evenly over the available IP addresses in the list on a per source IP address basis. The same redirection target is used for all subsequent connections of the source IP address. UDP connections are redirected to the first IP address and not cycled.
      • (TCP only) List of Critical Ports – Enter a space-delimited list of the used TCP ports.

    • Connection Method – Select No SNAT.

  7. Click OK.
  8. Drag and drop the firewall rule so that it is the first rule that matches the traffic that you want it to forward. Ensure that the rule is located  above  the BLOCKALL rule; rules located below the BLOCKALL rule are never executed.
  9. Click Send Changes and Activate.

Additional Matching Criteria

Additional Policies

Last updated on