From owner-freebsd-net Mon May 15 17: 3: 4 2000 Delivered-To: freebsd-net@freebsd.org Received: from Awfulhak.org (tun.AwfulHak.org [194.242.139.173]) by hub.freebsd.org (Postfix) with ESMTP id 4399737B945 for ; Mon, 15 May 2000 17:03:01 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.awfulhak.org [172.16.0.12]) by Awfulhak.org (8.9.3/8.9.3) with ESMTP id BAA86558; Tue, 16 May 2000 01:01:51 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id UAA00432; Mon, 15 May 2000 20:03:25 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200005151903.UAA00432@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Marc Tardif Cc: freebsd-net@FreeBSD.org, brian@hak.lan.Awfulhak.org Subject: Re: ppp filter In-Reply-To: Message from Marc Tardif of "Fri, 12 May 2000 02:20:43 EDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 15 May 2000 20:03:25 +0100 From: Brian Somers Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org You need the ``nat port'' command. nat port tcp fbsd2.box.com:80 80 > How can I redirect www requests from the modem interface on one host to > another host on my local network? > > My current network consists of the following machines, where the "fbsd" > host also has a modem interface (tun0) with the static IP 1.1.1.1 (for > discussion's sake): > 192.168.0.1 fbsd.box.com fbsd > 192.168.0.2 fbsd2.box.com fbsd2 > > What I have tried so far is to connect to my isp using ppp and the nat > flag and then setting a filter as follows: > fbsd# ppp -nat isp > ppp ON fbsd> dial > PPP ON fbsd> set filter in 0 permit 1.1.1.1 192.168.0.2 tcp src eq 80 dst > eq 80 > > Unfortunately, once I set the filter, I cannot ping anywhere outside my > local network so I cannot put tcpdump to good use. Any suggestions to > either solve the problem or help get anywhere with this problem would be > much appreciated. > > Marc Tardif -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message