Date: Tue, 28 Aug 2007 15:44:16 -0500 From: CyberLeo Kitsana <cyberleo@cyberleo.net> To: Eric Crist <mnslinky@gmail.com> Cc: User Questions <freebsd-questions@freebsd.org> Subject: Re: quick pf source-based routing question Message-ID: <46D48920.6060002@cyberleo.net> In-Reply-To: <6CC1B795-8345-48F3-8FF1-7FCC5561A9B1@gmail.com> References: <6CC1B795-8345-48F3-8FF1-7FCC5561A9B1@gmail.com>
index | next in thread | previous in thread | raw e-mail
Eric Crist wrote:
> Hey,
>
> We have a problem here at the office that I'd like to solve with pf and
> source-based routing.
>
> How would I write a rule with pf to route any traffic from 10.1.1.1
> across a specific interface?
Perhaps some permutation of the following?
pass in on $int_if route-to { ($ext1_if $ext1_gw) } round-robin from
$int_net to $ext1_net keep state
Where *_if is the interface name, *_gw is the gateway address, and *_net
is the subnet/mask of that interface.
--
Fuzzy love,
-CyberLeo
Technical Administrator
CyberLeo.Net Webhosting
http://www.CyberLeo.Net
<CyberLeo@CyberLeo.Net>
Furry Peace! - http://wwww.fur.com/peace/
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46D48920.6060002>
