O'Reilly logo

Policy Routing Using Linux® by Matthew G. Marsh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Policy Routing NAT

Since NAT is a routing function, you decide you want to try out some of the various uses. You decide to return to the test setup you had in Chapter 6. This scenario is shown in Figure 8.2 as a refresher.

Figure 8.2. Test network schematic.

You are now going to use router1 to do some testing. To this end you set up the testing environment as follows:

NetworkA       192.168.1.0/24
NetworkB       10.1.1.0/24
net1    192.168.1.1/24
router1 A      192.168.1.254/24
router1 B      10.1.1.254/24
host1   10.1.1.2/24
host2   10.1.1.3/24

Since you have the capability of looking at the actual packet traces, you decide to try a simple NAT in which all packets ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required