Hi all, got a question maybe someone could help me out with. Ever since v6.6.2 the output display for firewall stats changed to where I get weird characters when I send the output to a file. I have this set up to where it emails me this output file but it's starting to get harder to read. Although console displays correctly I'm thinking it could this "wait animation" that's causing it. What do you think and is there a way to fix this?
The command I use is: sh /jffs/scripts/firewall stats >>/tmp/mail.txt
Below underline in red is the weird characters that gets included in my output file that get's emailed.
Thanks,
sone
sh /jffs/scripts/firewall stats | sed -r 's/'$(echo -e "\033")'\[[0-9]{1,2}(;([0-9]{1,2})?)?[mK]//g' | strings > /tmp/mail.txt
From the main menu, select option [2] --> Ban followed by option [4] --> Country.Any good method of banning an entire country?
No. Lower case two character country codes separated by a space -- il ng.do i need to seperate them with a comma? I want to block israel and nigeria
No. https://graham.main.nc.us/~bhammel/graham/cntrys.html:"Banned Countries; isr nig"
Configured correctly then?
@Adamm I have the AiProtection - Two-Way IPS enabled on my router and I have Ban AiProtect enabled in Skynet.
I went into stats in Skynet and did a search for entries "from specific IP" and of course verified all the entries in the web management for AiProtection - Two-Way IPS in the log of the router are indeed in Skynet and now blocked.
My question is if I delete the log in web management of the router for AiProtection - Two-Way IPS would it remove those entries in Skynet as well?
I would assume no but I thought I would check as the log is a few pages now in the web management so I would like to clean it up and delete it. Should the web management log be maintained/left alone or deleted?
Also, how often does Skynet check AiProtection - Two-Way IPS logs and add them to SkyNet?
@Adamm.....is this a poor question, been answered already, or am I confusing things that may have been explained in a previous post? I did a search in this thread and found no results pertaining to my question.
I just want to say @Adamm this Skynet gets better and better all the time. You and @thelonelycoder have given the community so much, it's hard to imagine what real life, (without a supported Asus router) would be like. Thank you, both of you. I love the new added features that both scripts contribute. I must say that without AMTM my setup this morning would have been a major PITA. After reset to factory defaults, a new spiffy USB stick, I have no issues with the pre-routing duplicating in the port forward log anymore, and my router shuts down with a clean dismount of the USB drive with no added script. It now works like you guys talk about. All my issues it would seem were operator caused. Thanks for staying with me, and not telling me I'm crazy. Anyway credit where credit is due, you all are awesome.
(...) and my router shuts down with a clean dismount of the USB drive with no added script. It now works like you guys talk about. All my issues it would seem were operator caused. Thanks for staying with me, and not telling me I'm crazy. Anyway credit where credit is due, you all are awesome.
@Adamm I noticed that the IoT blocking is applied to the IP not the MAC. This is a bit problematic for the people that don't have reserved IP addresses for their IoT devices. Do I have this right? Have I missed something? The reason why I caught this was that I banned an IP and 2 days later I was blocking a different device with that same IP. Thanks again for your great script.
Gotcha, that is what I did. I created reserve addresses for the IoT devices. Thanks @AdammI find dealing with IP's a lot more user-friendly then mac addresses. Generally speaking devices should keep local IP's almost indefinitely due to how they are assigned even if not specifically configured as static.
I think the better question here would be, is there any reason your device can't be assigned a static address either via the devices configuration or the router its-self? Takes about two clicks and is much easier imo then trying to find a mac address (or explain to less tech savvy users what a mac address even is!)
is there any way to avoid seeing this system log dialog every hour?
Code:Mar 1 18:00:07 Skynet: [#] 154700 IPs (+0) -- 1607 Ranges Banned (+0) || 5718 Inbound -- 259 Outbound Connections Blocked! [save] [7s]
Believe its a Southpark character@Adamm, would you care to elaborate on your avatar? Those eyes creep me out, not to mention that whole mustache thing.
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!