OpenWrt Forum Archive

Topic: Is this possible with shell scripting the router?

The content of this topic has been archived on 1 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Dear developers!

I am not sure whether this qualifies as a developer question, but I am pretty sure OpenWRT developers can answer it. I'd like to know whether it is possible to capture TCP packets and hold them back for a while on the router? I want a computer on the LAN to sleep by longer inactivity and I'd like to wake it up with WOL from the router, when TCP packets addressed to it arrive. Is this possible with a shell script? Is there any API to help in this? Is there any possible workaround you can think of if not?

Note that Apple routers support a similar feature: "Wake on Demand and Bonjour Sleep Proxy", but I'd like to buy a Linksys WRT1200AC and use it with OpenWRT if it is possible somehow to solve this.

Many thanks!
inf3rno

I have the same question, anyone please help

dabihsss wrote:

I have the same question, anyone please help

Do you have an OpenWRT router? Can you try tcpdump on it? In theory that does what we need, but I don't have the router to try out.

The discussion might have continued from here.