From owner-cvs-all@FreeBSD.ORG Thu Aug 17 22:49:50 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE47316A4DA; Thu, 17 Aug 2006 22:49:50 +0000 (UTC) (envelope-from julian@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B089C43D49; Thu, 17 Aug 2006 22:49:50 +0000 (GMT) (envelope-from julian@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k7HMnoC4001587; Thu, 17 Aug 2006 22:49:50 GMT (envelope-from julian@repoman.freebsd.org) Received: (from julian@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k7HMno9J001586; Thu, 17 Aug 2006 22:49:50 GMT (envelope-from julian) Message-Id: <200608172249.k7HMno9J001586@repoman.freebsd.org> From: Julian Elischer Date: Thu, 17 Aug 2006 22:49:50 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/netinet ip_fw.h ip_fw2.c src/sbin/ipfw ipfw.8 ipfw2.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Aug 2006 22:49:51 -0000 julian 2006-08-17 22:49:50 UTC FreeBSD src repository Modified files: sys/netinet ip_fw.h ip_fw2.c sbin/ipfw ipfw.8 ipfw2.c Log: Allow ipfw to forward to a destination that is specified by a table. for example: fwd tablearg ip from any to table(1) where table 1 has entries of the form: 1.1.1.0/24 10.2.3.4 208.23.2.0/24 router2 This allows trivial implementation of a secondary routing table implemented in the firewall layer. I expect more work (under discussion with Glebius) to follow this to clean up some of the messy parts of ipfw related to tables. Reviewed by: Glebius MFC after: 1 month Revision Changes Path 1.192 +16 -2 src/sbin/ipfw/ipfw.8 1.93 +44 -9 src/sbin/ipfw/ipfw2.c 1.107 +2 -0 src/sys/netinet/ip_fw.h 1.143 +23 -7 src/sys/netinet/ip_fw2.c