From owner-freebsd-net@FreeBSD.ORG Sun Apr 18 17:37:44 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CDD2416A4CE for ; Sun, 18 Apr 2004 17:37:44 -0700 (PDT) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE22B43D41 for ; Sun, 18 Apr 2004 17:37:43 -0700 (PDT) (envelope-from glebius@cell.sick.ru) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.12.9/8.12.8) with ESMTP id i3J0bfQE056484 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 19 Apr 2004 04:37:41 +0400 (MSD) (envelope-from glebius@cell.sick.ru) Received: (from glebius@localhost) by cell.sick.ru (8.12.9/8.12.6/Submit) id i3J0be9n056483 for freebsd-net@freebsd.org; Mon, 19 Apr 2004 04:37:41 +0400 (MSD) Date: Mon, 19 Apr 2004 04:37:40 +0400 From: Gleb Smirnoff To: freebsd-net@freebsd.org Message-ID: <20040419003740.GB56442@cell.sick.ru> Mail-Followup-To: Gleb Smirnoff , freebsd-net@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline User-Agent: Mutt/1.5.6i Subject: route into netgraph? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Apr 2004 00:37:44 -0000 Dear networkers, does anyone can give me a hint? I want to inject some traffic with a specific destination to netgraph. For example I want to route all traffic with dst 10.0.0.0/8 to my netgraph node, whereever it came from - came on interface or generated locally. I see only one way to do this - divert it with ipfw to ng_ksocket. But, it'll be nice to use smth like: route add 10.0.0.0/8 -iface ng0 and receive packets on ng0's inet hook. Any other ideas? -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE