PF routing packets over wrong interface

Sean Leach kickdaddy at gmail.com
Thu Oct 27 15:17:35 PDT 2005


Hi all,

Using FreeBSD 5.3. I have a gateway with a DSL line and a cable line (DSL is
fxp1 and cable is fxp0). My DSL line is my default line, so the default
gateway of the machine is set to the gateway for my DSL provider.

The problem is, when I send traffic in the cable interface, the machine
routes the traffic over the DSL line back out and the traffic is lost to the
sending host.

I have these rules:

pass out on $dsl_if route-to ($cable_if $cable_gw) from $cable_if to any
keep state
pass out on $cable_if route-to ($dsl_if $dsl_gw) from $dsl_if to any keep
state


but they don't seem to help. How do I force packets that came in fxp0 back
out fxp0 and vice versa?

Thanks!


More information about the freebsd-pf mailing list