From owner-freebsd-net@FreeBSD.ORG Wed Nov 19 07:44:54 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 25030D0 for ; Wed, 19 Nov 2014 07:44:54 +0000 (UTC) Received: from smtp.sitkom.cz (smtp.sitkom.cz [IPv6:2a03:3a00:1:2::4:b]) by mx1.freebsd.org (Postfix) with ESMTP id A9888C99 for ; Wed, 19 Nov 2014 07:44:53 +0000 (UTC) Received: from spamd.smtp.sitkom.cz (unknown [10.13.127.4]) by smtp.sitkom.cz (Postfix) with ESMTP id B0CD34209 for ; Wed, 19 Nov 2014 08:44:42 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on smtp.sfn X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 Received: from avscan.smtp.sitkom.cz (unknown [10.13.127.4]) by spamd.smtp.sitkom.cz (Postfix) with ESMTP id 8A1CA4204 for ; Wed, 19 Nov 2014 08:44:42 +0100 (CET) Received: from wopr.admini.uzel.sfn (unknown [IPv6:2a03:3a00:2:d14:4261:86ff:fec9:7bf]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.sitkom.cz (Postfix) with ESMTPSA id 6B5054203 for ; Wed, 19 Nov 2014 08:44:42 +0100 (CET) Message-ID: <546C4A6A.4060401@borsice.net> Date: Wed, 19 Nov 2014 08:44:42 +0100 From: Michal Buchtik User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: netmap-ipfw IPv6 problem? Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP on smtp.sitkom.cz 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: Wed, 19 Nov 2014 07:44:54 -0000 Hello, I try netmap-ipfw and have problem with IPv6 rule Running on FreeBSD 10.1-RELEASE (compiled from source, kernel with option NETMAP added) $ ipfw/ipfw add 00100 allow ipv6 from any to any connected to 127.0.0.1:5555 ipfw: getsockopt(IP_FW_ADD): Protocol not supported and on kipfw output i see ipfw: no IPv6 support in kernel ipv6-icmp works $ ipfw/ipfw add 00100 allow ipv6-icmp from any to any connected to 127.0.0.1:5555 00100 allow ipv6-icmp from any to any $ ipfw/ipfw list connected to 127.0.0.1:5555 nalloc 2248 nbytes 176 ptr 0x0 00100 allow ipv6-icmp from any to any 65535 allow ip from any to any but when try kernel ipfw, it works # ipfw add 10001 allow ip6 from any to any 10001 allow ip6 from any to any # ipfw list 10000 allow ip from any to any 10001 allow ip6 from any to any 65535 deny ip from any to any kipfw start output $ ./kipfw netmap:igb0 netmap:igb1 [ 589.405494] missing.c:main [724] initializing tick to 200 [ 589.405508] missing.c:callout_startup [361] start init_children mod_idx value 9 +++ start module 0 ipfw ipfw at 0x61e3c0 order 0x1 +++ start module 1 sy_ipfw SYSINIT at 0x0 order 0x2 ipfw2 initialized, divert loadable, nat loadable, default to accept, logging disabled +++ start module 2 sy_Vnet_ipfw SYSINIT at 0x0 order 0x3 [ 589.405545] missing.c:callout_init [308] c 0x61e990 mpsafe 8 [ 589.405580] missing.c:pfil_head_get [89] called [ 589.405583] missing.c:pfil_add_hook [96] called +++ start module 3 dummynet dummynet at 0x61e418 order 0x4 DUMMYNET 0x0 with IPv6 initialized (100409) [ 589.405594] missing.c:taskqueue_create_fast [427] start dummynet fn 0x4154c0 ctx 0x61ea08 [ 589.405598] missing.c:taskqueue_start_threads [435] tqp 0x61ea08 count 1 (dummy) [ 589.405600] missing.c:callout_init [308] c 0x61e9d0 mpsafe 8 +++ start module 4 dn_fifo dn_fifo at 0x61e448 order 0x5 [ 589.405605] ip_dummynet.c:load_dn_sched [2245] dn_sched FIFO loaded +++ start module 5 dn_wf2qp dn_wf2qp at 0x61e4f8 order 0x6 [ 589.405610] ip_dummynet.c:load_dn_sched [2245] dn_sched WF2Q+ loaded +++ start module 6 dn_rr dn_rr at 0x61e5a8 order 0x7 [ 589.405614] ip_dummynet.c:load_dn_sched [2245] dn_sched RR loaded +++ start module 7 dn_qfq dn_qfq at 0x61e658 order 0x8 [ 589.405618] ip_dummynet.c:load_dn_sched [2245] dn_sched QFQ loaded +++ start module 8 dn_prio dn_prio at 0x61e708 order 0x9 [ 589.405622] ip_dummynet.c:load_dn_sched [2245] dn_sched PRIO loaded *** Global Sysctl Table entries = 41, total size = 2144 *** [ 589.405660] session.c:do_server [541] +++ listening tcp 127.0.0.1:5555 [ 589.405675] netmap_io.c:netmap_add_port [310] opening netmap device netmap:igb0 [ 589.548909] netmap_io.c:netmap_add_port [326] --- mem_id 1 [ 589.548926] netmap_io.c:netmap_add_port [329] create sess 0x801449070 my_netmap_port 0x801429580 [ 589.548929] netmap_io.c:netmap_add_port [310] opening netmap device netmap:igb1 [ 589.692204] netmap_io.c:netmap_add_port [326] --- mem_id 1 [ 589.692220] netmap_io.c:netmap_add_port [329] create sess 0x8014490a0 my_netmap_port 0x801429800 [ 589.692223] netmap_io.c:netmap_add_port [342] 0x801429800 igb1 1 <-> 0x801429580 igb0 1 SWAP [ 589.692463] missing.c:callout_run [378] running 0x61e9d0 due at 1 now 1434 [ 589.692479] session.c:mainloop [624] callouts 1 skipped 0 Can someone suggest me what's wrong? Regards, Michal