OpenWrt Forum Archive

Topic: need to control every frame which goes through my router

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

hi to everybody, I'm doing my final degree project and  I've been told to do the next.

I need to create an automatic WAKE ON LAN, for instance, I do a remote control desktop from PC1 to PC2 in the same net, and if PC2 is asleep, the router has to detect it automatically and wake it up.

so, I've been working in openwrt, I first took a look in arp and iptables package, which was quite big and difficult to understand. I finally changed my mind and installed knockd, which is a kind of firewall that waits for a special sequence of frames and then it does a job told by you.

I managed to compiled an openwrt with knockd inside and installed on an router, but it didn't work as expected ..

to sum up, where do you advice me to take a look and start programming?

Till now,anybody could help me, I hope this is the right place to post this,

Thank you very much in advanced and sorry for my english.

I have no idea how to do this, but I'm pretty sure that your PC device would need to support wake on lan.  I run Macs here, and I know that this feature can be turned on when needed, it is off by default.  If your PC doesn't allow this, I don't think it will wake up.  If it does allow this, I'm not sure that anything special on the router side is needed?

yes of course it does support it, I've got everything I need, I only have to make code, where I have the problem.

The discussion might have continued from here.