[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: IPF/IPNAT Problem
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: IPF/IPNAT Problem
- From: "shrimpcookie" <shrimpcookie_(_at_)_mediaone_(_dot_)_net>
- Date: Fri, 13 Apr 2001 17:52:27 -0700
> > # $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
Visit your host, monkey.org