Date: Mon, 28 Apr 2014 11:42:59 +0200 From: Andrea Venturoli <ml@netfence.it> To: Dominic Froud <dom@talk2dom.com> Cc: freebsd-net@freebsd.org Subject: Re: Server with multiple public IP Message-ID: <535E22A3.2090404@netfence.it> In-Reply-To: <535E1C66.6090004@talk2dom.com> References: <535E1842.20905@netfence.it> <535E1C66.6090004@talk2dom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 04/28/14 11:16, Dominic Froud wrote: > You want source-based routing. Thanks, that term will help me in my searches. > I have this situation and I used pf(4) to do it with a rule like: > > pass out quick route-to ( vlan2 ) from 2.0.0.0/29 to any no state > > As a variation you can give an optional next-hop address if you have a > static router for that vlan, e.g. if your router is 2.0.0.1: > > pass out quick route-to ( vlan2 2.0.0.1 ) from 2.0.0.0/29 to any no state > > Also, you can run pf and ipfw at the same time! Thanks a lot, I think I'll try this. bye av.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?535E22A3.2090404>