O'Reilly logo

pfSense 2 Cookbook by Matt Williamson

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

Creating an outbound NAT rule

This recipe describes how to create an outbound NAT rule.

Getting ready

An outbound NAT rule defines how traffic leaving a network will be translated. This can be a difficult concept to grasp at first since most general networking scenarios are only concerned with where network packets are headed, not what they look like when they leave.

This recipe will describe how to use an outbound NAT rule to solve a common scenario which involves NATing to a single machine with multiple interfaces. We will assume that we have a single destination server with two interfaces—LAN and DMZ, and our pfSense firewall is protecting both interfaces. Using a regular old port-forward rule, we forward HTTP requests to the server on its DMZ ...

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