From owner-freebsd-net@FreeBSD.ORG Thu Nov 6 00:40:37 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 71D062E0 for ; Thu, 6 Nov 2014 00:40:37 +0000 (UTC) Received: from mail-wi0-x233.google.com (mail-wi0-x233.google.com [IPv6:2a00:1450:400c:c05::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F133812E for ; Thu, 6 Nov 2014 00:40:36 +0000 (UTC) Received: by mail-wi0-f179.google.com with SMTP id h11so58187wiw.6 for ; Wed, 05 Nov 2014 16:40:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=eMBQ8Fi6RQhE8s9p8EAFxyON0Gv1OIUfdZ9MYS1Npqg=; b=S/sam2bQP3YES4cDJyZRAt2ySL/hWvNWB3XddXbbuibh21HZgxDAaZZe0wmETuzXuW 92CZUq5VE1kQEQU5HiggZFx6h0rfr2eUgL3OoaiTeY8CBEyr+yitxPR5uNo5evfFZSlV jO6hjtCy2tQk0pwYRHCef0GdM8ymarMxbgXNOXdil002PljjLgEFutM5yGIYSNoq8NQY DzZvMYoyUYAFXuv6j96W3L6umji6nEK4QlYSITRuXvmoZAqJ5QuyawDq65KRP3iQKe5e /lILxulcft6/NF4rfOd2rHcIHdYXKFkTXCuXIlhaos0+VrSyL6xMfwzdbNeE/qlYFf6v tKvQ== MIME-Version: 1.0 X-Received: by 10.180.104.105 with SMTP id gd9mr36141171wib.65.1415234433500; Wed, 05 Nov 2014 16:40:33 -0800 (PST) Received: by 10.217.92.7 with HTTP; Wed, 5 Nov 2014 16:40:33 -0800 (PST) In-Reply-To: <9547E931-AF82-4F5C-AA22-865E93831A27@freebsdbrasil.com.br> References: <20141104221216.GA17502@onelab2.iet.unipi.it> <9547E931-AF82-4F5C-AA22-865E93831A27@freebsdbrasil.com.br> Date: Wed, 5 Nov 2014 22:40:33 -0200 Message-ID: Subject: Re: netmap-ipfw on em0 em1 From: Evandro Nunes To: Patrick Tracanelli Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-net@freebsd.org" , Luigi Rizzo X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-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: Thu, 06 Nov 2014 00:40:37 -0000 On Wed, Nov 5, 2014 at 8:44 PM, Patrick Tracanelli < eksffa@freebsdbrasil.com.br> wrote: > Hey, what you are doing wrong is much more simple than you expect. > > > # ./kipfw em1 em2 > & /tmp/kipfw.log & > > [1] 66583 > > Just run ./kipfw netmap:em1 netmap:em2 and this will probably work. > > Please remember to redirect kipfw output to somewhere you are not reading > only *after* you are sure the output is showing errors. If you could read > the output you would probably get something like =E2=80=9Cerror opening e= m0=E2=80=9D or > something like that coming netmap. > hello dear patrick thank you, yes it did work now at least it is counting packets but things are still weird, even though I have only count and allow rules, and yes they are counting packets, when I run kipfw, every packet on em1 and em2 gets dropped immediately. no matter they are allow rules counting packets, packets get dropped and machine-A gets completely isolated from machine-C any further help is appreciated