From owner-freebsd-questions Mon Sep 21 14:43:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA14210 for freebsd-questions-outgoing; Mon, 21 Sep 1998 14:43:30 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA13746 for ; Mon, 21 Sep 1998 14:40:51 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from woof.lan.awfulhak.org (brian@woof.lan.awfulhak.org [172.16.0.7]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id WAA11474; Mon, 21 Sep 1998 22:40:04 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from woof.lan.awfulhak.org (brian@localhost [127.0.0.1]) by woof.lan.awfulhak.org (8.9.1/8.9.1) with ESMTP id RAA18529; Mon, 21 Sep 1998 17:44:17 +0100 (BST) (envelope-from brian@woof.lan.awfulhak.org) Message-Id: <199809211644.RAA18529@woof.lan.awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: "James Johnson" cc: freebsd-questions@FreeBSD.ORG Subject: Re: NATD part 2 In-reply-to: Your message of "Sun, 20 Sep 1998 18:29:38 PDT." <003401bde4ff$4d680ce0$0101a8c0@flashpoint> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 21 Sep 1998 17:44:11 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Why don't you use ppp -alias ? You can put ``alias redirect_port tcp 192.168.1.1:80 80'' in your config file. > 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 > -- Brian , , Don't _EVER_ lose your sense of humour.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message