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

    Alias reload

    Scheduled Pinned Locked Moved Firewalling
    17 Posts 6 Posters 4.2k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by

      Yeah that would be that cron linked too then.

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.8, 24.11

      1 Reply Last reply Reply Quote 0
      • V
        viragomann
        last edited by

        Yeah, I remember. The update frequency for url tables is hardcoded to one day in pfSense. If the file isn't older then set there rc.update_urltables does nothing.

        Modified that years ago in addition to the cron job. Found no other way to shorten the update interval.

        1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator
          last edited by

          Good point.. So even if run url table every hour, still won't update since the stamp on the file is less than day old?

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          1 Reply Last reply Reply Quote 0
          • V
            viragomann
            last edited by

            Made that experience with 2.2.4 - 2.2.6.

            1 Reply Last reply Reply Quote 0
            • F
              fireix
              last edited by

              So I'm out of luck? Or do I need to find this update frequency?

              V 1 Reply Last reply Reply Quote 0
              • V
                viragomann @fireix
                last edited by

                @fireix
                As mentioned, it‘s hardcoded in a script. You may change the value. I wrote down, how to do that somewhere, i can look for it if you need it. But consider that an pfSense upgrade will overwrite the setting and you will have to edit the script again.

                1 Reply Last reply Reply Quote 0
                • S
                  serbus
                  last edited by serbus

                  Hello!

                  Maybe try :

                  /etc/rc.update_urltables now forceupdate
                  

                  This should update all url alias tables regardless of age.

                  Or do a :

                  touch -t 0000000000 /var/db/aliastables/myaliastable.txt
                  

                  and then let the normal update happen to target just the one table.

                  John

                  Lex parsimoniae

                  1 Reply Last reply Reply Quote 0
                  • S
                    serbus
                    last edited by

                    Hello!

                    Actually, i dont think what I posted will work for your alias. You are using an alias type of "URL(IPs)". The scripts I mention only operate on the "URL TABLE (IPs)" type. Maybe you can use the URL TABLES, in which case you can also do:

                    /etc/rc.update_urltables now forceupdate myaliastable
                    

                    to update a single alias table.

                    John

                    Lex parsimoniae

                    1 Reply Last reply Reply Quote 0
                    • S
                      serbus
                      last edited by

                      Hello!

                      There appears to be a separate system for updating aliases with the "URL(IPs)" type. It runs off of minicron. You can see it at :

                      ps -aux | grep minicron
                      

                      The update script is at /etc/rc.update_alias_url_data

                      For some reason, minicron runs it through fcgicli. You can try running the rc.update_url_data script directly. YMMV

                      John

                      Lex parsimoniae

                      1 Reply Last reply Reply Quote 0
                      • S sef1414 referenced this topic on
                      • B
                        bobcodes
                        last edited by

                        I hate to resurrect an old topic but for anyone looking to manually update aliases the correct command is /etc/rc.update_alias_url_data.

                        E 1 Reply Last reply Reply Quote 2
                        • E
                          esaenz @bobcodes
                          last edited by

                          @bobcodes Voy a responder a este hilo debido a que como yo, muchos llegamos aqui buscando una respuesta. Espero les sirva.

                          Instalen el paquete cron de pfsense, este mostrara la lista de los cron activos. entre ellos esta el que ejecuta: /usr/bin/nice -n20 /etc/rc.update_urltables a las 12:30 todos los dias. (en mi caso)

                          Si deseas que se ejecute en otros tiempos mas frecuentes, debido a como mencionan no encontraron la manera de hacer la ejecución mas continua.

                          Para no modificar mucho. Solo modifica el cron y agrega el now forceupdate y cambiarlo a cada minuto.

                                • */usr/bin/nice -n20 /etc/rc.update_urltables now forceupdate

                          o cada 5min
                          */5 * * * * /usr/bin/nice -n20 /etc/rc.update_urltables now forceupdate

                          Espero sirva para proximos visitantes.

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