LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 01-26-2005, 03:34 AM   #1
saads
LQ Newbie
 
Registered: Jan 2005
Posts: 1

Rep: Reputation: 0
upnp multicast forwarding on linux


I have a linux box - Fedora Core 2 with kernel 2.6.5 - acting as a bluetooth access point. The interface it uses for bluetooth is pan0 with ip address 192.168.70.1. The access point is connected to a wired LAN over interface eth0 which has IP address 192.168.1.x, which it gets from a DHCP server running on the LAN. I am running UPnP devices on several other hosts on the LAN, each with IP address 192.168.1.x.

I have several cell phones connected to the access point over bluetooth. Each phone has a static ip address 192.168.70.x. I have enabled ip forwarding on the access point and the phones are able to ping any host on the wired LAN. The phones all run control point applications that allow them to control the UPnP devices on the LAN.

The problem is that during the discovery phase, the control point issues a multicast MSEARCH message. UPnP issues multicasts on 239.0.0.0 with netmask 255.0.0.0 These packets are not getting forwarded by the access point. I have tethereal listening on eth0 and the packets never get sent out. So the phones are unable to discover devices on the wired LAN. I also want the phones to receive incoming multicasts from the devices on the LAN. The UPnP devices use mulitcast to send event updates to control points that are subscribed to the events. I need the phones to receive these events.

So I need the multicast to go from pan0 to eth0 and the reverse, which is where I am having trouble. Putting in two new entries into the routing table like this won't work:

route add -net 239.0.0.0 netmask 255.0.0.0 eth0
route add -net 239.0.0.0 netmask 255.0.0.0 pan0

This doesn't work because route will just follow the first match that it sees and so all the multicast packets will just be echoed onto eth0.

I thought about using a bridge, but I haven't tried it out yet. The problem is that I am already implicitly using a bridge with the Bluez bluetooth stack since each new phone connection creates a bnepX interface which is automatically added to the pan0 bridge. I also already have everything set up using ip forwarding so I am wondering if anyone has a solution to this using iptables or route. Thanks.
 
  


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
Multicast forwarding cosher Linux - Networking 0 02-08-2005 05:39 PM
Why doesn't Linux support UPnP to solve its device driver problems? john_walsh54 Linux - Hardware 2 05-31-2004 10:16 PM
Linux IPv6 multicast prtscr Linux - Networking 0 04-14-2004 11:44 AM
Upnp on Linux (redhat 9) psterr Linux - Security 1 06-08-2003 02:07 AM
Linux Multicast support mistkhan Linux - Networking 0 06-14-2001 05:33 PM


All times are GMT -5. The time now is 03:05 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration