Top
Basic Concepts
Network Address Translation (NAT)
Network Address Translation (NAT, also known as network masquerading or IP masquerading) rewrites the source and/or destination addresses/ports of IP packets as they pass through a router or firewall. It is most commonly used to connect multiple computers to the Internet (or any other IP network) by using one IP address. This allows home users and small businesses to cheaply and efficiently connect their network to the Internet.
The basic purpose of NAT is to multiplex traffic from the internal network and present it to the Internet as if it was coming from a single computer having only one IP address. The Mediatrix unit’s NAT service allows the dynamic creation and configuration of network address translation rules. Depending on some criteria, the packet matching the rule may see its source or destination address modified.
- Source rules: They are applied on the source address of outgoing packets.
- Destination rules: They are applied on the destination address of incoming packets.
Top
Understanding Network Address Translation Rules
A NAT rule specifies a set of matching conditions for network packets.
- Source Address
- Destination Address
- Protocol (All, TCP, UDP or ICMP).
- Source Port
- Destination Port
Top
NAT Rule Order - Important
The NAT rules are applied on a first match basis, in the order they appear in the configuration.
Because the first match is applied, you must ensure that specific rules come before more general rules, or the specific rules might not be applied as desired.
Top
Destination or Source IP Address Format
- An empty string, meaning that the rule will match any IP address
- An IP address, for example 192.168.0.11
- A network address, for example 192.168.1.0/24, which corresponds to all IP addresses in the range 192.168.1.0 to 192.168.1.255
- Specifying the interface name without a trailing slash represents the IP address
- The same name with the trailing slash represents the network.Note: This is case sensitive (the first letter must be uppercase)
- Lan1 will be replaced by the current IP address of the lan interface, 192.168.0.10
- Lan1/ will be replaced with the network of the lan interface, /24, meaning the range from 192.168.0.0 to 192.168.0.255.
If the specified interface is disabled or removed, the rule is automatically disabled thus removed from the NAT. When the network interface is enabled or added back, the rule is automatically enabled and applied in the NAT.
Top
Source or Destination Port Format
- An empty string, meaning that the rule will match any port
- Single port, for example for a web server: 80
- A range of ports, for example to forward RTP: 5004-5099
Top
Interaction of NAT rules with the Firewall Service
When using the Network Firewall service, it is important to configure it with respect to the Destination NAT rules because:
- Source NAT (SNAT) rules are executed after the routing decision, before the packet leaves the unit.
- Destination NAT (DNAT) rules are executed before the routing decision, as the packet enters the unit.
An example of this would be port forwarding where the DNAT changes the routed address of a packet to a new IP address/port. The Network Firewall must also accept connection to this IP/port in order for the port forwarding to work.
Top
Basic Tasks
Starting/Stopping/Restarting the NAT Service Using the DGW Web Page
- If you clicked , the tab from which you can access the service from the Web pages are greyed out
- If you clicked , the tab from which you can access the service from the Web pages are no longer greyed out.
Top
Enabling IPv4 Forwarding
- Go to Network/IP Routing.
- In the IP Routing configuration table, select Enable.
- Click Save.
Top
Creating a Source NAT Rule
Top
Creating a Destination NAT Rule
Top
NAT Rule Examples
Creating a Source NAT Rule to Forward the Lan to the Uplink Network Interface
- Go to Network/NAT.
- In the Source Network Address Translation Rules, click .
- From the Activation selection list, click Enable.
- In the Source Address field, enter Lan1/.
- From the Protocol selection list, choose All.
- In the New Address field, enter Uplink.
- Click Save & Apply.
Top
Online Help
If you are not familiar with the meaning of the fields and buttons, click Show Help, located at the upper right corner of the Web page. When activated, the fields and buttons that offer online help will change to green and if you hover over them, the description will bedisplayed.
Top
DGW Documentation
Mediatrix devices are supplied with an exhaustive set of documentation.
Mediatrix user documentation is available on the Media5 Documentation Portal.
- Release notes: Generated at each GA release, this document includes the known and solved issues of the software. It also outlines the changes and the new features the release includes.
- Configuration notes: These documents are created to facilitate the configuration of a specific use case. They address a configuration aspect we consider that most users will need to perform. However, in some cases, a configuration note is created after receiving a question from a customer. They provide standard step-by-step procedures detailing the values of the parameters to use. They provide a means of validation and present some conceptual information. The configuration notes are specifically created to guide the user through an aspect of the configuration.
- Technical bulletins: These documents are created to facilitate the configuration of a specific technical action, such as performing a firmware upgrade.
- Hardware installation guide: They provide the detailed procedure on how to safely and adequately install the unit. It provides information on card installation, cable connections, and how to access for the first time the Management interface.
- User guide: The user guide explains how to customise to your needs the configuration of the unit. Although this document is task oriented, it provides conceptual information to help the user understand the purpose and impact of each task. The User Guide will provide information such as where and how TR-069 can be configured in the Management Interface, how to set firewalls, or how to use the CLI to configure parameters that are not available in the Management Interface.
- Reference guide: This exhaustive document has been created for advanced users. It includes a description of all the parameters used by all the services of the Mediatrix units. You will find, for example, scripts to configure a specific parameter, notification messages sent by a service, or an action description used to create Rulesets. This document includes reference information such as a dictionary, and it does not include any step-by-step procedures.
Top
Copyright Notice
Copyright © 2023 Media5 Corporation.
This document contains information that is proprietary to Media5 Corporation.
Media5 Corporation reserves all rights to this document as well as to the Intellectual Property of the document and the technology and know-how that it includes and represents.
This publication cannot be reproduced, neither in whole nor in part, in any form whatsoever, without written prior approval by Media5 Corporation.
Media5 Corporation reserves the right to revise this publication and make changes at any time and without the obligation to notify any person and/or entity of such revisions and/or changes.