From owner-freebsd-net@freebsd.org Tue Feb 2 15:05:21 2021 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1E97F534FBE for ; Tue, 2 Feb 2021 15:05:21 +0000 (UTC) (envelope-from peter.garshtja@ambient-md.com) Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DVSmJ0Kkgz3PlP for ; Tue, 2 Feb 2021 15:05:19 +0000 (UTC) (envelope-from peter.garshtja@ambient-md.com) Received: by mail-qt1-x82d.google.com with SMTP id v3so15120369qtw.4 for ; Tue, 02 Feb 2021 07:05:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ambient-md-com.20150623.gappssmtp.com; s=20150623; h=to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=lKQkOc54AYqrEUEV/dhF+ZyPCXvH4EyO7K87ka7j+B8=; b=JBuVuYHYpVy9dADFc/5JF+1TFS1Vgh5Tf55m0NQzDL1Z/lUi9dFZIVEN775It3gaBX J7f96z/rZOQWgJltgk7QGkvwdy9k0jeOstgc8i+Okb6o4O+PsfJg/Q97fU6aRo+6RZeL XdSM+WmeX2p9bP0zy3kyesyN2n0H0z1jvnrV3ddmdahGYl/U2Zs6YZKPEezkQsg7Es16 NlBrrHNzvxpmpMjroSRYPRsFe5MxpcguM5D8rQsUKTLMbHkLe+v56k9ek5mWvVVgFyd0 25ZPfWxdjungIjvlgZgR7lsyqc6LVnh0bYCzjrN1jOZ7ZReYN4IgRC8p0WHU2qbAkh4m WJug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=lKQkOc54AYqrEUEV/dhF+ZyPCXvH4EyO7K87ka7j+B8=; b=SzdmQILZ4tmO7uKmr/gu3t9Iz5X5+hBfTjoJqeZzq4KPctG1151fRoOiuiJCpjJXWT c9heV8DVJaDumN3Sp3aW9fKLpOqkn0dbcGYBpstjsLwWaTalwCVX/IlOiUCfSX9x8awi TW/vhqEbRSPMkG7hXH17Pw4131d+eco9rmvlM8fW6qjqu9yBNfaQWydqu1qDIlrz7sZH l/9hyVbjibqyswcXrYJe0eCB6IcAEbixnLjEeD1gjM8feV4yB1ViGrSGxWyqelG6orVJ E0/SJaXNwV0WSYrf1GUPg1MEFEXLejtmECLiLs4XrLQs/WAtb20uuAj9FqAx211ZiAXq CyEw== X-Gm-Message-State: AOAM533jAy8CKRNvDPuo2Bb5DQqwIeFjtOKtXeTa6khSdx6OHhlNtjzR XdGJ/rEbEaKmkb25i6cbxZuTz7F5xYi+YLnP X-Google-Smtp-Source: ABdhPJxKIA7zCZH5jbn4gkRXlhy3tJxHRGDZT4kXl/zH7uBSM+/eUcpMiAYDavW+yjD+rFWNK9azCA== X-Received: by 2002:ac8:70c:: with SMTP id g12mr12979094qth.133.1612278318506; Tue, 02 Feb 2021 07:05:18 -0800 (PST) Received: from ?IPv6:2001:470:1c:38d::4? ([2001:470:1c:38d::4]) by smtp.gmail.com with ESMTPSA id p18sm16567436qkj.130.2021.02.02.07.05.16 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 Feb 2021 07:05:17 -0800 (PST) To: freebsd-net@freebsd.org From: petru garstea Subject: netgraph with ng_netflow and ng_gridge nodes Message-ID: <43cf5dc9-521c-dcc4-f025-398173608062@ambient-md.com> Date: Tue, 2 Feb 2021 10:05:15 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 Content-Language: en-US X-Rspamd-Queue-Id: 4DVSmJ0Kkgz3PlP X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ambient-md-com.20150623.gappssmtp.com header.s=20150623 header.b=JBuVuYHY; dmarc=none; spf=none (mx1.freebsd.org: domain of peter.garshtja@ambient-md.com has no SPF policy when checking 2607:f8b0:4864:20::82d) smtp.mailfrom=peter.garshtja@ambient-md.com X-Spamd-Result: default: False [-1.32 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[ambient-md-com.20150623.gappssmtp.com:s=20150623]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::82d:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[ambient-md.com]; NEURAL_SPAM_SHORT(0.98)[0.976]; DKIM_TRACE(0.00)[ambient-md-com.20150623.gappssmtp.com:+]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::82d:from]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::82d:from]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-net] X-Mailman-Approved-At: Tue, 02 Feb 2021 17:22:51 +0000 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Feb 2021 15:05:21 -0000 Hi, I need help to unify 2 netgraphs 1st ng_bridge netgraph ngctl mkpeer fxp0: bridge lower link0 ngctl connect fxp0: em0:lower upper link1 ngctl name fxp0:lower em0Bridge ngctl mkpeer fxp0:lower eiface link3 ether 2nd ng_netflow netgraph mkpeer fxp0: netflow lower iface0 name fxp0:lower netflow connect fxp0: netflow: upper out0 mkpeer netflow: ksocket export inet/dgram/udp msg netflow:export connect inet/10.0.0.1:4444 I cannot run both graphs at the same time because both of them are trying to use fxp0 interface lower and upper hooks. I believe it is necessary to introduce an extra node but I am not sure. Please advise Cheers, Petru