[Saving Blacklists] ... ... ...
cat: can't open '/tmp/syslog.log-1': No such file or directory
sed: /tmp/syslog.log-1: No such file or directory
I just did factory default reset and updated to 380,66 and installed this and when running the save command I get this
Code:[Saving Blacklists] ... ... ... cat: can't open '/tmp/syslog.log-1': No such file or directory sed: /tmp/syslog.log-1: No such file or directory
No quite so... The multiple calling of the firewall-start existed much before 380.66 See March 2016 thread. The reason being that script is called whenever the firewall rules needs to be reloaded. It is event driven.but as of 380.66 there has been a functionality change (the script is initiated multiple times at boot)
That is the purpose of that reinstatement snippet in the wiki that is to be part of the firewall start script.I thought so, I wondered why iblocklistloader and ya-malware recommended the one time run. I suppose that's a question for @redhat27 !
No quite so... The multiple calling of the firewall-start existed much before 380.66 See March 2016 thread.
I just did factory default reset and updated to 380,66 and installed this and when running the save command I get this
Code:[Saving Blacklists] ... ... ... cat: can't open '/tmp/syslog.log-1': No such file or directory sed: /tmp/syslog.log-1: No such file or directory
Router Model: RT-AC3100
Skynet Version: v3.9.4 (16/05/2017)
iptables v1.4.14
ipset v6.29, protocol version: 6
FW Version: 380.66_0
Startup Entry Detected
Cronjob Detected
Autobanning Enabled
Whitelist IPTable Not Detected
BlockedRanges IPTable Not Detected
Blacklist IPTable Not Detected
Whitelist IPSet Detected
BlockedRanges IPSet Detected
Blacklist IPSet Detected
@Adamm I know you are looking into perhaps why "firewall start" does not set up the iptables rules after a reboot and execution of /jffs/scripts/firewall-start
service restart_firewall
However, I noticed that after a reboot a lot of false positives get added to the whitelist before I can execute "firewall start" manually. I had 39 added almost right away
This issue should be fixed as of the latest update, make sure your firewall-start file looks like this, and if you're still having issues use the following command then check again;
I haven't looked at how your code works, but two ways you could possibly ensure that multiple executions don't cause issues:
1) Start by flushing the ipsets/chains you are creating before re-filling them
2) Set up a temp file in /tmp/ and us that as a "marker" that your script already completed its setup (a simple "touch /tmp/skynet.started" and then an "if [ -f /tmp/skynet.started ]" or something like that).
Just simply delete the files you downloaded to /jffs/scriptsI installed this on my RT-AC66U before I read it's not compatible.. what the command to uninstall it?
I noticed that after a reboot a lot of false positives get added to the whitelist
So I was thinking about this and think I found a good middle ground solution and pushed an update.
What's the easiest way to update to the latest version if other executables are using firewall-start to? I'm using DNSCrypt, which uses firewall-start and whas wondering whether there's a way to update without manually altering files regularly. Or is it just a matter of dowloading a fresh copy of firewall and leave firewall-start as is?
sh /jffs/scripts/firewall update
Another question: I too noticed a lot of IP's banned and that unbanned and whitelisted. After installation I added an IP address manually to whitelist, as this daily used for remote pentesting and I don't want it blocked. However, I would like very much to be able to distinguish the user-added IP's on the whitelist and the auto-added IP's. Is there any way you can implement that? A seperate section in ipset.txt or even a commend at the end of the line (if possible) would suffice.
wget -O /jffs/scripts/firewall https://raw.githubusercontent.com/Adamm00/IPSet_ASUS/master/firewall.sh
chmod +x /jffs/scripts/firewall
service restart_firewall
Okay, thanks for the quick reply and the clarification. So, just to be shure, if I run:
Code:wget -O /jffs/scripts/firewall https://raw.githubusercontent.com/Adamm00/IPSet_ASUS/master/firewall.sh chmod +x /jffs/scripts/firewall service restart_firewall
... I'm running the latest release?
I installed this on my RT-AC66U before I read it's not compatible.. what the command to uninstall it?
any work around for the RT-N66U with older ipset/iptables ?
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!