Subject: Re: ipnat when box IP is changing
To: Wojciech Puchar <wojtek@wojtek.3miasto.net>
From: Bruce Anderson <brucea@shell.spacestar.net>
List: netbsd-users
Date: 10/06/2001 22:45:14
On Sat, Oct 6, 2001 5:56 PM, Wojciech Puchar
<mailto:wojtek@wojtek.3miasto.net> wrote:
>how to define ipnat.conf to masquerade from 192.168.0.0/16 through ppp0
>interface when it's IP is unknown (dial-up connection).
>or it's impossible so i should regenerate ipnat.conf and rerun ipnat after
>connection (ip-up script)
>
>

We do not masquerade (that is Linux). NAT = Network Address Translation.

cat /etc/ipnat.conf
map ppp0 192.168.0.0/16  -> 0.0.0.0/32  portmap tcp/udp 10000:60000
map ppp0 192.168.0.0/16  -> 0.0.0.0/32  
##

No magic needed.




" Stamp out root logins .  .  .  . su "   --Bruce Anderson  
 This message was created and sent using Cyberdog 2.0, MacOS 8.6,
 awk, find, sed, sendmail, sh, and NetBSD a free Multi-Platform OS.
 NetBSD runs on  44 different system architectures featuring 16
 distinct families of CPUs.   http://www.netbsd.org/