From owner-freebsd-stable  Tue Apr 30 23:10:21 2002
Delivered-To: freebsd-stable@freebsd.org
Received: from terrasat.ro (lc0.terrasat.ro [81.18.64.17])
	by hub.freebsd.org (Postfix) with ESMTP id 6E61037B404
	for <freebsd-stable@freebsd.org>; Tue, 30 Apr 2002 23:10:03 -0700 (PDT)
Received: from razvan (unverified [81.18.65.131]) by terrasat.ro
 (Vircom SMTPRS 4.3.182) with ESMTP id <B0001542562@terrasat.ro> for <freebsd-stable@freebsd.org>;
 Wed, 1 May 2002 09:09:39 +0300
From: "Razvan Cremenescu" <cremenescu@terrasat.ro>
To: <freebsd-stable@FreeBSD.ORG>
Subject: RE: ipnat.conf syntax ?
Date: Wed, 1 May 2002 09:09:53 +0300
Message-ID: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAI40GHvEUg0SjdaKTdhTSasKAAAAQAAAAiOnyRZn8fEyMEYXllMUFZQEAAAAA@terrasat.ro>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.2616
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
In-Reply-To: <20020501012246.A10347@mysticjah.org>
Importance: Normal
Disposition-Notification-To: "Razvan Cremenescu" <cremenescu@terrasat.ro>
Sender: owner-freebsd-stable@FreeBSD.ORG
Precedence: bulk
List-ID: <freebsd-stable.FreeBSD.ORG>
List-Archive: <http://docs.freebsd.org/mail/> (Web Archive)
List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-stable>
List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-stable>
X-Loop: FreeBSD.ORG


ipnat.conf should look like this:

map rl0 (external interface) 192.168.0.0/24 -> 0/32 (or other ip)

then, in rc.local:

/sbin/ipnat -CF
/sbin/ipnat -f /etc/ipnat.conf


Razvan Cremenescu,

=================================
Network Operations Center Pitesti

e-mail: cremenescu@terrasat.ro
Tel:    +40-48-250015 int. 25
        +40-48-251112 int. 25
Mobile: +40-92-685805
=================================
Terra Sat Comp
Resita 1700 CS, Romania
http://www.terrasat.ro
company@terrasat.ro 
Tel:    +40-55-220012
        +40-55-220013
Fax:    +40-55-220117
=================================

It took the computing power of three C-64s to fly to the Moon.
It takes an 800Mhz P3 to run Windows XP. Something is wrong here.



-----Original Message-----
From: owner-freebsd-stable@FreeBSD.ORG
[mailto:owner-freebsd-stable@FreeBSD.ORG] On Behalf Of fictif
Sent: Wednesday, May 01, 2002 4:23 AM
To: freebsd-stable@freebsd.org
Subject: ipnat.conf syntax ?


Basicly, here is my trouble :

mysticjah# cat ipnat.conf 
rdr ed0 192.168.1.1 port 21 -> 192.168.1.2 port 21 tcp mysticjah# ipnat
-f ipnat.conf 
1: syntax error in "rdr"


What's wrong ?

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message