From owner-freebsd-questions@FreeBSD.ORG Sun May 23 18:29:00 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B0FB116A4CE for ; Sun, 23 May 2004 18:29:00 -0700 (PDT) Received: from kende.com (ns1.kende.com [66.17.131.94]) by mx1.FreeBSD.org (Postfix) with SMTP id 4FF8643D1D for ; Sun, 23 May 2004 18:29:00 -0700 (PDT) (envelope-from andras@kende.com) Received: (qmail 17940 invoked by uid 0); 24 May 2004 01:28:45 -0000 Received: from unknown (HELO ak) (67.163.120.76) by ns1.kende.com with SMTP; 24 May 2004 01:28:45 -0000 From: "Andras Kende" To: "'Michael Zimmer'" , Date: Sun, 23 May 2004 20:28:36 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Thread-Index: AcRBI1k8CXlxoMAlSgezHuLjG+vt3QACw3uw Message-Id: <20040524012900.4FF8643D1D@mx1.FreeBSD.org> Subject: RE: IPF/IPNat router/gateway X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 May 2004 01:29:00 -0000 -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Michael Zimmer Sent: Sunday, May 23, 2004 7:08 PM To: freebsd-questions@freebsd.org Subject: IPF/IPNat router/gateway Hello. I apologize for asking a question which has been asked several dozen times before, but none of the prior-offered solutions seem to work. I'm trying to use a freeBSD box (v 5.1) as a gateway/router for my network. I've got a static IP range for the network, but can't get things running. (...the local machines are all running Windows XP Pro) The local machines can connect to my ISP when they're plugged in to the uplink, whether individually or through a hub, and the freeBSD box can as well. ...however, a machine plugged into the BSD box is unable to ping the BSD box and vice versa. IPF is set to pass in/out quick all from any to any IPNat has the following rules set: map rl0 192.168.1.0/24 -> x.x.x.254/32 portmap tcp/udp 10000:40000 map rl0 192.168.1.0/24 -> x.x.x.254/32 IP of the BSD box is x.x.x.254, mask 255.255.255.224 on the external NIC IP of the BSD box is 192.168.1.1, mask 255.255.255.224 on the internal NIC the lone machine connected to it at the moment is set on IP 192.168.1.2, mask 255.255.255.224, gateway 192.168.1.1 ...and rc.conf has gateway_enable, ipfilter_enable and ipnat_enable all set to "YES" thanks. _________________________________________________________________ Hello, I used this great howto to get my ipfilter gateway going: http://bsdguides.org/guides/freebsd/networking/ipfilter.php "however, a machine plugged into the BSD box is unable to ping the BSD box and vice versa." When you connect a XP to the Freebsd you still using Hub right? Or crossover cable? Andras Kende http://www.kende.com