Date: Tue, 10 Jun 2008 21:37:07 +0700 From: "mitrohin a.s." <swp@swp.pp.ru> To: freebsd-pf@freebsd.org Subject: Re: multi gateways setup Message-ID: <20080610143707.GA99039@swp.pp.ru> In-Reply-To: <adc951fe0806100246q6c3b4068rb6743c321c8a7599@mail.gmail.com> References: <adc951fe0806100246q6c3b4068rb6743c321c8a7599@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jun 10, 2008 at 05:46:11PM +0800, Rosli Sukri wrote: > hi > > scenario: > users---->[lan]freebsdpf[wan]----->{gw1,gw2} > where gw1 goes to isp1, and gw2 goes to isp2. > > > requirements: > ftp, http, https traffic goes to gw1 > telnet, ssh, mail and pop goes to gw2 > > can freebsdpf do this? > nat from any to any port = { ftp http https } tag W1 -> (wan1) nat from any to any port = { telnet ssh mail pop } tag W2 -> (wan2) set skip on lan0 pass quick on wan1 tagged W1 keep state pass quick route-to (wan1 gw1) tagged W1 keep state pass quick on wan2 tagged W2 keep state pass quick route-to (wan2 gw2) tagged W2 keep state /swp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080610143707.GA99039>