It is no clear what you really want to accomplish, but I think you 
want rdr and not route-to.
aside from that I don't know the status of route-to and friends in the 
freebsd port, but MAx surely does ;-)

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
> 

-- 
Henning Brauer, BS Web Services, http://bsws.de
[EMAIL PROTECTED] - [EMAIL PROTECTED]
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)

Reply via email to