Date: Thu, 20 Sep 2012 17:36:59 +0300 From: Nikolay Denev <ndenev@gmail.com> To: =?iso-8859-1?Q?Juan_Jos=E9_S=E1nchez_Mesa?= <juanjo.listas@doblej.net> Cc: freebsd-net@freebsd.org Subject: Re: Multiroute question Message-ID: <1A848DF9-53C7-4A06-85CD-81234EC85BF8@gmail.com> In-Reply-To: <505B2555.40704@doblej.net> References: <505B2555.40704@doblej.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sep 20, 2012, at 5:16 PM, Juan Jos=E9 S=E1nchez Mesa = <juanjo.listas@doblej.net> wrote: > Hi! >=20 > (sorry for my bad english) >=20 > I have a FreeBSD machine (8.2-RELEASE-p3). The machine has two = ethernet cards, configured in this way: >=20 > - Card A: internet IP address > - Card B: intranet IP address >=20 > Default route goes via card A. >=20 > Now, on the intranet I have a "normal" DSL router. Then, using NAT = i've forewarded a simple port from the DSL to the intranet IP of this = machine. >=20 > The incoming packets from the DSL comes ok to the machine (via card = B), but the outgoing packet goes to card A, due to the default route. >=20 > There is a way to configure the network so that outgoing packets goes = to the card from where the incoming packets was arrived ? >=20 > Or is this impossible to configure ? >=20 > Thanks!!! >=20 > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" Hi, You will probably need the pf(4) firewall configured with the "reply-to" = keyword for this to work. Something like : pass in on $CARD_B reply-to ($CARD_B, $CARD_B_GW) from any to any Regards, Nikolay Denev
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1A848DF9-53C7-4A06-85CD-81234EC85BF8>