Subject: Re: mark and route traffic with two links
To: NetBSD netbsd-users <netbsd-users@NetBSD.org>
From: Matthias Scheler <tron@zhadum.org.uk>
List: netbsd-users
Date: 01/25/2007 07:22:41
On Wed, Jan 24, 2007 at 10:00:50AM -0800, Paul Newhouse wrote:
> pass in proto tcp from $dsl_if to $dsl_net port 25 keep state
> pass out log on $ext_if route-to $dsl_if proto { tcp udp icmp } from \
> {$dsl_net} to any
>
> The above trap the messages going out on the wrong interface BUT, then they
> disappear.
It's not that easy. You also need to NAT accordingly. It doesn't help
to route stuff to the other interface if it uses the wrong IP address.
Kind regards
--
Matthias Scheler http://zhadum.org.uk/