From owner-freebsd-net Thu May 11 23:32:17 2000 Delivered-To: freebsd-net@freebsd.org Received: from Gloria.CAM.ORG (Gloria.CAM.ORG [205.151.116.34]) by hub.freebsd.org (Postfix) with ESMTP id 0C10937B6C4 for ; Thu, 11 May 2000 23:32:14 -0700 (PDT) (envelope-from intmktg@CAM.ORG) Received: from localhost (intmktg@localhost) by Gloria.CAM.ORG (8.9.3/8.9.3) with ESMTP id CAA11593 for ; Fri, 12 May 2000 02:20:43 -0400 Date: Fri, 12 May 2000 02:20:43 -0400 (EDT) From: Marc Tardif To: freebsd-net@freebsd.org Subject: ppp filter Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message