Date: Thu, 7 May 1998 18:46:52 -0700 (GMT+7) From: Royyana Muslim Ijtihadie <roy@its-sby.edu> To: freebsd-net@FreeBSD.ORG Subject: Re: [SYSOP-L] NAT woes! (fwd) Message-ID: <Pine.LNX.3.95.980507184638.15777C-100000@ns2.its-sby.edu> In-Reply-To: <Pine.SOL.3.96.980507163621.632A-100000@merapi.vsi.dpe.go.id>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <asr@millburn.net> > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.95.980507184638.15777C-100000>