LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-30-2018, 08:14 AM   #1
chemfire
Member
 
Registered: Sep 2012
Posts: 210

Rep: Reputation: Disabled
Multicast


I am looking for a little help with multicast on Slackware.

Short story for background I am writing a little DLNA extension to my DVR application so I can play the videos directly on my smart TV without using the bluyplayer or other external device. I have written an SSDP responder so the application will be discovered by the TV and other DLNA (DMP) devices. This is all working from my MacBook on the client network where I am authoring. It does not work running in a Slackware LXC container on my infrastructure subnet. That does not terribly surprise me because I would not expect multicast traffic to be routed from one subnet to the other without some action on my part. A Slackware (ARM) router sits between these two subnets.

Having read the Multicast Howto it seems like a first step is to make sure the router can at least answer multicast pings, to the all group. To that end I did the following:

Code:
route add -net 224.0.0.0 netmask 240.0.0.0 dev clients
The interface name of the subnet the TV and MacBook occupy is clients, its just renamed from eth0 via udev. When on the MacBook I ping 224.0.0.1, I get answers from a couple devices but not the router.

I could see the packets arrive in tcpdump; so I decided to see if the kernel was processing them. I created a iptables rule to specifically accept icmp echo on that interface for the INPUT chain, so I would have counter. If ping 224.0.0.1 -c 5; the counter on the router does increase by 5 packets. So it seems like its 'listening' there is nothing that would block it sending replies in terms of netfilter/iptables. I temporarily cleared all rules on OUTPUT and set the policy to accept just to be certain.

TL/DR:

First question: Why can't I get ping replies from the router?

Second question: Is there a way I can forward multicast udp to a specific host only on the infrastructure network from the client network. Maybe by abusing either the iptables DNAT target or TEE? I'd rather not run yet another demon on the router if possible, because its only got 512MB of ram and secondly I don't really want to forward multicast to all the devices and containers on my infrastructure net anyway; just the one.
 
Old 12-01-2018, 01:24 PM   #2
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 739

Rep: Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562
Since these are standard network interface tools, perhaps ask a Moderator to move this to a general networking forum here.
 
Old 12-01-2018, 02:46 PM   #3
abga
Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 732

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
@chemfire
Some more details about your Slackware ARM router might help - like, what Slackware version & kernel you are running.
Personally, I'm trying to stay away from multicast (literally disabling it on all interfaces) and always looking after alternative solutions, since multicast is hard to manage/filter.
However, have a look at these links for some troubleshooting hints:
https://unix.stackexchange.com/quest...ast-is-enabled
https://serverfault.com/questions/16...st-udp-packets
https://www.tldp.org/HOWTO/Multicast-HOWTO-3.html
 
Old 12-03-2018, 07:42 AM   #4
chemfire
Member
 
Registered: Sep 2012
Posts: 210

Original Poster
Rep: Reputation: Disabled
Thanks for the links. I had been mostly going by the TLDP.org howto. I am running slackware arm; probably about a 2 months behind current now. Its on kernel 4.14.59 currently. Its a custom kernel but appears to have all the options set.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Resident Multicast Sockets on a Multicast Router bryanj4 Linux - Networking 0 03-25-2015 01:45 AM
IPv6 multicast address used with VLC and multicast address routing merrittr Linux - Networking 2 01-28-2015 02:26 PM
IPv6 multicast listener on a Linux box acting as multicast router maxtux Linux - Networking 0 04-01-2012 10:52 AM
Multicast mistkhan Linux - Networking 0 06-12-2001 03:26 PM
3c905b multicast snooke Linux - Networking 0 03-06-2001 11:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration