Subject: Re: mark and route traffic with two links
To: Roberto Pereyra <pereyra.roberto@gmail.com>
From: Matthias Scheler <tron@zhadum.org.uk>
List: netbsd-users
Date: 01/24/2007 13:31:17
On Wed, Jan 24, 2007 at 09:05:48AM -0300, Roberto Pereyra wrote:
> I using netbsd 3.1.
>
> --------inet1 ------fxp0----| |
> | netbsd | --------clients
> --------inet2-------fxp1----| |
>
>
> I would like to mark some kind of traffic (like www outbound) and route
> through inet2.
>
> Any hint ?
You can use PF to achieve that. From "man 5 pf.conf":
route-to
The route-to option routes the packet to the specified interface
with an optional address for the next hop. When a route-to rule
creates state, only packets that pass in the same direction as the
filter rule specifies will be routed in this way. Packets passing
in the opposite direction (replies) are not affected and are routed
normally.
Kind regards
--
Matthias Scheler http://zhadum.org.uk/