A simple routing question

Matthew Seaman matthew at FreeBSD.org
Sun Feb 5 12:05:17 UTC 2017


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-linux-bsd.html

	Cheers,

	Matthew


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 931 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20170205/5961d12e/attachment.sig>


More information about the freebsd-questions mailing list