From owner-freebsd-questions Sun Nov 7 21:54:22 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.ilstu.edu (mail.ilstu.edu [138.87.4.2]) by hub.freebsd.org (Postfix) with ESMTP id CFFB214ED0 for ; Sun, 7 Nov 1999 21:54:20 -0800 (PST) (envelope-from fordp@guide.chi.il.us) Received: from zaphod (south212038.resnet.ilstu.edu [138.87.212.38]) by mail.ilstu.edu (8.9.2/8.9.2) with SMTP id XAA02333 for ; Sun, 7 Nov 1999 23:54:06 -0600 (CST) Message-Id: <3.0.3.32.19991107235514.006a0744@pop.interaccess.com> X-Sender: fordp@pop.interaccess.com X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.3 (32) Date: Sun, 07 Nov 1999 23:55:14 -0600 To: freebsd-questions@freebsd.org From: Ford Prefect Subject: ipfw & forwarding ports.... Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG natd and ipfw have been runing just fine for me until I tried to do the following: I have my outside interface wich gets its address via DHCP on ed0. I have my inside interface set to 192.168.a.b and another machine on that same subnet 192.168.a.c I need to get port 80 from the outside to 192.168.a.c 80 I've been playing with ipfw but nothing seems to work. Perhaps I'm doing somehting stupid... Here's what I've tried: ipfw add fwd 192.168.a.c,80 from any to any ipfw add fwd 192.168.a.c,80 from any to any 80 ipfw add fwd 192.168.a.c,80 from any to any 80 via out_interface ipfw add fwd 192.168.a.c from any to any 80 ipfw add fwd 192.168.a.c from any to any 80 via out_interface I've also used 'ipfw add X fwd ...' to place the entries before and after the natd divert and around other rule chinks that could cause a problem. I've made sure my old rules weren't conflicting with the new ones while testing (by rebooting, or placing them earlier) I'm out of ideas so I figured I'd ask you guys :) Thanks -Steve *=====================================================* \ Ford Prefect Ahead of my time. \ \ fordp@guide.chi.il.us but only by a week. \ \ homepage.interaccess.com/~fordp \ \ \ \ ((In esperanto where available)) \ *=====================================================* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message