Back to the Single NATed Network

It may surprise you to hear that there are cases where setting up a small network is in fact more difficult than working with a large one.

Going back to the situation where the servers are on the same physical network as the clients, the basic NATed configuration from "A Webserver and a Mail Server on the Inside—The NAT Version" on A Webserver and a Mail Server on the Inside—The NAT Version works very well, up to a point. In fact, everything works brilliantly as long as all you are interested in is getting traffic from hosts outside your local net to reach your servers.

To save you from paging back and forth, here is the basic configuration:

 webserver = "192.168.2.7" webports = "{ http, https }" emailserver = "192.168.2.5" ...

Get The Book of PF now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.