[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with NAT/redirection



On Sat, 8 Jun 2002, Henrik Otterstrøm wrote:

> What am I doing wrong? Any help is greatly appreciated.

Try to load your rules and see if an error occurs.
pfctl -R /etc/pf.conf -N /etc/nat.conf

> nat.conf:
> nat on xl0 from 192.168.1.0/24 to any -> extip
> rdr on xl0 from any to extip/32 port portno -> 192.168.1.2 port portno

You don't really need the /32 (and the second port portno if it's the same
portno as the first). You could specify the proto (tcp or udp).

This should work ... What is not working?


Dries
-- 
Dries Schellekens
email: gwyllion@ulyssis.org