On Wed, Mar 15, 2006 at 06:17:54PM -0800, Adam D. Morley wrote:
> Hi,
> 
> I'm attempting to set up alternative routing for a given source IP
> address on a network.  I think I should do this with route-to.  If there
> is a better/easier/whatever way to do this, I'm happy with that too.
> 
> normal default route (10.255.254.254)
>       ^
>       | (em7)
> OpenBSD fw ------(em0)---->alternative route (10.255.253.254)
>       ^
>       | (vlan2)
> openbsd host (10.1.2.79)
> 
> I have the following in pf.conf:
> 
> pass in on vlan2 route-to { em0 10.255.253.254 } from 10.1.2.79 to any keep 
> state

Well, I figured it out.  It should be:

pass in on vlan2 route-to ( em0 10.255.253.254 ) from 10.1.2.79 to any keep 
state
                          ^                    ^

I mis-read the directions in the FAQ and used { } instead of ( ).  It's
not a list.  Duh.

Sorry for the wasted bandwidth.

-- 
adam

Reply via email to