javitu / rt-n56u

Automatically exported from code.google.com/p/rt-n56u
0 stars 2 forks source link

It's no way to route WOL #1424

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Is it possible to send WOL (Wake on LAN) from WAN?
Internal utility works very well, but I need to restrict access to router.

Original issue reported on code.google.com by ole...@olegon.ru on 14 Feb 2015 at 7:09

GoogleCodeExporter commented 8 years ago
Sorry for too short description.
I connected to 10.10.0.2 host.
10.10.0.2 - 10.10.0.1 (N56U)| 192.168.10.1 - 192.168.10.70
Need to wake up .70
Nowadays, wake up it by ssh host '/usr/sbin/ether-wake -i br0 MAC' from .2
It works.
But variants from 10.10.0.2:
wol MAC
wol -i 192.168.10.255 MAC
without any results. As I see in wireshark (on .70), it's no WOL packet at all. 
Green internet disabled.

Original comment by ole...@olegon.ru on 14 Feb 2015 at 8:21

GoogleCodeExporter commented 8 years ago
If 192.168.10.70 is onlime, wol -i 192.168.10.70 send packet to it without 
problem...

Original comment by ole...@olegon.ru on 14 Feb 2015 at 3:31

GoogleCodeExporter commented 8 years ago
No, it is not. Possible ways are: connect to device via ssh, or use vpn network.
Try to use "-b" key to ether-wake to force it send broadcast packet.

Original comment by d...@soulblader.com on 2 Mar 2015 at 10:09

GoogleCodeExporter commented 8 years ago
:) This is not route, this is direct send from device. As I said above, this 
utility works very well, but I need to restrict access to router and send 
packet from WAN to LAN.

Original comment by ole...@olegon.ru on 3 Mar 2015 at 4:26

GoogleCodeExporter commented 8 years ago
I don't know the way to forward these packets from WAN to broadcast address in 
LAN network. It seems kernel always rejects them. It is possible if you install 
entware. I wrote small python script long time ago which listen on WAN 
interface and forwards packets to local broadcast address, port 9. 

Original comment by d...@soulblader.com on 4 Mar 2015 at 11:01