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

Re: natd with dynamic IP address

Den 11 Jan 00, klockan 7:37
skrev Mark Reardon om (natd with dynamic IP address):

> Hi,
> I have installed userland PPP and have this auto dialing the net
> happily.
> My next question is how do I set up natd to work with a dynamic IP
> address?
> ...
> map ppp0 -> ppp0/32 portmap tcp/udp 10000:20000
> map ppp0 -> ppp0/32
> ...

ipnat expands ppp0/tun0 to the ip-address ppp0/tun0 has AT THE TIME when you run ipnat,
so you have to run ipnat AFTER you have gotten your dynamic-IP.

Try this config, which works for me.


WIth ppp (tun0)
	 shell ipnat -CF -f /etc/ipnat.rules

	/etc/ppp/ppp.linkdown (tun0)
	 shell ipnat -CF

Or, with pppd (ppp0)
	/etc/ppp/ip-up (do a chmod +x)
	ipnat -CF -f /etc/ipnat.rules

	/etc/ppp/ip-down (do a chmod +x)
	ipnat -CF


Visit your host, monkey.org