25.02.2013 Views

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

As shown in Figure 3-11, Basic NAT takes the <strong>IP</strong> address of an outgoing packet<br />

<strong>and</strong> dynamically translates it to an officially assigned global address. For<br />

incoming packets, it translates the assigned address to an internal address.<br />

NAT Configuration<br />

RESERVE a.b.2.0 255.255.255.0<br />

TRANSLATE 10.0.0.0 255.0.0.0<br />

Non-Secure a.b.1.0/24<br />

a.b.1.1<br />

Figure 3-11 Basic Network Address Translation (NAT)<br />

From the point of two hosts that exchange <strong>IP</strong> packets with each other, one in the<br />

internal network <strong>and</strong> one in the external network, the NAT itself is transparent<br />

(see Figure 3-12).<br />

Non-Secure a.b.1.0/24<br />

a.b.1.1<br />

<strong>TCP</strong>/UDP<br />

<strong>IP</strong>/ICMP<br />

NAT<br />

Filtering<br />

src=a.b.1.1 dest=a.b.2.1 src=a.b.1.1 dest=10.0.1.1<br />

Looks like a<br />

normal router<br />

src=a.b.1.1 dest=a.b.2.1<br />

Figure 3-12 NAT seen from the external network<br />

Filtering Rules<br />

Based on non-translated<br />

<strong>IP</strong> addresses (10.x.x.x)<br />

10.0.0.0/8<br />

Basic NAT translation mechanism<br />

For each outgoing <strong>IP</strong> packet, the source address is checked by the NAT<br />

configuration rules. If a rule matches the source address, the address is<br />

translated to a global address from the address pool. The predefined address<br />

pool contains the addresses that NAT can use for translation. For each incoming<br />

Secure<br />

10.0.1.1<br />

a.b.2.0/24<br />

Secure<br />

a.b.2.1<br />

Chapter 3. Internetworking protocols 91

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!