From owner-cvs-src@FreeBSD.ORG Fri Apr 23 07:27:28 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7944916A4CE; Fri, 23 Apr 2004 07:27:28 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76B5443D2D; Fri, 23 Apr 2004 07:27:28 -0700 (PDT) (envelope-from andre@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i3NERSGe063764; Fri, 23 Apr 2004 07:27:28 -0700 (PDT) (envelope-from andre@repoman.freebsd.org) Received: (from andre@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i3NERR34063763; Fri, 23 Apr 2004 07:27:28 -0700 (PDT) (envelope-from andre) Message-Id: <200404231427.i3NERR34063763@repoman.freebsd.org> From: Andre Oppermann Date: Fri, 23 Apr 2004 07:27:27 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/netinet ip_fw.h ip_fw2.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Apr 2004 14:27:28 -0000 andre 2004/04/23 07:27:27 PDT FreeBSD src repository Modified files: sys/netinet ip_fw.h ip_fw2.c Log: Add the option versrcreach to verify that a valid route to the source address of a packet exists in the routing table. The default route is ignored because it would match everything and render the check pointless. This option is very useful for routers with a complete view of the Internet (BGP) in the routing table to reject packets with spoofed or unrouteable source addresses. Example: ipfw add 1000 deny ip from any to any not versrcreach also known in Cisco-speak as: ip verify unicast source reachable-via any Reviewed by: luigi Revision Changes Path 1.84 +1 -0 src/sys/netinet/ip_fw.h 1.57 +31 -7 src/sys/netinet/ip_fw2.c