Setup CRON To Update URL_Tables for Alias - Blocked IPs
-
Hello, all.
I installed CRON to make it easier to work with it through the GUI.
So far, I have done the following.Created Alias
Blocked_IPs | URL (IPs) | http://192.168.2.12/Admin/list.asp | IP Addresses that are terrorizing our sitesFirewall Rule
Block
Address of Alieace | Blocked_IPSCrons
5 * | * | * | * root /usr/bin/nice -n20 /etc/rc.update_urltables
5 * | * | * | * root /usr/bin/touch -t 1001031305 http://192.168.2.12/Admin/list.aspAm I supposed to set up a Scheduled Task for it as well, or is this all that is needed?
If this is all that is needed, the Alias
Blocked_IPs
It is not updating from the original two IP addresses I started with to the ones listed in list.asp, which is a little over 2,000.Also, it shows in the Alias [(less than 3000)]
Does this mean that the list cannot contain more than 3,000 IP Addresses, and if it exceeds this limit, I will have to create a new list?Also, would setting the time to 1 minute be OK for checking this list for updates?
This list is dynamically updated by our website(s) when someone runs SQL Injections or XSS Attacks. Therefore, there could be IP Addresses hitting our site every few seconds or every minute or so, running their scripts against it.Thank you, everyone.
Wayne -
@carrzkiss URL Aliases have a limit but not Table aliases which can update themselves…
https://docs.netgate.com/pfsense/en/latest/firewall/aliases-types.html#url-table-aliases
-
Thanks, @SteveITS
I finally saw that it is being updated, which is excellent.