Peraburek
Here is my nat-start script for brute force protection for telnet, you should be able to re-arrange it.
#!/bin/sh
logger "firewall" "Applying nat-start rules"
iptables -N TELNETBFP -t nat
iptables -A TELNETBFP -t nat -m recent --set --name TELNET --rsource
iptables -A TELNETBFP -t...
To ban Ip's I have used both
sh firewall BANSINGLE
then Ip address
and it accepts the command and adds it to the list.
I also manually tried:
ipset -q -A Blacklist 123.123.123.123
It tells me it is already in the blacklist.
I still see traffic from that ip address coming through on the...
After a night of testing it looks like there are still some issues.
The singlebanip is not working properly.
It's not banning IP's I add but if I use the command ipset -A Blacklist 69.162.124.228 it states it's already there.
It does say it added the IP but it still passes through the traffic...
Ebag333
I copied your script and now it's working for me now.
I think the original script might be broken, perhaps after some updates to the router software?
I will monitor and check to make sure the country and single bans are working properly.
How do you check the logs to see what parts of...
I have a couple of new questions I am hoping someone can help.
I am Trying to ban a particular ip without any success.
I am trying
sh firewall BANSINGLE=x.x.x.x
I also tried with quotes
sh firewall BANSINGLE="x.x.x.x"
I check the ipset.txt file and it's not listed and I see the firewall log...
Thank you for the quick replies.
I use notepad +++ and winscp to transfer.
I found where to switch it in notepad +++
Notepad++. From the "Edit" menu, select "EOL Conversion" -> "UNIX/OSX Format".
http://stackoverflow.com/questions/16239551/eol-conversion-in-notepad
So far it looks good, some...
Are there any requirements other than Merlin firmware to get this to work?
I also installed optware via installing download master located at usb applications menu item.
I am getting all sorts of errors when I try to manually run the script.
Merlin Firmware:378.56_2
admin@RT-AC68R-D800:/tmp#...