From owner-freebsd-questions Mon Jan 14 4:12:15 2002 Delivered-To: freebsd-questions@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 8AD1837B402 for ; Mon, 14 Jan 2002 04:11:57 -0800 (PST) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id g0ECB8819297; Mon, 14 Jan 2002 14:11:08 +0200 (EET) (envelope-from ru) Date: Mon, 14 Jan 2002 14:11:08 +0200 From: Ruslan Ermilov To: User Jopet <631pettersson@telia.com> Cc: questions@FreeBSD.ORG Subject: Re: natd/redirect_port Message-ID: <20020114141108.B10203@sunbay.com> Reply-To: questions@FreeBSD.ORG References: <3C4172D5.4050003@telia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3C4172D5.4050003@telia.com> User-Agent: Mutt/1.3.23i 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 On Sun, Jan 13, 2002 at 12:43:17PM +0100, User Jopet wrote: > hello! > > I can't get "redirect_port" working in natd, I have read mailing lists, > doc, etc. But it will not work! > > ISP <-----> 217.208.x.x(dc0)-GW-(rl0)192.168.0.1 <------> 192.168.0.2 > > natd.conf > --------- > interface dc0 > use_sockets yes > same_ports yes > redirect_port tcp 192.168.0.2:22 9999 > > And nothing happens when I telnet to 217.208.x.x 9999 > > I have also tried "redirect_port tcp 192.168.0.2:22 22" > Make sure your kernel was compiled with the IPFIREWALL and IPDIRVERT options. Also make sure you divert IP traffic to the natd(8) process. (You didn't tell us how your firewall rules look like.) Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message