From owner-freebsd-isp@FreeBSD.ORG Fri Jun 25 21:40:35 2004 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7489516A4CE for ; Fri, 25 Jun 2004 21:40:35 +0000 (GMT) Received: from whitehall.lin-tech.net (whitehall.lin-tech.net [66.118.35.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C19D43D46 for ; Fri, 25 Jun 2004 21:40:35 +0000 (GMT) (envelope-from bob@buckhorn.net) Received: from [209.34.61.145] (lfkn-adsl-dhcp-62-145.txucom.net [209.34.61.145]) by whitehall.lin-tech.net (Postfix) with ESMTP id 2542DFE1B; Fri, 25 Jun 2004 16:39:35 -0500 (CDT) Message-ID: <40DC9B4D.8010207@buckhorn.net> Date: Fri, 25 Jun 2004 16:38:21 -0500 From: Bob Martin User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7) Gecko/20040614 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Gustavo A. Baratto" References: <028201c45ade$5a6b2f70$6400a8c0@chivas> In-Reply-To: <028201c45ade$5a6b2f70$6400a8c0@chivas> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd and fprot cc: freebsd-isp@freebsd.org Subject: Re: ipfw and mail X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jun 2004 21:40:35 -0000 We don't redirect the mail. We just have the mail server listen on both ports. Much easier that way. Bob Martin Gustavo A. Baratto wrote: >Hello guys, > >some of our users' ISPs don't allow them to use port 25, so they cannot use out mail server. > >I want to open a new port (2525) and forward all packets from 2525 to 25 so, they can use mail. > >I tried this in IPFW: >0100 119649 44772439 allow tcp from any to me dst-port 25 keep-state >0200 0 0 divert 25 ip from any to me dst-port 2525 keep-state >0300 103075 35531648 allow ip from me to any keep-state >0400 60 4530 deny log ip from any to any > > >If I telnet directly to port 25, I can get the prompt, but if I telnet to port 2525, I get a connection refused. > >What should I do in ipfw to forward port 2525 to port 25 tranparently? > >Thanks >_______________________________________________ >freebsd-isp@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-isp >To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org" > >