This just permits the traffic - it doesn't actually do any NAT. Check out
section 4.1 in the tutorial ( http://www.obfuscation.org/ipf/ipf-howto.pdf ).
It describes the map command which will accomplish the NAT for you.

Paul

Deling Ren wrote:

> Hi all, I searched the FAQ and the howto and still can not find answer to
> this question: I am using ipfilter on a gateway to NAT a home LAN. I set
> up the rules so that I can make tcp connections to the outside world on
> any of the computers in the LAN:
>
> pass out quick on xl0 proto tcp/udp from 192.168.1.0/24 to any keep state
>
> Fair enough. But this does not allow traffic to the outside on the gateway
> itself, whose IP address on the outter interface is obtained via DHCP from
> the ISP. Unfortunately, I sometimes need to do so to install programs in
> the port (it's a FreeBSD box). Since the IP address is dynamic, how can I
> write such a rule?
>
> Any help will be appreciated.
>
> Thanks.
>
> Best regards.
> Deling Ren

--
NOTICE: If received in error, please destroy and notify sender.  Sender does
not waive confidentiality or privilege, and use is prohibited.


Reply via email to