Welcome, Guest. Please login or register.
Did you miss your activation email?
Tuesday 24 December 2024, 07:03:28 am

Login with username, password and session length

Visit the Official Endian Bug tracker  HERE
14262 Posts in 4377 Topics by 6517 Members
Latest Member: Sandro
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  General Support
| | |-+  Multicast for UPNP media server discovery
0 Members and 3 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Multicast for UPNP media server discovery  (Read 12540 times)
GregW
Jr. Member
*
Offline Offline

Posts: 2


« on: Saturday 09 April 2011, 04:10:19 am »

I just recently installed EFW Community 2.4.1 and so far I am very pleased.   I an looking for a way to send UPNP discovery and responce messages between the BLUE and ORANGE zones.  I noticed in the documentation that IGMP and mrouted and not supported on Endian.  So I attempted to take matters into my own hands ...

UPNP discovery and repsonce messages are sent on 239.255.255.250:1900.  Since all my Endian interfaces (ethX and brX) show MULTICAST in ifconfig my plan was a use a python script to listen on the ORANGE and BLUE interfaces to relay the UPNP messages.  Under the <FIREWALL><System Access> menu I added a firewall rule for Source Address: Any; Service: TCP+UDP 1900; and Action Allow.  The firewall for Outgoing Traffic is currently disabled.

I have two test scripts.  The first python script (the receiver) opens a socket listening for UPNP messages and writes them to stdout.  The second script (the sender) generates a simple test message and sends it out to the UPNP multicast address and port.

When the receiver is run on a machine behind the ORANGE network it receives and prints the discovery and responce messages from the UPNP devices.  When this script is run on the Endian box it does not see any of the UPNP messages.  However when the sender and receiver scripts are both run on the Endian box the multicast message from the sender script is received.  Multi cast messages generated with the sender script from Endian are not seen on hosts behind the ORANGE interface.

I was wondering if anyone has tried this type of relaying of multicast before and if so how did you do it.  I am also interested in anyone who can point me to some additional Endian configuration that I might have missed.

I can send or post the python scripts if that will help anyone.

Thanks in advance for any help on this one!!!
 
Logged
GregW
Jr. Member
*
Offline Offline

Posts: 2


« Reply #1 on: Saturday 09 April 2011, 03:13:48 pm »

After a few more hours of experimenting, I discovered the problem and it was an error in my python code not an Endian configuration issue.  I'm not used to writing network code on a machine with 4 NIC's.  I would still be interested to here from anyone who has tried anything like this before and/or others who are interested in also making this work.  I will let you know of the progress I make in getting the UPnP media proxy working in python.  But I am really good at not finishing projects.  Smiley

Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Page created in 0.063 seconds with 18 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com