go ahead and change this manually on line 1274
Saving Changes [1s]
Removing Previous Malware Bans [1s]
Downloading filter.list [0s]
Whitelisting Shared Domains firewall: line 2046: date: Cannot allocate memory
[-1509523742s]
Consolidating Blacklist [4s]
Filtering IPv4 Addresses [1s]
Filtering IPv4 Ranges [0s]
Applying Blacklists [2s]
For False Positive Website Bans Use; ( sh firewall whitelist domain URL )
Skynet: [Complete] 97883 IPs / 3097 Ranges Banned. -53612 New IPs / 0 New Ranges Banned. Inbound / Outbound Connections Blocked! [22s]
Okay. Did just that. Changed it to "curl -sS". About one out of three times I get this if I'm quick.
Code:Saving Changes [1s] Removing Previous Malware Bans [1s] Downloading filter.list [0s] Whitelisting Shared Domains firewall: line 2046: date: Cannot allocate memory [-1509523742s] Consolidating Blacklist [4s] Filtering IPv4 Addresses [1s] Filtering IPv4 Ranges [0s] Applying Blacklists [2s] For False Positive Website Bans Use; ( sh firewall whitelist domain URL ) Skynet: [Complete] 97883 IPs / 3097 Ranges Banned. -53612 New IPs / 0 New Ranges Banned. Inbound / Outbound Connections Blocked! [22s]
The rest of the time it finishes fine. In fact, I noticed I only get the memory error if I run it quickly twice in a row. If I wait five minutes between updating it runs fine. Garbage collector maybe? No clue.
Either way, I don't think 382.1 likes the "-fs" option with curl.
When I just ran it, the ram went from 383 to 404 (spike) back down to 393.
Ran Banmalware again and got the fork error, and the ram dropped to 381 MB.
Ran it again and this time it finished without error and is using 391 MB.
Ran it again and it only loaded 29,000 IPs, using 383 MB.
Ran it again and got the fork error. Ram dropped to 381 MB.
Ran it one last time and it is now using 393 MB and banning 118,000 IPs.
I think it's flooding the ram above its physical limit. The ram spike is causing the issue. A big chunk of the 512 MB it has is reserved for System uses, so I guess it makes sense that somewhere around 4xx it shirts the bed. When it has 29,000 IPs already loaded up (not sure why that's happening) and it downloads 118,000 more for comparison/addendum, it gets bumped over the threshold and throws the memory or fork error, depending on where it was in the process.
All speculation, of course. I'm as likely to be wrong as I am right.
When using a larger blocking file in AB-Solution then more RAM is used by the file.I'm surprised the AC86U has such a high idle usage. My AC68U idles around 80MB with all the bells and whistles. I also saw @.TT. having similar ram issues with AB-Solution.
When using a larger blocking file in AB-Solution then more RAM is used by the file.
Not ideal, but for the time being it may free enough ram to keep things moving until the overall issue is resolved.
User0@RT-AC86U-98E0:/tmp/home/root# free -m
total used free shared buffers cached
Mem: 440372 329248 111124 0 1488 46572
-/+ buffers/cache: 281188 159184
Swap: 0 0 0
Looks like your swap is incorrect. 0b total.I still get the curl error when running option 3. Oh well. Thanks for trying -- it's still in Beta and will hopefully get cleaned up down the road.
Any idea why 382.1 is such a resource hog? I could live without half the functions Asus has crammed into the GPL. WTFast? My initial thought was WTF am I going to use that for? Be nice if we could opt out.
For posterity, my memory usage looks like this with everything loaded:
Code:User0@RT-AC86U-98E0:/tmp/home/root# free -m total used free shared buffers cached Mem: 440372 329248 111124 0 1488 46572 -/+ buffers/cache: 281188 159184 Swap: 0 0 0
Any idea why 382.1 is such a resource hog?
How do I install this fix? I tried:I've pushed another temporary fix for AC86U users (it will require a forced update). This time freeing pagecache, dentries and inodes prior to issuing the curl command that keeps seeming to fail.
Not ideal, but for the time being it may free enough ram to keep things moving until the overall issue is resolved.
/usr/sbin/wget -O /jffs/scripts/firewall https://github.com/Adamm00/IPSet_ASUS/blob/daac792db0454d8d32e7497be40b3079c8e857bb/firewall.sh
chmod +x /jffs/scripts/firewall
sh /jffs/scripts/firewall install
Looks like your swap is incorrect. 0b total.
You should be able to force an update by using:How do I install this fix? I tried:
Code:/usr/sbin/wget -O /jffs/scripts/firewall https://github.com/Adamm00/IPSet_ASUS/blob/daac792db0454d8d32e7497be40b3079c8e857bb/firewall.sh chmod +x /jffs/scripts/firewall sh /jffs/scripts/firewall install
sh /jffs/scripts/firewall update -f
Thanks for the tip. That worked, but I'm still getting this:You should be able to force an update by using:Code:sh /jffs/scripts/firewall update -f
Router Model; RT-AC86U
Skynet Version; v5.4.4 (2/11/2017)
iptables v1.4.14 - (eth0 @ 192.168.1.1)
ipset v6.32, protocol version: 6
FW Version; 382.1_beta2-gc21d7dd (Oct 24 2017) (4.1.27)
Install Dir; /tmp/mnt/disk/skynet (14.3G Space Available)
Boot Args; /jffs/scripts/firewall start banmalware autoupdate usb=/tmp/mnt/disk
Checking Skynet IPTable... [Failed]
I used this as a part of installing Entware. The setup includes a swap file.I've attempted setting up a swap previously on the ac66u and it didn't end well. My current USB drive is formatted to have 512 MB Linux swap at the beggining and then the rest is formatted as ext3, about 1.5 GB. Can you point me to a guide?
cd /tmp
wget -c -O entware-ngu-setup.sh http://goo.gl/hshQkA
chmod +x ./entware-ngu-setup.sh
./entware-ngu-setup.sh
Thanks for the tip. That worked, but I'm still getting this:
Code:Router Model; RT-AC86U Skynet Version; v5.4.4 (2/11/2017) iptables v1.4.14 - (eth0 @ 192.168.1.1) ipset v6.32, protocol version: 6 FW Version; 382.1_beta2-gc21d7dd (Oct 24 2017) (4.1.27) Install Dir; /tmp/mnt/disk/skynet (14.3G Space Available) Boot Args; /jffs/scripts/firewall start banmalware autoupdate usb=/tmp/mnt/disk Checking Skynet IPTable... [Failed]
User0@RT-AC86U-98E0:/tmp# sh /jffs/scripts/firewall install
/jffs/scripts/firewall: line 7: syntax error: unexpected newline
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!