From owner-freebsd-net Thu May 7 04:44:56 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA02124 for freebsd-net-outgoing; Thu, 7 May 1998 04:44:56 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from ns1.sby.ywcn.or.id ([167.205.169.3]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id EAA02114 for ; Thu, 7 May 1998 04:44:47 -0700 (PDT) (envelope-from roy@its-sby.edu) Received: from its-sby.edu [167.205.169.82] by ns1.sby.ywcn.or.id with ESMTP (SMTPD32-4.02) id A2F435D00F8; Thu, 07 May 1998 18:42:12 GMT+7 Received: from ns2.its-sby.edu (ns2.its-sby.edu [167.205.169.82]) by its-sby.edu (8.8.4/8.8.4) with SMTP id SAA15789 for ; Thu, 7 May 1998 18:46:52 -0700 Date: Thu, 7 May 1998 18:46:52 -0700 (GMT+7) From: Royyana Muslim Ijtihadie To: freebsd-net@FreeBSD.ORG Subject: Re: [SYSOP-L] NAT woes! (fwd) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, 7 May 1998, Dali Ahmad wrote: > On Thu, 7 May 1998, Royyana Muslim Ijtihadie wrote: > > > > > > > ---------- Forwarded message ---------- > > Date: Wed, 6 May 1998 20:39:39 -0400 (EDT) > > From: Adam Rothschild > > To: freebsd-net@FreeBSD.ORG, freebsd-security@FreeBSD.ORG > > Subject: NAT woes! > > > > Hey everyone... > > > > I'm trying to setup the following, and I'm failing miserably. > > > > Internal network -[ed0]- FreeBSD (2.2.5) box -[ex0]- public IP > > 192.168.0.0/24 1.2.3.4 > > > > - FreeBSD box blocks all incoming connections, except on TCP port 25 > > > > Here's what I have. Note that the NAT for internal machines accessing the > > 'net works nicely. However, I can't figure out how to allow tcp port 25 > > into the box on it's public interface [ex0]. > > > > o FreeBSD box is assigned 192.168.0.1 on the ed0 interface, and 1.2.3.4 on > > the ex0 interface. > > o The following script is executed to initiate things: > > > > natd -log -redirect_address 192.168.0.0 0.0.0.0 -n ex0 -u > > ipfw -f flush > > ipfw add divert natd all from any to any > > ipfw add pass all from any to any > > how about using this setting : > > > natd -interface ex0 > /sbin/ipfw add 32768 divert natd all from any to any via ex0 > > it works just fine on my box. > > ------------------------------------------- > Dali Ahmad > GIS & Remote Sensing Project Coordinator > Volcanological Survey of Indonesia > Jalan Diponegoro 57 Bandung 40122 > Tel. +62 22 774 706 > Fax. +62 22 702 761 > E-mail dali@vsi.dpe.go.id > daliahmad@ibm.net > ------------------------------------------ > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message