Shell Script to Route Multiple Public/Private Interfaces

If you have a server with multiple interfaces – either public and/or private – your routing table might cause traffic to be routed out the wrong interface. If you have two public interfaces, from two different network providers, you need to create two distinct routing tables. This script makes that job easier by automating the process for one or more servers in your network.