From owner-freebsd-ipfw@FreeBSD.ORG Thu Aug 2 23:34:07 2007 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6F0016A417 for ; Thu, 2 Aug 2007 23:34:07 +0000 (UTC) (envelope-from rudal999@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.185]) by mx1.freebsd.org (Postfix) with ESMTP id A2EB513C465 for ; Thu, 2 Aug 2007 23:34:07 +0000 (UTC) (envelope-from rudal999@gmail.com) Received: by rv-out-0910.google.com with SMTP id f1so445836rvb for ; Thu, 02 Aug 2007 16:34:07 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=tzfYdndsdSOGlAu5+JgoG+ybSWya/pWtBTosWkiqG/a18HOiY4Rtq3K7UJajwOb579dgDipTx+hsxJ4ttq0qY/4Tp/x5yUzfl/LU9tgLRvnzgV/8Q78RihSu5LWVR3qCk8Pr1T4PgEgZxe+P4NzOelKytLcydsSpEnPX/2LHrIE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=LCmVxyq1SDX72I23rpmFzKqqS8OlVNzwonIVaFrYfNLGU1gAv8DsPcD3M6ybX7klkFRTRebLCBf6L2VJEDZd07M4nUj/cBN/M9pNWBKtOAE0z/2+B2L1Qar/aVenAg/Wb0NGP2wfI0N8SUzeglxYj5q5N/D0uIZtgMG8B2gPVo8= Received: by 10.142.114.15 with SMTP id m15mr107926wfc.1186096011971; Thu, 02 Aug 2007 16:06:51 -0700 (PDT) Received: by 10.143.3.6 with HTTP; Thu, 2 Aug 2007 16:06:51 -0700 (PDT) Message-ID: <8b24e4de0708021606h5bbee266xb3a4814962d26643@mail.gmail.com> Date: Thu, 2 Aug 2007 16:06:51 -0700 From: "Rudy Setiawan" To: freebsd-ipfw@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: redirect traffic based on destination port to another interface X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Aug 2007 23:34:07 -0000 Hi, I am trying to do a traffic redirection based on destination port to another interface/gateway. Currently, I have a freebsd box that does simple NAT and an Internet connection. I am planning to install another internet connection and use the same box to do some traffic redirection. INTERNET1 -------- freebsd box ------- INTERNET2 | | Local Area Network LAN = 192.168.10.0/24 with interface em0 INTERNET1-GW = x.x.x.1 with em1 INTERNET2-GW = y.y.y.1 with rl0 My goal is to redirect any ssh traffic to INTERNET2-GW and I assume that if it can be redirected through INTERNET2-GW then the packets return will go through INTERNET2-GW also. Is it possible to do that way with ipfw or natd? Thank you Regards, Rudy -- +++++++++ http://foodblog.rudal.com