From owner-freebsd-ipfw Fri Jun 9 16:40:59 2000 Delivered-To: freebsd-ipfw@freebsd.org Received: from point.osg.gov.bc.ca (point.osg.gov.bc.ca [142.32.102.44]) by hub.freebsd.org (Postfix) with ESMTP id 9F4FF37C256 for ; Fri, 9 Jun 2000 16:40:48 -0700 (PDT) (envelope-from Cy.Schubert@uumail.gov.bc.ca) Received: (from daemon@localhost) by point.osg.gov.bc.ca (8.8.7/8.8.8) id QAA32102; Fri, 9 Jun 2000 16:40:45 -0700 Received: from passer.osg.gov.bc.ca(142.32.110.29) via SMTP by point.osg.gov.bc.ca, id smtpda32100; Fri Jun 9 16:40:32 2000 Received: (from uucp@localhost) by passer.osg.gov.bc.ca (8.9.3/8.9.1) id QAA01838; Fri, 9 Jun 2000 16:40:31 -0700 (PDT) Received: from cwsys9.cwsent.com(10.2.2.1), claiming to be "cwsys.cwsent.com" via SMTP by passer9.cwsent.com, id smtpdnN1828; Fri Jun 9 16:39:43 2000 Received: (from uucp@localhost) by cwsys.cwsent.com (8.10.2/8.9.1) id e59Ndgw02026; Fri, 9 Jun 2000 16:39:42 -0700 (PDT) Message-Id: <200006092339.e59Ndgw02026@cwsys.cwsent.com> Received: from localhost.cwsent.com(127.0.0.1), claiming to be "cwsys" via SMTP by localhost.cwsent.com, id smtpdyZ2022; Fri Jun 9 16:39:39 2000 X-Mailer: exmh version 2.1.1 10/15/1999 Reply-To: Cy Schubert - ITSD Open Systems Group From: Cy Schubert - ITSD Open Systems Group X-OS: FreeBSD 4.0-STABLE X-Sender: cy To: Andy Dills Cc: freebsd-ipfw@FreeBSD.ORG Subject: Re: Hijacking DNS with ipfw In-reply-to: Your message of "Fri, 09 Jun 2000 19:01:00 EDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 09 Jun 2000 16:39:39 -0700 Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message , Andy Dill s writes: > > (I'm not a member of this list, so please cc me on replies. Thanks.) > > I'm having what appears to be a fundemental problem, and I was hoping > somebody on the list might have an idea on how to proceed. As far as I can > tell from the archives, this hasn't been addressed. > > I'm in a situation where I have customers with various DNS servers > configured. These customers are all behind a FreeBSD (4.0-R) box. The > FreeBSD box is running named (among other things). > > I had thought that this rule would cut it: > > ipfw add 10 fwd 127.0.0.1,53 udp from any to any 53 recv xl1 > > But that just doesn't work. I'm assuming it's because maybe named gets > confused because fwd rules preserve the dest IP (as fwd rules are intended > to be used in transparent cacheing). > > Does anybody have a suggestion on how to approach this? This just changes the next hop a packet would take to its final destination. You'll need to use NAT to do what you want. Regards, Phone: (250)387-8437 Cy Schubert Fax: (250)387-5766 Team Leader, Sun/DEC Team Internet: Cy.Schubert@osg.gov.bc.ca Open Systems Group, ITSD, ISTA Province of BC To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message