Date: Sun, 5 Feb 2017 12:04:59 +0000 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-questions@freebsd.org Subject: Re: A simple routing question Message-ID: <898f594f-8762-6935-8a19-046fc87bb6e6@FreeBSD.org> In-Reply-To: <33a14dcd9e8e9897c49e045e1606bdb1@Robert-Eckardt.de> References: <33a14dcd9e8e9897c49e045e1606bdb1@Robert-Eckardt.de>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --RDbODQ0BQvTIwU65gRw53FVaUAxRuPLkq Content-Type: multipart/mixed; boundary="907diBaCvI6bbbfVJSCoaum6659CdGss6"; protected-headers="v1" From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-questions@freebsd.org Message-ID: <898f594f-8762-6935-8a19-046fc87bb6e6@FreeBSD.org> Subject: Re: A simple routing question References: <33a14dcd9e8e9897c49e045e1606bdb1@Robert-Eckardt.de> In-Reply-To: <33a14dcd9e8e9897c49e045e1606bdb1@Robert-Eckardt.de> --907diBaCvI6bbbfVJSCoaum6659CdGss6 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 05/02/2017 10:30, Robert Eckardt wrote: > The QUESTION: > Is there a solution to this scenario in FreeBSD? Your keywords here are: policy based routing On FreeBSD, you can use the pf(4) firewall to implement this. Look in particular at the 'route-to' and 'reply-to' terms. Googling for "policy based routing freebsd pf" will return very many references which you can look through for yourself, but this blog article contains the gist of what you want: https://prosauce.org/blog/2010/12/22/route-based-on-source-ip-address-lin= ux-bsd.html Cheers, Matthew --907diBaCvI6bbbfVJSCoaum6659CdGss6-- --RDbODQ0BQvTIwU65gRw53FVaUAxRuPLkq Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJYlxTwXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkAT5BoP/0kgFCVaWZXhlICazpWV/c4e CGwIbqx9odYRdf1e85Jpe7t64xbiGAk6G2lOKM3LlDtioIsTRmoErH5vtRRHV4zd LvznPihq4noOyFnqJoKLGCkVZecosdHNsjrik717CGjbEadXzHA7Gv3AyO6poOAU ECMr60/4HNJZfRwZnSap1ki1EnlVAEJvj08r2t2eju6Tf/n/kINAblvgQtirp2Ff QVfhOcZ7O2sZdu4ZrZEkCbFEIQbHIUZDc3n5D/yD01UknBpDHLm4O77c99gDGavl rvtFRvdh0HKr6qKA+FSfMrgCa3ESA6r1ad2ezKLTboeTG68kVrbwXKzUFbwDh1DE xyF39iGGcmmnFLt2XmS7iBu+h3/fN90AUbE+lYgBGTx0HoDwHijVv811LPos52S1 TwphQi86B2qlJ8CFjUR9nj1hWGqWsYUzIomSyevcyNGW07GTXgRBQiyRUq7/t09g 2zg106Cgd2/s/+rMQDtDK1Nl20OYxeaQJ7aIXQ3fs7lA+QLxSao5IY6H96jiEkWw J3QSaAqPAwOyNDxqfPuxbF9pheFObaM0X7DJNgdpqQ+YJHd8KG6PbIypNh9mqe8e 9Dq8UysyoYXYyTjFw1bGdZ/CFkhVQExHue/weHuSSBQe2j5KCWvMSrg0I0qhSKwx Wz9mzrtHtd9KbhhRb24o =mExp -----END PGP SIGNATURE----- --RDbODQ0BQvTIwU65gRw53FVaUAxRuPLkq--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?898f594f-8762-6935-8a19-046fc87bb6e6>