> It is no clear what you really want to accomplish, but I think you
> want rdr and not route-to.
True as ipfw's fwd does more than route-to. Quoting ipfw(8):
"If ipaddr is a local address, then matching packets will be for-
warded to port (or the port number in the packet if one is not
specified in the rule) on the local machine."
To do this with pf, you must use rdr.
> aside from that I don't know the status of route-to and friends in the
> freebsd port, but Max surely does ;-)
Quite well and working (at least in my tests). Might suffer _a bit_ in
performance, due to needed locking, compared to OpenBSD.
HB> On Wed, Oct 22, 2003 at 07:56:14PM +0200, Mark Bojara wrote:
>> Hello All,
>>
>> I bet this subject has come up a couple of times. But searching through
>> the previous threads i could not find a working solution for me.
>>
>> I recently compiled pf/altq in FreeBSD 5.1 to see how it runs. I am trying
>> to set up so that all traffic comming from 192.168.0.2 is routed to
>> 192.168.0.1.
>>
>> My default route points to tun0 and 192.168.0.0/30 sits on tun1.
>>
>> in FreeBSD's ipfw i do:
>> ipfw add fwd 192.168.0.1 ip from 192.168.0.0/30 to any via tun0 (this works fine)
>>
>> in PF i do:
>> pass out quick on tun0 route-to (tun1 192.168.0.1) from 192.168.0.0/30 to any
>>
>> This does not work.. I reall dislike ipfw and would like to get the whole
>> system working on PF.
>>
>> Thanks alot
>> Mark Bojara
>>
--
Best regards,
Max mailto:[EMAIL PROTECTED]