Bonjour Sleep Proxy Server

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Goto page 1, 2  Next
Author Message
DzM
DD-WRT Novice


Joined: 16 Jan 2007
Posts: 10

PostPosted: Mon Feb 22, 2010 21:19    Post subject: Bonjour Sleep Proxy Server Reply with quote
In Apple's "Snow Leopard" (Mac OS 10.6) release a feature is now available labeled, variously, "Wake on Demand." Under the hood this feature uses Bonjour and a "sleep-proxy" service that runs on Airport Extreme and Time Capsule devices. I believe that at a protocol level this is an implementation of mDNS.

I would really, REALLY like to see dd-wrt offer this Bonjour service.

Apple's Bonjour Sleep Proxy is implemented in mDNSResponder. This project is open source under the Apache License. It should be free to consume and redistribute as part of any *wrt project. The source code is viewable at:

http://www.opensource.apple.com/source/mDNSResponder/mDNSResponder-214/

Various bits of Sleep Proxy (mostly client as near as I can see) are scattered around the various OS-specific directories. Sleep proxy Server seems to mostly live here:

http://www.opensource.apple.com/source/mDNSResponder/mDNSResponder-214/mDNSCore/mDNS.c


More information is at:

http://en.wikipedia.org/wiki/Sleep_Proxy_Service
Sponsor
Fuxia
DD-WRT Novice


Joined: 29 Mar 2010
Posts: 7

PostPosted: Sun Apr 04, 2010 17:42    Post subject: Reply with quote
As an Apple user, I think it would be a good idea. It would be a better Airport Extreme.
A-Ge0
DD-WRT Novice


Joined: 17 Apr 2007
Posts: 10

PostPosted: Thu Apr 22, 2010 7:36    Post subject: Reply with quote
yes this feature is highly anticipated!
every mac user wants it passionately!
beej
DD-WRT Novice


Joined: 11 May 2010
Posts: 2

PostPosted: Tue May 11, 2010 11:28    Post subject: Reply with quote
+1 Smile
beej
DD-WRT Novice


Joined: 11 May 2010
Posts: 2

PostPosted: Tue May 11, 2010 11:49    Post subject: bug filed Reply with quote
i filed a bug in mantis:
http://www.dd-wrt.com/dd-wrtv2/bugtracker/view.php?id=3894
cholywell
DD-WRT Novice


Joined: 24 Jan 2010
Posts: 22
Location: Canada

PostPosted: Tue May 11, 2010 12:26    Post subject: Reply with quote
As an Apple user I think this would be a great addition.
_________________
Linksys WRT610Nv1
DD-WRT v24-sp2 (10/13/10) big - build 15452M NEWD-2 K2.6 Eko
A-Ge0
DD-WRT Novice


Joined: 17 Apr 2007
Posts: 10

PostPosted: Fri May 21, 2010 21:56    Post subject: Reply with quote
any news?
ewmailing
DD-WRT Novice


Joined: 09 Dec 2007
Posts: 19

PostPosted: Fri Jul 09, 2010 13:47    Post subject: Reply with quote
FYI, I'm experimenting with Bonjour on Tomato trying to enable the Sleep Proxy server.
http://www.linksysinfo.org/forums/showthread.php?t=64245&page=10
DzM
DD-WRT Novice


Joined: 16 Jan 2007
Posts: 10

PostPosted: Wed Jul 21, 2010 2:39    Post subject: Reply with quote
ewmailing wrote:
FYI, I'm experimenting with Bonjour on Tomato trying to enable the Sleep Proxy server.
http://www.linksysinfo.org/forums/showthread.php?t=64245&page=10

Sweet! Please keep us up-to-date on whether there's anything we can do to help.
weatherproof
DD-WRT Novice


Joined: 20 Oct 2010
Posts: 1

PostPosted: Wed Oct 20, 2010 23:11    Post subject: Reply with quote
Has there been any updates to the status of this possible feature in DD-WRT?
das_schaf
DD-WRT Novice


Joined: 04 Feb 2008
Posts: 3

PostPosted: Sat Dec 25, 2010 11:57    Post subject: Reply with quote
I would also like to see a implementation of a sleep proxy in DD-WRT.

Meanwhile i came up with a simple workaround:

The dnsmasq server is able to run a a script when a new lease is requested or a current lease is updated. Just add a line like this to the configuration:

Code:
dhcp-script=/tmp/wakeup.sh


The script identifies my apple tv by it's mac address. Everytime the apple tv get's a new lease, my macbook is waked up by a wake-on-lan call. To be sure my macbook will only wake up when the apple tv is powered on, i decreased the lease time to 60 minutes (my macbook get's into sleep mode after an hour of inactivity)

Code:
#!/bin/sh
WOL=/usr/sbin/wol
HOST=01:00:1f:xx:xx:xx:xx
MACATV=58:55:ca:xx:xx:xx

if [ -n "$1" ] && [ "$1" = "add" ] && [ -n "$2" ] && [ "$2" = "$MACATV" ]; then
echo $(date) Waking up host \"$HOST\" >> /tmp/wake.log
$WOL $HOST
fi
agascon
DD-WRT Novice


Joined: 29 Dec 2010
Posts: 1

PostPosted: Wed Dec 29, 2010 18:21    Post subject: Reply with quote
Hi guys,

Would be great to have support for wake on demand on our dd-wrt routers but I feel could be a hard task to migrate the apple code.

I have been checking the apple code and even everything is there, including the Sleep Proxy Server, the code is divided in 2 parts, platform specific and no platform specific. There are some code for OSX, Win32, a Posix implementation (that maybe could be used as basis for dd-wrt), etc…

Unfortunately the SPS code is specific for OSX and even worst looks deeply linked to BPF packet filters (I think only supported on BSD).

I have been working with the Win32 implementation which is the most complete after the OSx version and have manage to enable the advertising of the SPS, etc.. but well all the code for the service is missing, nothing is working. :(

Maybe some expert on dd-wrt kernel could advise more about the BPF filters topic, if the are supported some how. In any case this won't be a pice of cake..

Maybe there is some other Sleep Proxy implementation that could be migrated more easily? Any idea?
neptuneg
DD-WRT Novice


Joined: 14 May 2007
Posts: 4

PostPosted: Sun May 15, 2011 1:08    Post subject: Reply with quote
Has there been any update on this? Very Happy
misterjerk
DD-WRT Novice


Joined: 15 Feb 2007
Posts: 19

PostPosted: Fri Aug 05, 2011 12:46    Post subject: Reply with quote
+1
rsaonline
DD-WRT Novice


Joined: 06 Aug 2011
Posts: 1

PostPosted: Sat Aug 06, 2011 3:47    Post subject: Reply with quote
What about with Lion?
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum