i have a rooted dga4131 with a firmware based on OpenWRT.
I put it in cascade LAN-LAN to the main router, which is provided by my ISP. In this way I can extend my network wifi and program the arp table for WoW, which I can't do in the main one.
On the main router I set port mapping (UDP / TCP 9). In the secondary I turned off DHCP, opened the same ports and inserted a fixed value in the ARP Table:
ip neighbor add 192.168.1.xxx lladdr 00:xx:xx:xx:xx:xx dev br-lan nud permanent
The wake on wan doesn't work but Wake on lan does even if the computer is turned off for many hours (it means that the arp table is correctly set).
If i use tcpdump:
tcpdump -i br-lan port 9
i can see the magic packet:
root@OpenWrt:~# tcpdump -i br-lan port 9 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on br-lan, link-type EN10MB (Ethernet), capture size 262144 bytes 19:39:36.297848 IP 94-35-24-124.client-mvno.myISP.it.43379 > 192.168.1.(router2ip).discard: UDP, length 102 19:39:36.304727 IP 94-35-24-124.client-mvno.myISP.it.43379 > 192.168.1.(PC-ip).discard: UDP, length 102 19:39:36.311500 IP 94-35-24-124.client-mvno.myISP.it.43381 > 192.168.1.(router2ip).discard: UDP, length 102 19:39:36.318202 IP 94-35-24-124.client-mvno.MYISP.it.43381 > 192.168.1.(PC-ip).discard: UDP, length 102 19:39:36.323219 IP 94-35-24-124.client-mvno.tiscali.it.43374 > 192.168.1.(router2ip).discard: UDP, length 102 19:39:36.324575 IP 94-35-24-124.client-mvno.tiscali.it.43374 > 192.168.1.(PC-ip).discard: UDP, length 102 6 packets captured 6 packets received by filter 0 packets dropped by kernel
I tried stopping the firewall
or inserting rules in /etc/init.d/firewall, but it still does not work.
I also tried to install etherwake and use it to send a magic pocket from the secondary router with:
root@OpenWrt:~# /usr/bin/etherwake -D -i 'br-lan' -b '00:xx:xx:xx:xx:xx' The target station address is 0:xx:xx:xx:xx:xx. (Why only 1 zero?) Packet is ff ff ff ff ff ff 00 xx xx xx xx xx xx xx ff ff ff ff ff ff 00 (right mac address 16x).
but no magic packet reaches the computer (I see it with Wolsniffer).
How can I leave the Magic Pocket pass or redirect it to the pc? I have tried many different solutions but without solve the problem.