From owner-freebsd-net Sun Dec 16 12:26:38 2001 Delivered-To: freebsd-net@freebsd.org Received: from post.webmailer.de (natpost.webmailer.de [192.67.198.65]) by hub.freebsd.org (Postfix) with ESMTP id BD6E537B405 for ; Sun, 16 Dec 2001 12:26:32 -0800 (PST) Received: from master (pD9049163.dip.t-dialin.net [217.4.145.99]) by post.webmailer.de (8.9.3/8.8.7) with ESMTP id VAA22274 for ; Sun, 16 Dec 2001 21:26:31 +0100 (MET) From: "=?ISO-8859-1?Q?Boris_K=F6ster_?=" Organization: X-ITEC IT-Consulting http://www.x-itec.de To: freebsd-net@freebsd.org Date: Sun, 16 Dec 2001 21:26:30 +0100 MIME-Version: 1.0 Subject: nat / ipdivert problem - if possible please help Message-ID: <3C1D1186.26005.1F1D48@localhost> X-mailer: Pegasus Mail for Windows (v4.01) Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: Quoted-printable Content-description: Mail message body Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I have a problem. hope# uname -a FreeBSD hope.hope 4.4-STABLE FreeBSD 4.4-STABLE #2: Fri Dec 14 14:59:52 CE= T 2006 (???) I have a BSD laptop on 192.168.0.3 I have a BSD server 192.168.0.99 I have a win2k server at 192.168.0.1 I want to route telnet service on .99 to .3 that means if you telnet from .1 to .99 the laptop answers on 3 This feature requires ipfw/natd and I have made a kernel for this (IPFIREW= ALL, IPDIVERT) I don=B4t know how to continue, i tried this on the bsd server: /sbin/ipfw -f flush /sbin/ipfw add divert natd all from any to any via ed0 /sbin/ipfw add pass all from any to any natd -interface ed0 -redirect_port tcp 192.168.0.3:telnet 192.168.0.99:tel= net But without success. I am experimenting a lot of hours/days on this and I do not know how to co= ntinue, need help. -- Boris K=F6ster [C / C++ / PHP / FreeBSD / Security / Consulting] Maintainer of IPSEC Mini-HowTo | QSP | and more. HTTP://www.x-itec.de * koester@x-itec.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message