beautypg.com

Section 31.1.4, Sections 31.1.4.1 – Westermo RedFox Series User Manual

Page 697

background image

Westermo OS Management Guide

Version 4.17.0-0

31.1.4

Network Address Translation

WeOS supports two kinds of NAT: NAPT (

section 31.1.4.1

) and 1-to-1 (

section 31.1.4.2

).

31.1.4.1

NAPT style NAT

NAPT, or ”Network Address and Port Translation” enables hosts on a private net-
work to share an Internet connection with a single public IP address. NAPT is also
known as IP Masquerading or PAT (Port Address Translation) in the Cisco world.

Network

Internal/Private

Gateway

(public IP address)

Public Network (Internet)

Outbound Interface

Inbound Interface

NAPT

Figure 31.5: NAPT gateway providing access to the Internet. All hosts in the
private network share a single public IP address.

When configuring a NAPT rule, you need to specify the outbound interface

5

. The

appropriate rule will then be added to the post-routing step (see

fig. 31.1

) han-

dling the address translation. A rule is also needed in the forward filtering chain
to enable the forwarding (routing) of traffic, and that can be added automati-
cally by using the ”addfilter” option as shown in the example below (here we
assume that the interface ”Outbound/Public” side is named ”vlan2”.

Example

example:/config/ip/firewall/#> nat type napt out vlan2 addfilter

5

Appropriate interface IP settings must be configured, and IP routing must also be enabled, see

chapter 19

.

➞ 2015 Westermo Teleindustri AB

697

This manual is related to the following products: