Hi everybody. I'm working in my final degree project, and I've been told to do the next:
I need the router to do an automatic WAKE ON LAN when a service is needed from a host and it's asleep.
The normal sequence would be:
1-I need to access to a service from PC1 (i.g. desktop remote control)
2-I know PC1 is asleep, so I make first and automatic WOL with the magic package.
3-I wait PC1 to boot up
4-I access desktop remote control.
and I'd like to be like this:
1-I need to access to a service from PC1 (i.g. desktop remote control)
2-The routers detects itself that PC1 is asleep (lets say there is a table like (MAC address, IP address, state -wake up, asleep, time_to_wake_up)
3-If PC1 is asleep, the routers itself wakes it up and waits time_to_wake_up seconds.
4-the router sends the access to the service.
I'm working in ubuntu with openwrt backfire version. I've downloaded "knock" and "wol" packages, and I've been looking in "iptables" package, but I still don't know what can I do to reach that target. I need some help.
Thank you very much.
