From owner-freebsd-questions Mon May 31 1:39: 9 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mel.alcatel.fr (mel.alcatel.fr [212.208.74.132]) by hub.freebsd.org (Postfix) with ESMTP id DF5061501A for ; Mon, 31 May 1999 01:39:05 -0700 (PDT) (envelope-from Thierry.Herbelot@alcatel.fr) Received: from aifhs2.alcatel.fr (mailhub.alcatel.fr [155.132.180.80]) by mel.alcatel.fr (ALCANET/SMTP) with ESMTP id JAA14063; Mon, 31 May 1999 09:36:28 +0200 Received: from lune.telspace.alcatel.fr (lune.telspace.alcatel.fr [155.132.144.65]) by aifhs2.alcatel.fr (ALCANET/SMTP2) with ESMTP id KAA15098; Mon, 31 May 1999 10:33:43 +0200 (MET DST) Received: from telss1 (telss1.telspace.alcatel.fr [155.132.51.4]) by lune.telspace.alcatel.fr (8.9.1a/8.9.1) with ESMTP id KAA16670; Mon, 31 May 1999 10:24:34 +0200 (MEST) Received: from telspace.alcatel.fr by telss1 (8.8.8+Sun/SMI-SVR4) id KAA16373; Mon, 31 May 1999 10:28:34 +0200 (MET DST) Message-ID: <37524989.53B85654@telspace.alcatel.fr> Date: Mon, 31 May 1999 10:34:17 +0200 From: Thierry Herbelot Reply-To: thierry.herbelot@alcatel.fr Organization: Alcatel CIT Nanterre X-Mailer: Mozilla 4.6 [en] (X11; I; SunOS 5.5.1 sun4m) X-Accept-Language: en MIME-Version: 1.0 To: Len Conrad Cc: freebsd-questions@FreeBSD.ORG Subject: Re: "ipfw add fwd ipaddr ip ..." syntax References: <4.2.0.56.19990530180943.00a93530@go2france.com> Content-Type: multipart/mixed; boundary="------------788F96F553BFC61DE87B2089" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --------------788F96F553BFC61DE87B2089 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, have a look at the natd(8) man page : -redirect_port proto targetIP:targetPORT [aliasIP:]aliasPORT [remoteIP[:remotePORT]] Redirect incoming connections arriving to given port to an- other host and port. Proto is either tcp or udp, targetIP is the desired target IP number, targetPORT is the desired tar- get PORT number, aliasPORT is the requested PORT number and aliasIP is the aliasing address. RemoteIP and remotePORT can be used to specify the connection more accurately if neces- sary. For example, the argument tcp inside1:telnet 6666 means that tcp packets destined for port 6666 on this machine will be sent to the telnet port on the inside1 machine. Len Conrad wrote: > > We can't come up with a command line that ipfw will swallow. > > I guess what we're trying to do is make a kind of "level3 switch" function. > > hardware config: > > WAN on if0: x.y.z.200 > [mainrouter freebsd + ipfw] > LAN on if1: 192.168.253.254 > > Ethernet > > LAN if0: x.y.z.214 > [somehost] > > What we want is to receive on the mainrouter WAN packets for .214 and > forward on the LAN to somehost. > > We've read the man ipfw page many times, and here's what we come up with: > > ipfw add fwd x.y.z.214 ip from any to x.y.z.214 via if1 > > tia, > Len > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message --------------788F96F553BFC61DE87B2089 Content-Type: text/x-vcard; charset=us-ascii; name="thierry.herbelot.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Thierry Herbelot Content-Disposition: attachment; filename="thierry.herbelot.vcf" begin:vcard n:Herbelot;Thierry tel;work:(+33) 1 46 52 47 23 x-mozilla-html:FALSE url:http://perso.cybercable.fr/herbelot org:CIT Nanterre adr:;;;;;; version:2.1 email;internet:thierry.herbelot@alcatel.fr x-mozilla-cpt:;-22032 fn:Thierry Herbelot end:vcard --------------788F96F553BFC61DE87B2089-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message