From owner-freebsd-questions Thu Jul 11 13:32:34 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E1F437B400 for ; Thu, 11 Jul 2002 13:32:31 -0700 (PDT) Received: from mail.thundernet.cz (mail.thundernet.cz [62.77.87.114]) by mx1.FreeBSD.org (Postfix) with SMTP id 4FA9743E64 for ; Thu, 11 Jul 2002 13:32:30 -0700 (PDT) (envelope-from neuhauser@bellavista.cz) Received: (qmail 6428 invoked from network); 11 Jul 2002 20:32:28 -0000 Received: from unknown (HELO freepuppy.bellavista.cz) (62.168.44.50) by mail.thundernet.cz with SMTP; 11 Jul 2002 20:32:28 -0000 Received: from freepuppy.bellavista.cz (localhost.bellavista.cz [127.0.0.1]) by freepuppy.bellavista.cz (8.12.5/8.11.6) with ESMTP id g6BKWNEB063198; Thu, 11 Jul 2002 22:32:24 +0200 (CEST) (envelope-from neuhauser@bellavista.cz) Received: (from roman@localhost) by freepuppy.bellavista.cz (8.12.5/8.12.4/Submit) id g6BKWIo0063179; Thu, 11 Jul 2002 22:32:18 +0200 (CEST) X-Authentication-Warning: freepuppy.bellavista.cz: roman set sender to neuhauser@bellavista.cz using -f Date: Thu, 11 Jul 2002 22:32:18 +0200 From: Roman Neuhauser To: Juan Francisco Rodriguez Hervella Cc: "(Lista) freebsd-questions@freebsd.org" Subject: Re: Problems with local port redirection with natd Message-ID: <20020711203218.GL59115@freepuppy.bellavista.cz> Mail-Followup-To: Juan Francisco Rodriguez Hervella , "(Lista) freebsd-questions@freebsd.org" References: <3D298FC7.7878C795@it.uc3m.es> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D298FC7.7878C795@it.uc3m.es> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Date: Mon, 08 Jul 2002 15:12:39 +0200 > From: Juan Francisco Rodriguez Hervella > To: "(Lista) freebsd-questions@freebsd.org" > Subject: Problems with local port redirection with natd > > Hello: > > I've got a http server running in port 80, as usual, but there is > a firewall in my network which doesn't allow such a port, it > only permits connections to port 6667. Yes, it's strange, but that > is what I've got. > > I would like to redirect the connections of this form: > > http://my.server.com:6667 > > to this: > > http://my.server.com:80 > root@mira:~# ps axwww | grep natd > 1235 ?? Ss 0:00.00 natd -interface fxp0 -redirect_port tcp > localhost:80 6667 > > I've also tried with the IP address and the server name instead of > "localhost", without success. > When I try "telnet localhost 6667" nothing happens. 1) 6667 is used by IRC. you might get strange interactions in the future 2) you get nothing because localhost -> 127.0.0.1 -> lo0, not fxp0 try telnet f.q.d.n 6667, that should make the packets go through the fxp iface -- FreeBSD 4.6-STABLE 8:48PM up 12 days, 5:25, 23 users, load averages: 0.00, 0.00, 0.00 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message