From owner-freebsd-questions Wed Jun 2 23:59:31 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mta2-rme.xtra.co.nz (unknown [203.96.92.3]) by hub.freebsd.org (Postfix) with ESMTP id DADF81501D for ; Wed, 2 Jun 1999 23:59:27 -0700 (PDT) (envelope-from junkmale@pop3.xtra.co.nz) Received: from wocker ([210.55.152.36]) by mta2-rme.xtra.co.nz (InterMail v04.00.02.07 201-227-108) with SMTP id <19990603070149.ZEHG8785947.mta2-rme@wocker>; Thu, 3 Jun 1999 19:01:49 +1200 From: "Dan Langille" Organization: The FreeBSD Diary To: tsikora@tiac.net Date: Thu, 3 Jun 1999 18:59:26 +1200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: ipnat Reply-To: junkmale@xtra.co.nz Cc: freebsd-questions@freebsd.org In-reply-to: <199906030135.UAA29932@metis.host4u.net> X-mailer: Pegasus Mail for Win32 (v3.01d) Message-Id: <19990603070149.ZEHG8785947.mta2-rme@wocker> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've cc'd this message freebsd-questions. > (Need a modified form of this) > map ed0 192.168.0.0/16 -> 0.0.0.0/32 portmap tcp/udp > 40000:65000 > map ed0 192.168.0.0/16 -> 0.0.0.0/32 Well, have you tried? map ed0 192.168.0.2/32 -> 0.0.0.0/32 portmap tcp/udp 40000:65000 ...and then another for each other machine > I use Linux currently with ipchains and ipfwadm. I use > the following there: > > # IP masquerading for kernel 2.2 > > /sbin/ipchains -P forward DENY > /sbin/ipchains -A forward -j MASQ -s 192.168.0.2/32 -d > 0.0.0.0/0 > /sbin/ipchains -A forward -j MASQ -s 192.168.0.3/32 -d > 0.0.0.0/0 > > # IP masquerading with ipfwadm and 1.3 thru 2.0 kernels. > > /sbin/ipfwadm -F -p deny > /sbin/ipfwadm -F -a m -S 192.168.0.2/32 -D 0.0.0.0/0 > /sbin/ipfwadm -F -a m -S 192.168.0.3/32 -D 0.0.0.0/0 Well, I've never used Linux. > I list each machine(192.168.0.2 and 192.168.0.3) because > 192.168.0.1 has a separate leased line (dial-up) to the > internet. The Masq machine is 192.168.0.4. Could you show > me the rules for IPnat for individual machines to use with > FreeBSD 3.2 Your help would be greatly appreciated. I had > bad luck with natd.(constant host is down error) Did you see any help with that natd problem? Sounds pretty straight forward. -- Dan Langille - DVL Software Limited The FreeBSD Diary - http://www.FreeBSDDiary.org/freebsd/ NZ FreeBSD User Group - http://www.nzfug.nz.freebsd.org/ The Racing System - http://www.racingsystem.com/racingsystem.htm To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message