use tomato or dd-wrt versions of iptables.
It would keep adding the iptables rule over and over again on each run of the script if you remove that part. Perhaps it would be better to substitute iptables-save with iptables -L on the dd-wrt routerbut its easy to fix all you have to do is delete the follwing parts
Code:iptables-save | grep -q "Malware-Filter" || iptables-save | grep -q "Malware-Range-Filter" ||
and theoretically it should work
The suggested resolution will not work for dd-wrt because the version that comes with dd-wrt is also incomplete and is an older version when compared to what is on entware.but i also see this comment
use tomato or dd-wrt versions of iptables.
so whats available on ddwrt ?
No, I mean that iptables-save can be replaced with iptables -L for all cases, it should work for dd-wrt as well.
If you want to check specifically for DD-WRT routers, you can look for some identifying text in (slash)proc(slash)version for example (forum is not allowing the / character with those words)
Linux version 4.4.12 (root@nmndev) (gcc version 5.3.0 (OpenWrt GCC 5.3.0 r48868) ) #883 SMP Fri Jun 3 13:48:18 CEST 2016
Replacing iptables-save with iptables -L worked! No errors.No, I mean that iptables-save can be replaced with iptables -L for all cases, it should work for dd-wrt as well.
If you want to check specifically for DD-WRT routers, you can look for some identifying text in (slash)proc(slash)version for example (forum is not allowing the / character with those words)
That was the fix. Getting your scripts to work on DD-WRT has exposed some if it's issues and has made me appreciate ASUS Merlin Firmware that much more. The issues seem to be carried over into the entware iptables package as well. In addition to the iptables-save error, I get this error when running blockstats:so there is your resolution just change that line added it to the wiki so it may benefit others
ip6tables v1.4.21: can't initialize ip6tables table `filter': Table does not exist (do you need to insmod?)
Perhaps ip6tables or your kernel needs to be upgraded.
Never mind the above error. I found the problem. It was from my copying the file, but I did get a msg., "Syntacs error: '241.10.143.81' is invalid as a number".Hi, Toast!
I d/led the new script and ran it and I got the following error, "Iptables V1.4.14: unknown option "-m".
What needs to be changed?
I had the same problem after I updated.Never mind the above error. I found the problem. It was from my copying the file, but I did get a msg., "Syntacs error: '241.10.143.81' is invalid as a number".
Thanks!I had the same problem after I updated.
delete /jffs/malware-filter.list file. Then rerun the script. Or, copy https://gitlab.com/swe_toast/malware-filter/raw/master/malware-filter.list into /jffs/malware-filter.list and rerun.
I am guessing that you use ipset v6. You can change the alias to beI get this error when running blockstats
alias blockstats='iptables -L -v | sed "2q;d"; iptables -L -v | grep "match-set"'
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!