From owner-freebsd-questions Tue Dec 19 21:10:59 2000 From owner-freebsd-questions@FreeBSD.ORG Tue Dec 19 21:10:56 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id 65D7037B400 for ; Tue, 19 Dec 2000 21:10:56 -0800 (PST) Received: from rfx-64-6-211-149.users.reflexcom.com ([64.6.211.149]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Tue, 19 Dec 2000 21:09:18 -0800 Received: (from cjc@localhost) by rfx-64-6-211-149.users.reflexcom.com (8.11.0/8.11.0) id eBK5As344573; Tue, 19 Dec 2000 21:10:54 -0800 (PST) (envelope-from cjc) Date: Tue, 19 Dec 2000 21:10:54 -0800 From: "Crist J. Clark" To: Thomas Uhrfelt Cc: "'freebsd-questions@freebsd.org'" Subject: Re: Redirect ports with NAT Message-ID: <20001219211054.K96105@149.211.6.64.reflexcom.com> Reply-To: cjclark@alum.mit.edu References: <01C069C0.F0CA4900.thomas.uhrfelt@plymovent.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <01C069C0.F0CA4900.thomas.uhrfelt@plymovent.se>; from thomas.uhrfelt@plymovent.se on Tue, Dec 19, 2000 at 01:38:14PM +0100 Sender: cjc@rfx-64-6-211-149.users.reflexcom.com Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Dec 19, 2000 at 01:38:14PM +0100, Thomas Uhrfelt wrote: > I have an internal machine on the 192.168.10.10 adress which I want > accessable via telnet from the outside world. > > My gateway is a FreeBSD box providing internet access for all the internal > machines (192.168.1.254) and o.p.q.z as the outside static IP. ^ You use '192.168.10.10' below? > My commandline start for natd: > /sbin/natd -use_sockets yes -same_ports yes -u yes -dynamic yes -n ep0 > -redirect_port tcp 192.168.10.10:23 8888 -redirect_port udp > 192.168.10.10:23 8888 Doesn't that give you an error? # /sbin/natd -use_sockets -same_ports -u -dynamic -n ep0 -redirect_port tcp 192.168.10.10:23 8888 Or better yet, # /sbin/natd -n ep0 -f /etc/natd.conf # cat /etc/natd.conf use_sockets same_ports dynamic unregistered_only redirect_port tcp 192.168.10.10:23 8888 -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message