From owner-freebsd-questions Sun Sep 20 18:31:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA22782 for freebsd-questions-outgoing; Sun, 20 Sep 1998 18:31:17 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from obsolete.sprynet.com (2Cust2.tnt4.krk1.da.uu.net [208.254.14.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA22775 for ; Sun, 20 Sep 1998 18:31:01 -0700 (PDT) (envelope-from jjohnson@spry.com) Received: from flashpoint (flashpoint [192.168.1.1]) by obsolete.sprynet.com (8.8.8/8.8.8) with SMTP id UAA01628 for ; Sat, 19 Sep 1998 20:40:50 GMT (envelope-from jjohnson@spry.com) Message-ID: <003401bde4ff$4d680ce0$0101a8c0@flashpoint> From: "James Johnson" To: Subject: NATD part 2 Date: Sun, 20 Sep 1998 18:29:38 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Okay thanks for the suggestions all but they arent working I dial into my isp which assigns me a dynamic IP (for the time being, soon they are going to offer static which I plan to get). I have my freebsd box setup as a gateway for my LAN. The FreeBSD machine has an IP of 192.168.1.2. The NT Box has an IP of 192.168.1.1.... I want to take incoming connections to port 80 (http) and redirect them to the NT Box Since I have to dial into my ISP my device is tun0. The BSD box is connected to the lan via ep0 I have the following setup rc.firewall ---------------------- /sbin/ipfw -f flush /sbin/ipfw add divert natd all from any to any via tun0 /sbin/ipfw add pass all from any to any natd.cf ----------------------- interface tun0 redirect_port tcp 192.168.1.1:80 80 I invoke natd -f /etc/natd.cf after establishing my connection using ppp. (actually, ppp.linkup does :) My kernel is compiled with divert and firewall enabled. When I attempt to connect to the ip my isp assigns me, it does not redirect rather it refuses the connection. What did I screw up? :) Thanks --James To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message