Need to configure multiple default gateways for four seperate physical network ports for a FreeBSD Webserver

Posted by user20010 on Server Fault See other posts from Server Fault or by user20010
Published on 2010-12-20T21:32:44Z Indexed on 2012/09/15 15:40 UTC
Read the original article Hit count: 143

Filed under:

I need to configure default gateways for four separate physical network interfaces for a FreeBSD Webserver. Basically, this is a web server that needs to be accessed by multiple WANS. I've been using various online resources, and a combination of setfib, pf, and ipfw. This web server will be deployed in multiple sites where access to next hop router info is not available, so we can't use static routes.

We've used setfib to successfully create multiple routing tables and can ping beyond every default gateway we've created. Using setfib # ping ip.addr.what.ever we can ping anything available on a wan and beyond the router. The problem is we can't get Apache web server (port 80) traffic to route out when external users access the server(box).

Multiple people have examples of binding setfib to ipfw commands, but none of them seem to work.

© Server Fault or respective owner

Related posts about freebsd