Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Feb 2011 16:42:57 +0100
From:      Oliver Lehmann <lehmann@ans-netz.de>
To:        net@freebsd.org
Subject:   DLNA - IGMPProxy
Message-ID:  <20110218164257.1789797hzcgoyao0@avocado.salatschuessel.net>

next in thread | raw e-mail | index | archive | help
Hi,

I've got a shiny new Sony TV with DLNA Support :)
My fileserver is located in a different subnet so it is not accessibly
by the TV.
The TV itself detects my netbook which is in the same subnet (and runs
Win7) as a DLNA source.
I've now tried to setup igmpproxy because I thought this might solve
my problem accessing my DLNA server in another subnet.

- Sony TV: 10.0.2.102 (fxp2)
- FreeBSD System running mediatomb: 10.0.0.21 (fxp0)
- Win7 System: 10.0.1.51 (fxp1)

- I did kldload ip_mroute on my router to get MROUTING
- I added "allow ip from any to any { via fxp0 or via fxp1 or via fxp2 }"
   as a top rule to my ipfw configuration for testing.
- I installed igmpproxy, configuration:
quickleave
phyint fxp2 upstream  ratelimit 0  threshold 1
         altnet 10.0.2.0/24
phyint fxp0 downstream  ratelimit 0  threshold 1
phyint fxp1 downstream  ratelimit 0  threshold 1
phyint fxp3 disabled
phyint tun0 disabled
phyint lo0 disabled
phyint ipfw0 disabled
- I started igmpproxy

My TV still does not find any DLNA sources. I did a tcpdump on my
FreeBSD system and saw that some information was exchanged.

IGMP-Proxy Output:

Current routing table (Insert Route):
-----------------------------------------------------
#0: Src: 0.0.0.0, Dst: 224.0.1.60, Age:2, St: I, OutVifs: 0x00000002
#1: Src: 10.0.2.102, Dst: 239.255.255.250, Age:2, St: A, OutVifs: 0x00000003
#2: Src: 0.0.0.0, Dst: 224.0.0.252, Age:2, St: I, OutVifs: 0x00000002
-----------------------------------------------------
RECV V2 member report   from 10.0.0.21       to 239.255.255.250
Should insert group 239.255.255.250 (from: 10.0.0.21) to route table.  
Vif Ix : 0
Updated route entry for 239.255.255.250 on VIF #0
Vif bits : 0x00000003
Setting TTL for Vif 0 to 1
Setting TTL for Vif 1 to 1
Adding MFC: 10.0.2.102 -> 239.255.255.250, InpVIf: 2




TCPDUMP from my FreeBSD system running mediatomb:

