From owner-freebsd-questions Mon Jul 8 6:12:57 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 D3B7B37B400 for ; Mon, 8 Jul 2002 06:12:54 -0700 (PDT) Received: from smtp.uc3m.es (smtp02.uc3m.es [163.117.136.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id D01EB43E99 for ; Mon, 8 Jul 2002 06:12:53 -0700 (PDT) (envelope-from jrh@it.uc3m.es) Received: from smtp02.uc3m.es (localhost [127.0.0.1]) by smtp.uc3m.es (Postfix) with ESMTP id C9CA34336D for ; Mon, 8 Jul 2002 15:12:52 +0200 (CEST) Received: from it.uc3m.es (alacran.it.uc3m.es [163.117.140.44]) by smtp02.uc3m.es (Postfix) with ESMTP id 6069D99F16 for ; Mon, 8 Jul 2002 15:12:52 +0200 (CEST) Message-ID: <3D298FC7.7878C795@it.uc3m.es> Date: Mon, 08 Jul 2002 15:12:39 +0200 From: Juan Francisco Rodriguez Hervella X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: "(Lista) freebsd-questions@freebsd.org" Subject: Problems with local port redirection with natd Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 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 Yes, I also know that I could have the Apache listening on port 6667, but I'd like to learn how can I do such a redirection with my FreeBSD-4.5 Im trying to use "natd". I've recompiled the kernel and follow the steps indicated in "man natd". I've got the following rules: 00100 allow ip from any to any 00200 divert 8668 ip from any to any via fxp0 65535 deny ip from any to any And "natd" is running like this: 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. Any suggestion ? Thanks in advance. JFRH. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message