Setting up an internet gateway

As long as we're setting up network services, we may as well go all the way and set up a router to act as a gateway for our network. In most commercial routers, we'll have DNS and DHCP built in, as well as routing. Quite often, these services will all run on the same box. Depending on how you set up your DNS and DHCP servers in the previous sections, you may have even set up your primary DNS and DHCP servers on the same machine, which is quite common. However, your internet connection will likely be terminated on a separate box, possibly a commercial routing device or internet gateway from your internet service provider.

Depending on what kind of internet connection you have, Linux itself can likely replace ...

Get Mastering Ubuntu Server - Second Edition 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.