Automatic wake up host script with etherwake

Hello,

i need your help to understand what i'am doing wrong.

I really like the idea of following script: auto-wol script

i added these lines with a script in rc.local to iptables-nft for the script to work properly:

#!/bin/sh
modprobe br-netfilter | true
iptables-nft -N WOL_LOG
iptables-nft -A INPUT 1 -j WOL_LOG
iptables-nft -A FORWARD 1 -j WOL_LOG
iptables-nft -A OUTPUT 1 -j WOL_LOG
iptables-nft -I WOL_LOG 1 -d 192.168.1.240 -p tcp -m multiport --dports 8096,18081,9922 -m limit --limit 1/min -j LOG --log-prefix "WOL_LOG: "
iptables-nft -I WOL_LOG 2 -d 192.168.1.240 -p udp -m multiport --dports 8096,18081,9922 -m limit --limit 1/min -j LOG --log-prefix "WOL_LOG: "

In Luci i set the loglevel to debug.
But no logging at all ( logread or dmesg ) when i try to connect to the specified host from inside the lan and outside.

On my first try i added only this:

iptables-nft -A FORWARD -d 192.168.1.240 -p tcp -m multiport --dports 8096,18081,9922 -m limit --limit 1/min -j LOG --log-prefix "WOL_LOG: "

.... and it worked for a small amount of time. But now nothing appears in the log
so the script isn't working anymore.

Has someone an idea what could be wrong ?

1 Like