From owner-freebsd-net@freebsd.org Sun Nov 3 02:09:15 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 D6D611A13FD for ; Sun, 3 Nov 2019 02:09:15 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 475K9k6Hntz4VGb for ; Sun, 3 Nov 2019 02:09:14 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id xA329AIP094173; Sat, 2 Nov 2019 19:09:10 -0700 (PDT) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: (from freebsd-rwg@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id xA329AwE094172; Sat, 2 Nov 2019 19:09:10 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201911030209.xA329AwE094172@gndrsh.dnsmgr.net> Subject: Re: FreeBSD as multicast router In-Reply-To: <201911030159.xA31x4he052393@mail.karels.net> To: mike@karels.net Date: Sat, 2 Nov 2019 19:09:10 -0700 (PDT) CC: "Rodney W. Grimes" , freebsd-net@freebsd.org, Victor Gamov X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 475K9k6Hntz4VGb X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd-rwg@gndrsh.dnsmgr.net has no SPF policy when checking 69.59.192.140) smtp.mailfrom=freebsd-rwg@gndrsh.dnsmgr.net X-Spamd-Result: default: False [-0.67 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.80)[-0.800,0]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dnsmgr.net]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-0.81)[-0.814,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13868, ipnet:69.59.192.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.04)[ip: (0.14), ipnet: 69.59.192.0/19(0.07), asn: 13868(0.04), country: US(-0.05)]; 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 02:09:15 -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 config. > > > Multicast routes successfully installed by pimd and listed by `netstat > > > -g -f inet` > > > > > > Then client on vlan299 send IGMP-Join (this Join received by FreeBSD on > > > vlan299) > > > > > > The question is: who will forward muilticast from one interface > > > (vlan750) to another (vlan299)? Is it kernel specific job or I need > > > 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 "options > MROUTING". Indeed. > > The kernel does the forwarding, according to those routing tables installed > 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 mroutes? > > > > Victor Gamov > > > -- > > Rod Grimes rgrimes@freebsd.org > > Mike > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > -- Rod Grimes rgrimes@freebsd.org