Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
/
Network Address Translation (NAT)
Published Nov 07, 2019

Network Address Translation (NAT)

Nov 07, 2019
Subscribe

Network Address Translation (NAT) maps outbound IP addresses to prevent exposing internal IP addresses.

NAT allows you to:

  • Conceal the internal IP address from external exposure or access.

  • Reduce the demand for registered IP addresses because internal IP addresses are not revealed to the outside world.

Incoming IP addresses can be translated to correct internal IP addresses.

Source Network Address Translation (SNAT)

Source Network Address Translation (SNAT) maps internal (private) IP addresses to an external (public) IP addresses. SNAT rewrites the IP address of the computer that originated the packet.

SNAT is composed of two steps:

  1. Translating an internal IP address into an external IP address.

  2. Undoing the translation for returning traffic. That is, rewriting the IP address of the computer that originated the packet.

For example, consider an internal IP address 10.1.2.27 sends a packet to an external web server. The Barracuda Web Application Firewall translates the internal IP address 10.1.2.27 to an external IP address 209.165.201.10. When the external web server responds, the external IP address 209.165.201.10 receives the packet and sends it to the internal IP address 10.1.2.27.

Barracuda Web Application Firewall SNAT Capabilities

Following are the SNAT Capabilities provided by the Barracuda Web Application Firewall:

  • Dynamic NAT: Sets up a sequential translation between internal IP addresses and external IP addresses. You can specify a range of external IP addresses, and the Barracuda Web Application Firewall dynamically maps the internal IP address to the available external IP address. Make entries in the following fields and the Barracuda Web Application Firewall will translate internal source IP addresses to the available external IP address.

    • Pre SNAT Source – Enter internal IP address (10.1.2.0)

    • Pre SNAT Source Mask – Enter subnet mask (255.255.255.0)

    • Post SNAT Source – Enter a range of external IP addresses (209.165.201.11 - 209.065.201.16)

  • Static NAT: Sets up a one-to-one translation between a single internal IP address and a single external IP address. For example, you can specify that an internal IP address of 10.1.2.27 will always translate to 209.165.201.10.

You can add a SNAT rule in the NETWORKS > NAT page. In the Add NAT section, select Source NAT as NAT Type and specify values for the fields. For more information, click Help on the relevant product page.

Destination Network Address Translation (DNAT)

Destination Network Address Translation (DNAT) rewrites the destination IP address of incoming traffic. Consider you have a server inside your LAN, and you want users outside the network to access that server. This can be accomplished by configuring DNAT rule that directs all the traffic passing through the Barracuda Web Application Firewall to the internal network.

For example, users outside your network cannot access a mail server inside your LAN with the IP address 192.168.2.5 on port 25 through the Barracuda Web Application Firewall because routing to a private IP address is not possible. If you want to allow users access that mail server, you must configure the DNAT rule for port 25 so that traffic destined for port 25 on the WAN interface of the Barracuda Web Application Firewall is redirected to 192.168.2.5.

Ensure that you configure an ACL rule along with the DNAT rule to allow the traffic to pass through the Barracuda Web Application Firewall via port 25. Otherwise, the Barracuda Web Application Firewall will drop the incoming packets.

You can add a DNAT rule in the NETWORKS > NAT page. In the Add NAT section, select Destination NAT as NAT Type and specify values for the fields. For more information, click Help on the relevant product page.


We value your feedback.
If you have questions, suggestions, or feedback on our documentation, contact the Campus Product Documentation team.
For general product inquiries or technical support, please contact the global Barracuda Support team.

🔍 Discover Our Product Documentation

Barracuda Web Application Firewall
Results will update as you type.
  • How to Update Your Notification Email Addresses
  • What's New in the Barracuda Web Application Firewall
  • 30-Day Evaluation Guide - Barracuda Web Application Firewall
  • Getting Started
  • Deployment
  • Services
  • Securing HTTP/HTTPS Traffic
  • Advanced Bot Protection
  • Client-Side Protection
  • API Security
  • Advanced Security
  • IP Reputation-Based Filters
  • Tuning Security Rules
  • Barracuda Active Threat Intelligence
  • Access Control
  • Traffic Management
  • Configuring User-Defined Patterns
  • Logging, Reporting and Monitoring
  • High Availability
  • Networking
    • Network Address Translation (NAT)
    • Multiport Link Aggregation and Network Interface Card (NIC) Configuration
    • Access Control List (ACL)
    • ACLs for Forwarded Traffic
    • Virtual Local Area Network (VLAN)
    • Routes
    • Interfaces
    • Network Configuration
    • How to Use IPV6
  • System Administration and Maintenance
  • Certificate Management
  • Centralized Management of the Barracuda Web Application Firewall
  • Attacks Description - Action Policy
  • REST API
  • Common Web Application Attacks
  • How to Set Up Barracuda Cloud Control
  • End of Support and End of Life Information
  • Critical Vulnerabilities in Web Application
  • Barracuda Advanced Bot Protection Cloud Infrastructure Upgrade Information
  • Barracuda WAF 12.2 Firmware Hardened to Augment Security of Product Features

    You‘re viewing this with anonymous access, so some content might be blocked.
    {"serverDuration": 14, "requestCorrelationId": "95b59c109ab947449a3091c96966d9e0"}