Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Setup CRON To Update URL_Tables for Alias - Blocked IPs

    Scheduled Pinned Locked Moved Firewalling
    3 Posts 2 Posters 284 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      carrzkiss
      last edited by carrzkiss

      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 sites

      Firewall Rule
      Block
      Address of Alieace | Blocked_IPS

      Crons
      5 * | * | * | * root /usr/bin/nice -n20 /etc/rc.update_urltables
      5 * | * | * | * root /usr/bin/touch -t 1001031305 http://192.168.2.12/Admin/list.asp

      Am 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

      S 1 Reply Last reply Reply Quote 0
      • S
        SteveITS Galactic Empire @carrzkiss
        last edited by

        @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

        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
        Upvote 👍 helpful posts!

        C 1 Reply Last reply Reply Quote 0
        • C
          carrzkiss @SteveITS
          last edited by

          Thanks, @SteveITS

          I finally saw that it is being updated, which is excellent.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.