Multiple Default Routes in Ubuntu 16.04 (and other Debian based systems)

The Situation:

Your workstation/server has both a network connection to the local network with internet access, and a public IP address (or a second, different LAN/WAN/DMZ) on a separate interface. You’d like to run some services, perhaps the Apache web server, and serve them via the public IP address you have directly on your NIC, but still use the LAN connection for everything else. Or maybe you just want to be able to ssh directly to your workstation from home, without forwarding a port on the main firewall. Whatever you want to serve on the public IP address, this is how you can do it.

Continue reading “Multiple Default Routes in Ubuntu 16.04 (and other Debian based systems)”