16:30:36.785232 IP gurke-fxp0.salatschuessel.net >  
ALL-SYSTEMS.MCAST.NET: igmp query v2
16:30:37.341940 IP nudel.salatschuessel.net.47362 >  
gurke-fxp0.salatschuessel.net.domain: 59241+ PTR?  
1.0.0.224.in-addr.arpa. (40)
16:30:37.348578 IP gurke-fxp0.salatschuessel.net.domain >  
nudel.salatschuessel.net.47362: 59241 1/3/5 PTR[|domain]
16:30:37.348955 IP nudel.salatschuessel.net.19714 >  
gurke-fxp0.salatschuessel.net.domain: 59242+ PTR?  
1.0.0.10.in-addr.arpa. (39)
16:30:37.351946 IP gurke-fxp0.salatschuessel.net.domain >  
nudel.salatschuessel.net.19714: 59242* 1/1/0 PTR[|domain]
16:30:38.352099 IP nudel.salatschuessel.net.43548 >  
gurke-fxp0.salatschuessel.net.domain: 59243+ PTR?  
21.0.0.10.in-addr.arpa. (40)
16:30:38.357630 IP gurke-fxp0.salatschuessel.net.domain >  
nudel.salatschuessel.net.43548: 59243* 1/1/0 PTR[|domain]
16:30:40.761988 IP gurke-fxp0.salatschuessel.net >  
ALL-ROUTERS.MCAST.NET: igmp v2 report ALL-ROUTERS.MCAST.NET
16:30:41.357794 IP nudel.salatschuessel.net.49398 >  
gurke-fxp0.salatschuessel.net.domain: 59244+ PTR?  
2.0.0.224.in-addr.arpa. (40)
16:30:41.361834 IP gurke-fxp0.salatschuessel.net.domain >  
nudel.salatschuessel.net.49398: 59244 1/3/5 PTR[|domain]
16:30:44.403547 IP nudel.salatschuessel.net > 239.255.255.250: igmp v2  
report 239.255.255.250
16:30:45.361817 IP nudel.salatschuessel.net.15540 >  
gurke-fxp0.salatschuessel.net.domain: 59245+ PTR?  
250.255.255.239.in-addr.arpa. (46)
16:30:45.364535 IP gurke-fxp0.salatschuessel.net.domain >  
nudel.salatschuessel.net.15540: 59245 NXDomain 0/1/0 (103)
16:31:05.596118 ARP, Request who-has gurke-fxp0.salatschuessel.net  
tell nudel.salatschuessel.net, length 28
16:31:05.596255 ARP, Reply gurke-fxp0.salatschuessel.net is-at  
00:50:8b:e3:3f:60 (oui Unknown), length 46
16:31:07.616378 ARP, Request who-has fiori.salatschuessel.net tell  
gurke-fxp0.salatschuessel.net, length 46
16:31:07.616394 ARP, Reply fiori.salatschuessel.net is-at  
90:e6:ba:cc:ba:76 (oui Unknown), length 28
16:31:08.363958 IP nudel.salatschuessel.net.56335 >  
gurke-fxp0.salatschuessel.net.domain: 59246+ PTR?  
22.0.0.10.in-addr.arpa. (40)
16:31:08.367086 IP gurke-fxp0.salatschuessel.net.domain >  
nudel.salatschuessel.net.56335: 59246* 1/1/0 PTR[|domain]
16:31:50.178559 IP gurke-fxp0.salatschuessel.net >  
ALL-ROUTERS.MCAST.NET: igmp leave ALL-ROUTERS.MCAST.NET
16:31:51.002428 IP gurke-fxp0.salatschuessel.net >  
ALL-ROUTERS.MCAST.NET: igmp v2 report ALL-ROUTERS.MCAST.NET
16:31:51.006396 IP gurke-fxp0.salatschuessel.net >  
ALL-SYSTEMS.MCAST.NET: igmp query v2
16:31:54.964621 IP gurke-fxp0.salatschuessel.net >  
ALL-ROUTERS.MCAST.NET: igmp v2 report ALL-ROUTERS.MCAST.NET
16:31:58.168975 IP nudel.salatschuessel.net > 239.255.255.250: igmp v2  
report 239.255.255.250
16:32:22.165428 IP gurke-fxp0.salatschuessel.net >  
ALL-SYSTEMS.MCAST.NET: igmp query v2
16:32:26.163901 IP gurke-fxp0.salatschuessel.net >  
ALL-ROUTERS.MCAST.NET: igmp v2 report ALL-ROUTERS.MCAST.NET
16:32:29.124139 IP nudel.salatschuessel.net > 239.255.255.250: igmp v2  
report 239.255.255.250
16:32:53.369482 IP gurke-fxp0.salatschuessel.net >  
ALL-SYSTEMS.MCAST.NET: igmp query v2
16:33:00.761491 IP gurke-fxp0.salatschuessel.net >  
ALL-ROUTERS.MCAST.NET: igmp v2 report ALL-ROUTERS.MCAST.NET
16:33:02.289326 IP nudel.salatschuessel.net > 239.255.255.250: igmp v2  
report 239.255.255.250
16:33:06.581714 IP fiori.salatschuessel.net.16505 >  
gurke-fxp0.salatschuessel.net.domain: 56461+ A? pop.gmx.net. (29)
16:33:06.584613 IP gurke-fxp0.salatschuessel.net.domain >  
fiori.salatschuessel.net.16505: 56461 2/2/2 A 212.227.17.185, (138)
16:33:40.700010 IP 10.0.2.102.52323 > 239.255.255.250.1900: UDP, length 404
16:33:40.741915 IP 10.0.2.102.52323 > 239.255.255.250.1900: UDP, length 413
16:33:40.781375 IP 10.0.2.102.52323 > 239.255.255.250.1900: UDP, length 460
16:33:40.822868 IP 10.0.2.102.52323 > 239.255.255.250.1900: UDP, length 468
16:33:40.866022 IP 10.0.2.102.52323 > 239.255.255.250.1900: UDP, length 470
16:33:40.904720 IP 10.0.2.102.52323 > 239.255.255.250.1900: UDP, length 458
16:33:41.021694 IP 10.0.2.102.52323 > 239.255.255.250.1900: UDP, length 404
16:33:41.062396 IP 10.0.2.102.52323 > 239.255.255.250.1900: UDP, length 413
16:33:41.104868 IP 10.0.2.102.52323 > 239.255.255.250.1900: UDP, length 460
16:33:41.141397 IP 10.0.2.102.52323 > 239.255.255.250.1900: UDP, length 468
16:33:41.181870 IP 10.0.2.102.52323 > 239.255.255.250.1900: UDP, length 470
16:33:41.221326 IP 10.0.2.102.52323 > 239.255.255.250.1900: UDP, length 458
16:33:41.365837 IP nudel.salatschuessel.net.35965 >  
gurke-fxp0.salatschuessel.net.domain: 59247+ PTR?  
102.2.0.10.in-addr.arpa. (41)
16:33:41.370427 IP gurke-fxp0.salatschuessel.net.domain >  
nudel.salatschuessel.net.35965: 59247 NXDomain* 0/1/0 (112)
16:34:58.311731 IP gurke-fxp0.salatschuessel.net >  
ALL-SYSTEMS.MCAST.NET: igmp query v2
16:34:58.469980 IP nudel.salatschuessel.net > 239.255.255.250: igmp v2  
report 239.255.255.250


What am I missing to get it to work?
I also tried NATing the network where the TV is attached with divert/natd
but that also did not help.

Please keep me CCed

Greetings, Oliver

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110218164257.1789797hzcgoyao0>