Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jul 2017 11:48:07 -0600
From:      Alan Somers <asomers@freebsd.org>
To:        Eugene Grosbein <eugen@grosbein.net>
Cc:        FreeBSD Net <freebsd-net@freebsd.org>, freebsd-jail@freebsd.org,  Grzegorz Junka <list1@gjunka.com>
Subject:   Re: A web server behind two gateways?
Message-ID:  <CAOtMX2g6cwDCWJNabqp8AxX_ojSD9T8M9Ga3%2BcX7aUysmzLjSg@mail.gmail.com>
In-Reply-To: <596CF1BA.8050104@grosbein.net>
References:  <a35370da-531d-6678-4a60-95304bdd919b@gjunka.com> <596CA093.6020508@grosbein.net> <CAOtMX2h6zBi4aVDSdUP_Po_JwOLbxynanZ624530mGLk16fWbg@mail.gmail.com> <596CF1BA.8050104@grosbein.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 17, 2017 at 11:19 AM, Eugene Grosbein <eugen@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2g6cwDCWJNabqp8AxX_ojSD9T8M9Ga3%2BcX7aUysmzLjSg>