From owner-freebsd-questions Fri Sep 27 03:20:25 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA06328 for questions-outgoing; Fri, 27 Sep 1996 03:20:25 -0700 (PDT) Received: from terra.stack.urc.tue.nl (terra.stack.urc.tue.nl [131.155.140.128]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id DAA06281 for ; Fri, 27 Sep 1996 03:20:20 -0700 (PDT) Received: from alterego.stack.urc.tue.nl (alterego.stack.urc.tue.nl [131.155.141.160]) by terra.stack.urc.tue.nl (8.7.5) with ESMTP id MAA12288 for ; Fri, 27 Sep 1996 12:20:13 +0200 (MET DST) Received: (from xaa@localhost) by alterego.stack.urc.tue.nl (8.7.6/8.6.12) id MAA05478 for freebsd-questions@freebsd.org; Fri, 27 Sep 1996 12:20:12 +0200 (MET DST) From: Mark Huizer Message-Id: <199609271020.MAA05478@alterego.stack.urc.tue.nl> Subject: Q: router/forwarding configuration To: freebsd-questions@freebsd.org Date: Fri, 27 Sep 1996 12:20:12 +0200 (MET DST) Reply-To: xaa@stack.urc.tue.nl X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi! Somehow I cna't get it to work. I'm trying to build a gateway/firewall on a 2.1.5-stable machine, but it won't forward packages, even with a rule allow all from any to any what I have is a kernel with IPFORWARD and for the routing (fictitious numbers): ifconfig le0 inet 10.10.10.1 netmask 255.255.255.0 ifconfig le1 inet 192.168.1.1 netmask 255.255.255.0 route add 10.10.10.1 127.0.0.1 route add 192.168.1.1 127.0.0.1 route add -net 10.10.10 10.10.10.1 route add -net 192.168.1 192.168.1.1 route add default 192.168.1.2 (with the last rule being our cisco to the outside world) symptoms: ping 10.10.10.255 works just once, then only finds the machine itself, machines on the 10.* network can't get out. Anything obvious I missed??? Mark Huizer ------------------------------------------------------------------------- - Mark Huizer - xaa@stack.urc.tue.nl - rcbamh@urc.tue.nl - ------------------------------------------------------------------------- - We live in a world that wants to believe in a heaven after death, - - yet condemns suicide... - -------------------------------------------------------------------------