<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Admins Goodies &#187; multicast</title>
	<atom:link href="http://adminsgoodies.com/tag/multicast/feed/" rel="self" type="application/rss+xml" />
	<link>http://adminsgoodies.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Mon, 20 May 2013 16:34:05 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Is IPv6 multicast routable over the Internet?</title>
		<link>http://adminsgoodies.com/is-ipv6-multicast-routable-over-the-internet/</link>
		<comments>http://adminsgoodies.com/is-ipv6-multicast-routable-over-the-internet/#comments</comments>
		<pubDate>Sat, 02 Jun 2012 16:33:08 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[multicast]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/is-ipv6-multicast-routable-over-the-internet/</guid>
		<description><![CDATA[As I understand it, public IPv6 addresses allocated by the IANA will have the prefix 2000::/3. These ip addresses will be routable through the Internet. IPv6 multicast addresses on the other side are prefixed FF00::/8. So my understanding is that the ipv6 multicast addresses won&#8217;t be routable through the internet. I am right? If so, is there any way to do one-to-many ip routing over the Internet in IPv6? Thanks! Asked by Absolom So will [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>As I understand it, public IPv6 addresses allocated by the IANA will have the prefix 2000::/3. These ip addresses will be routable through the Internet.</p>
<p>IPv6 multicast addresses on the other side are prefixed FF00::/8. </p>
<p>So my understanding is that the ipv6 multicast addresses won&#8217;t be routable through the internet. I am right? If so, is there any way to do one-to-many ip routing over the Internet in IPv6?</p>
<p>Thanks!</p>
<div class="author">Asked by <a href="http://serverfault.com/users/122778/absolom" target="_blank">Absolom</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<blockquote>
<p>So will I be able to access a multicast group over the internet or<br />
  will it only be supported through private networks like in ipv4?</p>
</blockquote>
<p>I must correct a assumption you seem to have made here.  </p>
<p>If all the routers between you and your destination support it, then Multicast can certainly work over the IPv4 Internet.  It is simply blocked or not configured in many places.  I suspect this is because  multicast is not well understood, and many people believe they do not need it.  So they simply do not permit it through their firewalls/routers.</p>
<p>IPv6 certainly is capable just like IPv4 of having Multicast work globally.  Only time will tell us if people actually permit multicast through their networks.  </p>
<div class="author">Answered by <a href="http://serverfault.com/users/984/zoredache" target="_blank">Zoredache</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/393752/is-ipv6-multicast-routable-over-the-internet" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/is-ipv6-multicast-routable-over-the-internet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to monitor a UDP multicast stream on a cisco network, hopefully with SNMP</title>
		<link>http://adminsgoodies.com/how-to-monitor-a-udp-multicast-stream-on-a-cisco-network-hopefully-with-snmp/</link>
		<comments>http://adminsgoodies.com/how-to-monitor-a-udp-multicast-stream-on-a-cisco-network-hopefully-with-snmp/#comments</comments>
		<pubDate>Fri, 25 May 2012 16:33:43 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[multicast]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[network-monitoring]]></category>
		<category><![CDATA[snmp]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/how-to-monitor-a-udp-multicast-stream-on-a-cisco-network-hopefully-with-snmp/</guid>
		<description><![CDATA[We have a LAN with 2x Cisco 4500&#8242;s as gateways running HSRP. We&#8217;re using Exterity HD IP Encoders to take HD video and put it onto the network as a multicast UDP stream (playable in VLC). I have a fairely extensive Nagios setup on Linux and would like to find some way to check that: Multicast stream is on the network. Multicast stream isn&#8217;t frozen, so check for audio or &#8230; Confirm the source IP [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>We have a LAN with 2x Cisco 4500&#8242;s as gateways running HSRP.<br />
We&#8217;re using Exterity HD IP Encoders to take HD video and put it onto the network as a multicast UDP stream (playable in VLC).</p>
<p>I have a fairely extensive Nagios setup on Linux and would like to find some way to check that:</p>
<ol>
<li>Multicast stream is on the network.</li>
<li>Multicast stream isn&#8217;t frozen, so check for audio or &#8230;</li>
<li>Confirm the source IP of the stream matches what we expect from the multicast address.</li>
</ol>
<p>1 and 3 could be combined maybe.</p>
<p>My approach thus far:</p>
<p>Using SNMP on the Cisco HSRP gateway IP:<br />
Nagios sends 2 arguments, IP of the host (which should be the source of the multicast), i.e. 172.18.25.101<br />
Second argument is IP of the stream ($mroute), i.e. 239.101.0.1</p>
<p>snmpwalk -v 2c -c changed 172.30.0.1 1.3.6.1.3.59.1.1.2.1.4 | grep $mroute  | sed  -e &#8216;s/.*IpAddress: //&#8217;</p>
<p>A few if&#8217;s later, and I have, if the stream is on the network, if the multicast I sid for matches the host ip, or if not tells me where is is coming from. And exits correct for nagios.</p>
<p>Or so I thought. Generally it is working as expected, but randomly with some hosts the source IP is not expected and is something different, and when checking manually it is clearly not correct. I think maybe a topology change or something (we have quite a large network), and it&#8217;s seen from the other gateway or&#8230; I&#8217;m not great on multicast sorry.</p>
<p>I&#8217;m pretty much stuck with the above part.</p>
<p>I then wanted to check that the video/audio was not frozen, I thought another check could be to use mplayer to dump the stream for 2 seconds to a file and do a check based on the size of the file. if it is very small then its probably frozen. But the stream will still send an image, so go with an audio check over a longer, say 10 second period. The more I thought about this, the more I thought &#8220;there must be a better way&#8221;&#8230; </p>
<p>IPTV is pretty big these days, how are people monitoring multicast streams.</p>
<p>Thanks very much.</p>
<div class="author">Asked by <a href="http://serverfault.com/users/122321/joe" target="_blank">Joe</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>Have you considered using the IP-MROUTE-STD-MIB rather than the IGMP MIB?  You can get statistics on a per-mroute basis &#8211; which will give you a much better view of the source in particular.  There&#8217;s also a set of Cisco extensions to this MIB that can provide more in the way of platform-specific info.  One item you can potentially look for is a substantial difference in counters on your various routers through the path of the mroute.  Some delta is to be expected but this is would be a good place to track thresholds.  </p>
<p>For tracking streams freezing there&#8217;s a pretty easy answer: ip multicast heartbeat (http://www.cisco.com/en/US/docs/ios/12_2/ip/configuration/guide/1cfmulti.html#wp1003131).  You can configure a given router to throw an SNMP trap if no packets are seen on a configured multicast group for 10 seconds.  </p>
<p>There is also a feature called mrm (multicast route monitor) that can be called from the Cisco CLI to set up and track synthetic multicast groups.  You&#8217;d likely want to use EEM or similar to call it periodically and then throw a trap or syslog if it doesn&#8217;t behave normally.  This is also a good troubleshooting tool.</p>
<p>Also &#8211; just as you (should) monitor for changes in IGP adjacency, so too should you track on PIM.  Events like neighbor state changes, elections, etc can indicate instability in the tree.  It&#8217;s not -necessarily- a big deal in all cases but should generally be quiet on a stable network.  </p>
<p>I&#8217;m not sure which supervisor you&#8217;re running in your 4500&#8242;s, but some of the more recent models support netflow for multicast.  This would give you a much more granular and global view of multicast performance and would naturally lend itself to statistical trending, storage, etc.. definitely a good way to go.</p>
<p>I hope this helps-</p>
<div class="author">Answered by <a href="http://serverfault.com/users/121497/rnxrx" target="_blank">rnxrx</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/392454/how-to-monitor-a-udp-multicast-stream-on-a-cisco-network-hopefully-with-snmp" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/how-to-monitor-a-udp-multicast-stream-on-a-cisco-network-hopefully-with-snmp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convey multicast (to another LAN) through WAN disabling multicast</title>
		<link>http://adminsgoodies.com/convey-multicast-to-another-lan-through-wan-disabling-multicast/</link>
		<comments>http://adminsgoodies.com/convey-multicast-to-another-lan-through-wan-disabling-multicast/#comments</comments>
		<pubDate>Tue, 21 Feb 2012 15:34:07 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux-kernel]]></category>
		<category><![CDATA[multicast]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[tcp]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/convey-multicast-to-another-lan-through-wan-disabling-multicast/</guid>
		<description><![CDATA[My Server and Client softwares run both on Linux. The Server broadcasts multicast, the Client listens multicast. My Client has to migrate to another site, and unfortunately multicast is not allowed between the two sites How to convey multicast between the two sites? &#8211; Through TCP or UDP? &#8211; What tools do you recommend? &#8211; What about latency? I received an good answer about Cisco configuration (GRE), but one of the network teams do not [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>My Server and Client softwares run both on Linux.<br />
The Server broadcasts multicast, the Client listens multicast.</p>
<p>My Client has to migrate to another site,<br />
and unfortunately multicast is not allowed between the two sites <img src='http://adminsgoodies.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p><strong>How to convey multicast between the two sites?</strong><br />
 &#8211; Through TCP or UDP?<br />
 &#8211; What tools do you recommend?<br />
 &#8211; What about latency?</p>
<p><strong>I received an good answer about <em>Cisco</em> configuration (GRE),<br />
but one of the network teams do not want to monitor/maintain it,<br /></strong><br />
=&gt; when transmission will break, support team will spend too many hours to understand and repair.<br />
<strong>=&gt; So, what should be the best alternative to GRE?</strong></p>
<p>Is there a solution based on <em>Linux kernel features</em> <br />
or on network card capabilities? (low latency is important)<br />
Usage examples are appreciated <img src='http://adminsgoodies.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<hr />
<ul>
<li>
<p><strong>Currently:</strong> Server and Client on the same site</p>
<p><img src="http://ditaa.org/ditaa/render?grid=%2B---------%2B+%2B---------%2B%0D%0A%7C+Server++%7C+%7C+Client++%7C%0D%0A%7C+sends+++%7C+%7C+listens+%7C%0D%0A%7Cmulticast%7C+%7Cmulticast%7C%0D%0A%7C+++IP1+++%7C+%7C++IP2++++%7C%0D%0A%2B----%2B----%2B+%2B---%2B-----%2B%0D%0A+++++%7C++++++++++%7C%0D%0A+++++%2B%2B---------%2B%0D%0A++++++%7CLAN+of+site+1%0D%0A++++++%7C%0D%0A++++++%2B---------------------WAN" alt="current network diagram"></p>
</li>
<li>
<p><strong>Future:</strong> Server and Client, each one on a different site</p>
<p><img src="http://ditaa.org/ditaa/render?grid=%2B---------%2B+%2B---------%2B+++++++++%2B-----------%2B%0D%0A%7C+Server++%7C+%7C+++++++++%7C+++++++++%7C+new+host++%7C++%0D%0A%7C+sends+++%7C+%7C+++++++++%7C+++++++++%7C+for+Client%7C++%0D%0A%7Cmulticast%7C+%7C+++++++++%7C+++++++++%7C+++++++++++%7C++%0D%0A%7C+++IP1+++%7C+%7C+++++++++%7C+++++++++%7C+IP3+++++++%7C+++%0D%0A%2B----%2B----%2B+%2B---%2B-----%2B+++++++++%2B--%2B--------%2B%0D%0A+++++%7C++++++++++%7C++++++++++++++++++%7C++++++++++++%7C%0D%0A+++++%2B%2B---------%2B++++++++++++++++++%2B%2B-----------%2B-%0D%0A++++++%7CLAN+of+site+1++++++++++++++++%7CLAN+of+site+2%0D%0A++++++%7C+++++++++++++++++++++++++++++%7C%0D%0A++++++%2B-----------------------------%2B%0D%0A++++++++++++++++++++++++++++WAN" alt="Future network diagram"></p>
</li>
</ul>
<p>multicast channel: 225.1.0.1:6666</p>
<hr />
<h2>Related questions</h2>
<ul>
<li><a href="http://serverfault.com/questions/136361/">UPD Multicast (Class D) = How can this be routed over the internet?</a></li>
<li><a href="http://serverfault.com/questions/191016/">IGMP/Multicast routing in Linux</a></li>
<li><a href="http://serverfault.com/questions/146457/">Multicast accross the subnets</a> and RSVP answer</li>
<li><a href="http://serverfault.com/questions/120878/">Multiple GRE NAT router</a> and &#8220;Multiple VPN limitation&#8221; link</li>
<li>&#8230;</li>
</ul>
<div class="author">Asked by <a href="http://serverfault.com/users/106052/ohessling" target="_blank">oHessling</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>I am not sure to understand your graphic in your question, but as far as I understood, you need to forward multicast packet through TCP ? A tool oriented solution may involve <code>socat</code>:</p>
<p>For instance, multicast channel is 224.1.0.1:6666.</p>
<p>On the Server host (IP=SS.SS.SS.SS):</p>
<pre><code>$socat -v UDP4-RECVFROM:6666,ip-add-membership=224.1.0.1:CC.CC.CC.CC,fork TCP:destination.hostname:4444
</code></pre>
<p>On the Client host (IP=CC.CC.CC.CC):</p>
<pre><code>$socat -v TCP-LISTEN:4444,fork UDP4-DATAGRAM:224.1.0.1:6666,range=SS.SS.SS.SS/24
</code></pre>
<p>I let you check how to tune parameters with the <code>socat</code> manual. It is quite straightforward once you know you MULTICAST GROUP and your network interface&#8217;s ip adresses. <img src='http://adminsgoodies.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<div class="author">Answered by <a href="http://serverfault.com/users/2500/yves-baumes" target="_blank">yves Baumes</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/358496/convey-multicast-to-another-lan-through-wan-disabling-multicast" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/convey-multicast-to-another-lan-through-wan-disabling-multicast/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What does this linux command mean “route add -net 224.0.0.0 netmask 240.0.0.0 eth0”</title>
		<link>http://adminsgoodies.com/what-does-this-linux-command-mean-route-add-net-224-0-0-0-netmask-240-0-0-0-eth0/</link>
		<comments>http://adminsgoodies.com/what-does-this-linux-command-mean-route-add-net-224-0-0-0-netmask-240-0-0-0-eth0/#comments</comments>
		<pubDate>Mon, 13 Feb 2012 17:33:59 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[multicast]]></category>
		<category><![CDATA[route]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/what-does-this-linux-command-mean-route-add-net-224-0-0-0-netmask-240-0-0-0-eth0/</guid>
		<description><![CDATA[Could somebody explain what exactly this command means in relation to transmitting and receiving multicast traffic route add -net 224.0.0.0 netmask 240.0.0.0 eth0 Asked by smicjk The &#8220;224.0.0.0&#8243; is a reserved range of IPv4 addresses having special multicast meaning (IPv4 Multicast). The command in itself just means that the multicast routing should go through the &#8220;eth0&#8243; interface. Answered by Ouki Check more discussion of this question.]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>Could somebody explain what exactly this command means in relation to transmitting and receiving multicast traffic</p>
<pre><code>route add -net 224.0.0.0 netmask 240.0.0.0 eth0
</code></pre>
<div class="author">Asked by <a href="http://serverfault.com/users/110470/smicjk" target="_blank">smicjk</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>The &#8220;224.0.0.0&#8243; is a reserved range of IPv4 addresses having special multicast meaning (<a href="http://sockets.com/ch16.htm#Multicast" rel="nofollow">IPv4 Multicast</a>).</p>
<p>The command in itself just means that the multicast routing should go through the &#8220;eth0&#8243; interface.</p>
<div class="author">Answered by <a href="http://serverfault.com/users/110347/ouki" target="_blank">Ouki</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/359536/what-does-this-linux-command-mean-route-add-net-224-0-0-0-netmask-240-0-0-0-et" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/what-does-this-linux-command-mean-route-add-net-224-0-0-0-netmask-240-0-0-0-eth0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multicast routing across two subnets with FreeBSD 9 (Bonjour between subnets)?</title>
		<link>http://adminsgoodies.com/multicast-routing-across-two-subnets-with-freebsd-9-bonjour-between-subnets/</link>
		<comments>http://adminsgoodies.com/multicast-routing-across-two-subnets-with-freebsd-9-bonjour-between-subnets/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 23:25:21 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[avahi]]></category>
		<category><![CDATA[bonjour]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[mdns]]></category>
		<category><![CDATA[multicast]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/multicast-routing-across-two-subnets-with-freebsd-9-bonjour-between-subnets/</guid>
		<description><![CDATA[I have a FreeBSD 9 router (a Soekris net6501) connected to the internet via a dsl modem (bridged), doing NAT for two internal subnets, 10.0.1.0/24 (LAN) and 10.0.2.0/24 (wifi net). There are routes between the subnets and things like ssh host-A.wifi from host-B.lan works. But, wireless clients (like iPads and iPhones) on the 10.0.2.0/24 net can&#8217;t seem to find stuff on the LAN (for example, airplay to an Apple-TV on the LAN). I&#8217;m not totally [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I have a FreeBSD 9 router (a Soekris net6501) connected to the internet via a dsl modem (bridged), doing NAT for two internal subnets, 10.0.1.0/24 (LAN) and 10.0.2.0/24 (wifi net).</p>
<p>There are routes between the subnets and things like <code>ssh host-A.wifi</code> from <code>host-B.lan</code> works.</p>
<p>But, wireless clients (like iPads and iPhones) on the 10.0.2.0/24 net can&#8217;t seem to find stuff on the LAN (for example, airplay to an Apple-TV on the LAN).</p>
<p>I&#8217;m not totally sure, but I think this is because Apple uses Bonjour and Bonjour uses Multicast to find things and Multicast is not routed across subnets.</p>
<p>According to the <a href="http://www.freebsd.org/doc/handbook/network-routing.html" rel="nofollow">FreeBSD handbook</a>, to route multicast, I need to compile the kernel with <code>options MROUTING</code> and create a <code>/etc/mrouted.conf</code>, but I can&#8217;t find any good examples of the configuration file.</p>
<ol>
<li>Is my problem related to multicasting across subnets?</li>
<li>Is <code>mrouted</code> the preferred solution in FreeBSD to enable routing?</li>
<li>How do I create a <code>/etc/mrouted.conf</code> that routes between 10.0.1.0/24 and 10.0.2.0/24? </li>
</ol>
<div class="author">Asked by <a href="http://serverfault.com/users/109651/erik-tjernlund" target="_blank">Erik Tjernlund</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>Thanks to @chris-s, I solved my own question by using Avahi instead of trying to route the multicast traffic.</p>
<p>This worked for me:</p>
<ul>
<li>Compile and install <code>net/avahi</code> and <code>dns/nss_mdns</code> from the ports tree.</li>
<li>Add <code>avahi_daemon_enable="YES"</code>and <code>dbus_enable="YES"</code> to <code>/etc/rc.conf</code></li>
<li>Use the avahi configuration file (<code>/usr/local/etc/avahi/avahi-daemon.conf</code>) and added my two internal network interfaces (two internal subnets) to the <code>allow-interfaces</code> key (comma separated) and set the <code>enable-reflector</code> key to <code>yes</code> to make avahi propagate the traffic to all internal networks.</li>
<li>Edit the <code>hosts</code> entry in <code>/etc/nsswitch.conf</code> to <code>hosts: files dns mdns</code></li>
</ul>
<p>After starting the avahi daemon, you can check if it works either by directly doing a lookup from the mdns server machine:</p>
<pre><code>root@server / # getent hosts apple-tv.local
10.0.1.4          apple-tv.local
root@server / # getent hosts iphone4s.local
10.0.2.27         iphone4s.local
root@server / # getent hosts ipad.local
10.0.2.22         ipad.local
</code></pre>
<p>Or by browsing the .local domain with a utility like <a href="http://www.tildesoft.com/" rel="nofollow">Bonjour Browser</a> or <a href="http://www.istumbler.net/" rel="nofollow">iStumbler</a> (both excellent). You should be able to see devices, hosts and services on all subnets.</p>
<p>A footnote is that my stock FreeBSD 9.0 installation&#8217;s <code>/etc/syslogd.conf</code> didn&#8217;t log the messages from <code>avahi-daemon</code> by default so I didn&#8217;t see any logging at first (added a <code>daemon.*</code> selector pointing to <code>/var/log/daemon.log</code>)</p>
<div class="author">Answered by <a href="http://serverfault.com/users/109651/erik-tjernlund" target="_blank">Erik Tjernlund</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/357191/multicast-routing-across-two-subnets-with-freebsd-9-bonjour-between-subnets" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/multicast-routing-across-two-subnets-with-freebsd-9-bonjour-between-subnets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>multicast routing &#8211; CentOS 5</title>
		<link>http://adminsgoodies.com/multicast-routing-centos-5/</link>
		<comments>http://adminsgoodies.com/multicast-routing-centos-5/#comments</comments>
		<pubDate>Mon, 26 Dec 2011 01:00:08 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[multicast]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[routing]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/multicast-routing-centos-5/</guid>
		<description><![CDATA[I&#8217;m trying to pass mulitcast stream from interface eth1 (192.168.20.41) to interface tun0 (192.168.100.40) on CentOS 5. I can see incoming multicast stream on eth1: tcpdump -n -i eth1 type=1700 audit(1324681169.542:52): dev=eth1 prom=256 old_prom=0 auid=4294967295 ses=4294967295 Dec 23 17:59:29 localhost kernel: device eth1 entered promiscuous mode Dec 23 17:59:29 localhost kernel: type=1700 audit(1324681169.542:52): dev=eth1 prom=256 old_prom=0 auid=4294967295 ses=4294967295 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth1, link-type EN10MB [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I&#8217;m trying to pass mulitcast stream from interface eth1 (192.168.20.41) to interface tun0 (192.168.100.40) on CentOS 5.</p>
<p>I can see incoming multicast stream on eth1:</p>
<p>tcpdump -n -i eth1</p>
<pre><code>type=1700 audit(1324681169.542:52): dev=eth1 prom=256 old_prom=0 auid=4294967295 ses=4294967295
Dec 23 17:59:29 localhost kernel: device eth1 entered promiscuous mode
Dec 23 17:59:29 localhost kernel: type=1700 audit(1324681169.542:52): dev=eth1 prom=256 old_prom=0 auid=4294967295 ses=4294967295
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes
17:59:29.576192 IP 192.168.20.20.52194 &gt; 224.1.1.1.search-agent: UDP, length 1328
17:59:29.576277 IP 192.168.20.20.52194 &gt; 224.1.1.1.search-agent: UDP, length 1328
17:59:29.576801 IP 192.168.20.20.52194 &gt; 224.1.1.1.search-agent: UDP, length 1328
</code></pre>
<p>But I cannot see multicast on tun0 interface. What I&#8217;m doing wrong?<br />
The configuration is attached below:</p>
<p>/etc/igmpproxy.conf file:</p>
<pre><code>phyint eth1 upstream  ratelimit 0  threshold 1
        altnet 192.168.100.0/24
phyint tun0 downstream  ratelimit 0  threshold 1
phyint eth0 disabled
phyint eth5 disabled
</code></pre>
<p>iptable configuration:</p>
<pre><code>iptables -A INPUT -p igmp -j ACCEPT
iptables -A INPUT -d 224.0.0.0/240.0.0.0 -p udp -m udp -j ACCEPT
iptables -A FORWARD -d 224.0.0.0/240.0.0.0 -p udp -j ACCEPT
modprobe ipt_TTL
iptables -t mangle -A PREROUTING -d 224.0.0.0/240.0.0.0 -p udp -j TTL --ttl-inc 1
</code></pre>
<p>tun0 adapter is GRE tunnel over eth0:<br />
cat /etc/sysconfig/network-scripts/ifcfg-tun0</p>
<pre><code>DEVICE=tun0
TYPE=GRE
ONBOOT=yes
MY_INNER_IPADDR=192.168.100.40
PEER_INNER_IPADDR=192.168.100.30
PEER_OUTER_IPADDR=192.168.20.30
</code></pre>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>I consider multicast routing kind of a black magic, but here are few shots &#8230; </p>
<ul>
<li>
<p>Check if igmpproxy creates the multicast route using <code>ip mroute</code> command. </p>
</li>
<li>
<p>If it does, your kernel is probably still filtering the input.</p>
</li>
<li>
<p>Most common cause is missing route to the source. Did you try disabling iptables? Or use <code>TRACE</code> target?</p>
</li>
<li>
<p>And if multicast route is not created I&#8217;d suggest using pimd (that&#8217;s what I use for routing my IPTV multicasts).</p>
</li>
<li>
<p>And it seems you use altnet wrong. According to mrouted documentation, it means </p>
</li>
</ul>
<p><code>Specifies an additional subnet (network) attached to the physical interface described in the phyint entry. mask_len is the length of the network mask.</code></p>
<p class="ref-link">Check <a href="http://serverfault.com/questions/343858/multicast-routing-centos-5" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/multicast-routing-centos-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>multicast and iptables</title>
		<link>http://adminsgoodies.com/multicast-and-iptables/</link>
		<comments>http://adminsgoodies.com/multicast-and-iptables/#comments</comments>
		<pubDate>Sun, 27 Nov 2011 14:00:04 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[multicast]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/multicast-and-iptables/</guid>
		<description><![CDATA[I have secured a linux box, starting with iptables -P INPUT DROP iptables -P OUTPUT DROP iptables -P FORWARD DROP and after adding rules to enable specific protocols and streams. Which are the correct rules to add multicast support ? I am trying with these &#8211; for both client and server multicast : iptables -A INPUT -m pkttype --pkt-type multicast -j ACCEPT iptables -A OUTPUT -m pkttype --pkt-type multicast -j ACCEPT iptables -A INPUT --protocol [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I have secured a linux box, starting with</p>
<pre><code>iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP
</code></pre>
<p>and after adding rules to enable specific protocols and streams.</p>
<ul>
<li>Which are the correct rules to add multicast support ?</li>
</ul>
<p>I am trying with these &#8211; for both client and server multicast :</p>
<pre><code>iptables -A INPUT  -m pkttype --pkt-type multicast -j ACCEPT
iptables -A OUTPUT -m pkttype --pkt-type multicast -j ACCEPT
iptables -A INPUT  --protocol igmp -j ACCEPT
iptables -A OUTPUT --protocol igmp -j ACCEPT
iptables -A INPUT  --dst "224.0.0.0/4" -j ACCEPT
iptables -A OUTPUT --dst "224.0.0.0/4" -j ACCEPT
</code></pre>
<p>Linux 2.6.38-12 / iptables 1.4.10</p>
<ul>
<li>Is there any internet service to test my multicast set ( pc + adsl router + provider ) ?</li>
</ul>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>multicast over the global internet does not exist, it is unicast only.</p>
<p>If you wish to test multicast addresses, configure it within your own network.</p>
<p class="ref-link">Check <a href="http://serverfault.com/questions/334768/multicast-and-iptables" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/multicast-and-iptables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to share multicast traffic to many vlans</title>
		<link>http://adminsgoodies.com/how-to-share-multicast-traffic-to-many-vlans/</link>
		<comments>http://adminsgoodies.com/how-to-share-multicast-traffic-to-many-vlans/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 07:25:03 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[multicast]]></category>
		<category><![CDATA[vlan]]></category>
		<category><![CDATA[vlc]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/how-to-share-multicast-traffic-to-many-vlans/</guid>
		<description><![CDATA[I have linux computer , this computer connected with entire my network via zyxel gs-2200. In this zyxel also connected router with 500 vlans, one by client. On linux computer i have vlc program that stream multicast ip-tv. In the same vlan where is my linux box, i can see the tv. Question is, how to reshare this multicast stream to all vlans? Who (zyxel, router (freebsd) , or linux box) and how must modify [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I have linux computer , this computer connected with entire my network via zyxel gs-2200. </p>
<p>In this zyxel also connected router with 500 vlans, one by client. </p>
<p>On linux computer i have vlc program that stream multicast ip-tv.</p>
<p>In the same vlan where is my linux box, i can see the tv. </p>
<p>Question is, how to reshare this multicast stream to all vlans?</p>
<p>Who (zyxel, router (freebsd) , or linux box) and how must modify stream to be public for all client vlans.</p>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>You need to use multicast routing between the VLAN&#8217;s to make this work.</p>
<p>From what I can tell you&#8217;ll need to compile the FreeBSD kernel with the MROUTING option, and then use <a href="http://www.freebsd.org/cgi/man.cgi?query=mrouted&amp;sektion=8&amp;apropos=0&amp;manpath=FreeBSD%208.2-RELEASE%20and%20Ports" rel="nofollow">mrouted</a>.</p>
<p>See the following thread on the official FreeBSD forums for more information:<br />
<a href="http://forums.freebsd.org/showthread.php?t=5875" rel="nofollow">http://forums.freebsd.org/showthread.php?t=5875</a></p>
<p class="ref-link">Check <a href="http://serverfault.com/questions/322466/how-to-share-multicast-traffic-to-many-vlans" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/how-to-share-multicast-traffic-to-many-vlans/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>virtualization with multicast receive</title>
		<link>http://adminsgoodies.com/virtualization-with-multicast-receive/</link>
		<comments>http://adminsgoodies.com/virtualization-with-multicast-receive/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 12:40:03 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[multicast]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/virtualization-with-multicast-receive/</guid>
		<description><![CDATA[I need a virtualization solution with the following properties: guest OSes can receive multicast traffic from the host machine. some services running on the guest OS (eg: port 80) can be port forwarded, so it&#8217;s visible on the host and other machines. I tried vmware player, it doesn&#8217;t support multicast at all. I managed to set up port forwarding with Virtualbox, but multicast doesn&#8217;t work seem to work. If you can&#8217;t use bridging mode for [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I need a virtualization solution with the following properties:</p>
<ul>
<li>guest OSes can receive multicast traffic from the host machine.</li>
<li>some services running on the guest OS (eg: port 80) can be port forwarded, so it&#8217;s visible on the host and other machines.</li>
</ul>
<p>I tried vmware player, it doesn&#8217;t support multicast at all.</p>
<p>I managed to set up port forwarding with Virtualbox, but multicast doesn&#8217;t work seem to work.</p>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>If you can&#8217;t use bridging mode for your virtual machine&#8217;s NICs in your configuration, you might try setting up a separate private network and set up multicast routing between the pivate and the public network, presumably including NAT for outbound private traffic.</p>
<p>A possible solution might include <a href="http://www.vmware.com/support/ws5/doc/ws_net_configurations_hostonly.html" rel="nofollow">host-only networking</a> (this would give you a virtual NIC in your host operating system not connected to anything else but the virtual network) and the appropriate <a href="http://www.lartc.org/howto/lartc.multicast.html" rel="nofollow">multicast routing</a> / NAT setup at your VM host.</p>
<p>I don&#8217;t think this is a good task for a Windows machine. If your Host must be Windows and you are not able to either get even a single further IP address for a Linux guest VM or a separate appliance performing this job or move the public IP address your host uses to the aforementioned Linux guest, you are probably stuck here.</p>
<p class="ref-link">Check <a href="http://serverfault.com/questions/321155/virtualization-with-multicast-receive" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/virtualization-with-multicast-receive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is there a good way to keep IPv6 multicast packets off WiFi?</title>
		<link>http://adminsgoodies.com/is-there-a-good-way-to-keep-ipv6-multicast-packets-off-wifi/</link>
		<comments>http://adminsgoodies.com/is-there-a-good-way-to-keep-ipv6-multicast-packets-off-wifi/#comments</comments>
		<pubDate>Wed, 07 Sep 2011 18:40:04 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[multicast]]></category>
		<category><![CDATA[traffic-filtering]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/is-there-a-good-way-to-keep-ipv6-multicast-packets-off-wifi/</guid>
		<description><![CDATA[I work on a product that consists of a number of headless Linux boxes that work together as a cluster. These boxes synchronize their state with each other by sending proprietary-format link-local IPv6 multicast packets (to ff12::xxxx%en0). These packets can take up a non-trivial amount of bandwidth when the system state is changing quickly, but that&#8217;s okay because the Linux boxes are running over a Gigabit Ethernet LAN and there is plenty of bandwidth to [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I work on a product that consists of a number of headless Linux boxes that work together as a cluster.<br />
These boxes synchronize their state with each other by sending proprietary-format link-local IPv6 multicast packets (to <code>ff12::xxxx%en0</code>).  These packets can take up a non-trivial amount of bandwidth when the system state is changing quickly, but that&#8217;s okay because the Linux boxes are running over a Gigabit Ethernet LAN and there is plenty of bandwidth to spare.</p>
<p>The problem happens when a customer decides he&#8217;d like to use his laptop (or iPad) as a client to the system while roaming the building, and so the customer adds a WiFi access point to the LAN and sets up his laptop to communicate (via unicast) with one of the Linux boxes over the WiFi.</p>
<p>This typically &#8220;sort of&#8221; works, but the problem is that all the multicast synchronization packets sent by the Linux boxes are now being sent over WiFi, even though the client(s) don&#8217;t need them or use them.  As a result, WiFi bandwidth is often impacted, sometimes to an unusable state, and the customer complains that our system isn&#8217;t working properly.</p>
<p>We could, of course, just tell the customer &#8220;don&#8217;t do that&#8221;, but WiFi is very useful and I&#8217;d like to find a more constructive solution to this problem than just forbidding WiFi.  Is there some (reasonably simple) way to configure a WiFi access point to filter out these synchronization multicast-packets?  Simply getting the WiFi access point to not handle IPv6 packets would be sufficient for our purposes, since the client software can run over IPv4 if necessary, but some more nuanced filtering that doesn&#8217;t preclude all IPv6 traffic would be nicer.</p>
<p>Note that the most common access point installed by our customers is Apple&#8217;s Airport, but if there is another (more configurable) WiFi access point product that would work better, replacing the access point with a different model is an option.</p>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>If your switch (or more accurately the client&#8217;s switch) is capable of filtering the multicast packets by address (blocking the multicast prefix) that would be my first suggestion.</p>
<p>Barring that you can put a simple filter device (firewall) between the WAP and the main network that just drops any packets to/from the multicast address range&#8230;</p>
<p class="ref-link">Check <a href="http://serverfault.com/questions/309019/is-there-a-good-way-to-keep-ipv6-multicast-packets-off-wifi" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/is-there-a-good-way-to-keep-ipv6-multicast-packets-off-wifi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
