fa.netbsd.tech.net
[Top] [All Lists]

Re: IPFilter and policy routing?

Subject: Re: IPFilter and policy routing?
From: Bernd Ernesti <netbsd@xxxxxxxxxxxxxx>
Date: Mon, 14 Jul 2008 18:24:52 UTC
Newsgroups: fa.netbsd.tech.net

On Mon, Jul 14, 2008 at 12:21:09PM +0200, Urban Boquist wrote:
> I have a machine that needs to be reachable on two public IPs
> (connected to two different ISPs) during a transition period. So I
> need a way to force some packets out a certain interface rather than
> to take the default route. After some googling it seems that IPFilter
> should be able to do this, with rules like:
> 
> pass out quick on fxp0 to tlp0 from 172.16.1.1/32 to any

Hmmm, I had such a setup in the past and at that time I used something like 
this:
  pass out quick on fxp0 to tlp0:172.16.1.2 from 172.16.1.1/32 to any
where 172.16.1.2 is the gateway on the other side of that interface.

Bernd


<Prev in Thread] Current Thread [Next in Thread>