From owner-freebsd-net@freebsd.org Sun Nov 3 05:22:10 2019 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 281101A6D0B for ; Sun, 3 Nov 2019 05:22:10 +0000 (UTC) (envelope-from mike@karels.net) Received: from mail.karels.net (mail.karels.net [216.160.39.52]) by mx1.freebsd.org (Postfix) with ESMTP id 475PSJ4Nh7z4fxf for ; Sun, 3 Nov 2019 05:22:08 +0000 (UTC) (envelope-from mike@karels.net) Received: from mail.karels.net (localhost [127.0.0.1]) by mail.karels.net (8.15.2/8.15.2) with ESMTP id xA35M1fW052952; Sun, 3 Nov 2019 00:22:01 -0500 (CDT) (envelope-from mike@karels.net) Message-Id: <201911030522.xA35M1fW052952@mail.karels.net> To: "Rodney W. Grimes" cc: freebsd-net@freebsd.org, Victor Gamov From: Mike Karels Reply-to: mike@karels.net Subject: Re: FreeBSD as multicast router In-reply-to: Your message of Sat, 02 Nov 2019 19:09:10 -0700. <201911030209.xA329AwE094172@gndrsh.dnsmgr.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <52950.1572758521.1@mail.karels.net> Content-Transfer-Encoding: quoted-printable Date: Sun, 03 Nov 2019 00:22:01 -0500 X-Rspamd-Queue-Id: 475PSJ4Nh7z4fxf X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mike@karels.net designates 216.160.39.52 as permitted sender) smtp.mailfrom=mike@karels.net X-Spamd-Result: default: False [-3.97 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[mike@karels.net]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:216.160.39.52]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[karels.net]; REPLYTO_ADDR_EQ_FROM(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(-1.77)[ip: (-5.97), ipnet: 216.160.0.0/15(-2.80), asn: 209(-0.02), country: US(-0.05)]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:209, ipnet:216.160.0.0/15, country:US]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Nov 2019 05:22:10 -0000 > > > > Hi All > > > > = > > > > I have (noob) questions about multicast routing under FreeBSD. > > > > = > > > > I have FreeBSD box with two (or more) multicast enabled interfaces= (e.x. = > > > > vlan750 and vlan299). vlan750 connected to multicast source. > > > > = > > > > Then pimd installed and only this two interfaces enabled in pimd c= onfig. = > > > > Multicast routes successfully installed by pimd and listed by `net= stat = > > > > -g -f inet` > > > > = > > > > Then client on vlan299 send IGMP-Join (this Join received by FreeB= SD on = > > > > vlan299) > > > > = > > > > The question is: who will forward muilticast from one interface = > > > > (vlan750) to another (vlan299)? Is it kernel specific job or I ne= ed = > > > > additional software? > > = > > > Please read the manpage multicast(4) "man 4 multicast", > > > you should need to build a custom kernel with the "options MROUTING" > > > to enable the multicast forwarding in the kernel. > > = > > If "netstat -g" shows routes, the kernel must have been built with "op= tions > > MROUTING". > Indeed. > > = > > The kernel does the forwarding, according to those routing tables inst= alled > > by pimd or another multicast routing program. Is it not working? It = sounds > > like you are very close. > Could it be sysctl net.inet.ip.forwarding? Does that still apply to mro= utes? No, they are separate. The test is just whether MROUTING is enabled, and whether a multicast router like pimd is active. One other thing to check would be "netstat -gs" (multicast stats). > > = > > > > Victor Gamov > > = > > > -- = > > > Rod Grimes rgrimes@f= reebsd.org > > = > > Mike > -- = > Rod Grimes rgrimes@freeb= sd.org Mike