A web server behind two gateways?

Alan Somers asomers at freebsd.org
Mon Jul 17 17:48:09 UTC 2017


On Mon, Jul 17, 2017 at 11:19 AM, Eugene Grosbein <eugen at grosbein.net> wrote:
> 17.07.2017 23:46, Alan Somers wrote:
>
>>> So, the solution depends of kind of NAT you use.
>>
>> That's not 100% true.  The web server is choosing which gateway to
>> use.  As Grzegorz said, it's only configured to use a single gateway
>> at a time.  To do what Grzegorz wants, he'll need to use multiple
>> fibs.  Set "net.fibs=2" and "net.add_addr_allfibs=0" in
>> /boot/loader.conf and reboot.
>
> This will work for a server directly connected to both external
> gateways but won't work for a server behind two NAT boxes.
>
> Eugene Grosbein

I think what you meant to say is "this will work for a server directly
connected to two external gateways (whether or not NAT is involved),
but won't work if the server is not on the same subnet as the
gateways".  That's true.  But judging by the OP, I think they're all
on the same subnet.

-Alan


More information about the freebsd-net mailing list