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

Re: IPF/IPNAT Problem



> > # $OpenBSD: ipnat.rules,v 1.2 1999/05/08 16:33:10 jason Exp $
> > #
> > # See /usr/share/ipf/nat.1 for examples.
> > # edit the ipnat= line in /etc/rc.conf to enable Network Address Translation
> > 
> > #map ppp0 10.0.0.0/8 -> ppp0/32 portmap tcp/udp 10000:20000
> > 
> > map dc0 192.168.1.0/24 -> dc0/32 portmap tcp/udp 20000:60000
> > map dc0 192.168.1.0/24 -> dc0/32
> > 
> > 	--ipnat -l--
> > 
> > shrimpcookie# ipnat -l
> > List of active MAP/Redirect filters:
> > map dc0 192.168.1.0/24  -> 24.31.44.167/32  portmap tcp/udp 20000:60000
> > map dc0 192.168.1.0/24  -> 24.31.44.167/32 
> > 
> > List of active sessions:
> > shrimpcookie# 
> > 
> 
> map dc0 192.168.1.0/24 -> dc0/32 portmap tcp/udp 20000:60000
> 
> may work a little better for a DHCP assigned address.


Al, 

You will notice that is exactly what I'm doing in my ipnat.rules file 
above. The ipnat -l command resovles the dynamically assigned IP 
of the dc0 interface.

-shrimpcookie