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

pfBlockerNG update errors

Plus 23.01 Development Snapshots (Retired)
5
6
1.9k
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.
  • D
    dennypage
    last edited by dennypage Feb 7, 2023, 8:06 PM Feb 6, 2023, 11:17 PM

    Following the update to 23.01-RC and pfBlockerNG-devel, I am receiving a daily flurry of errors such as these in the system log:

    Feb  6 12:30:52 fw php-cgi[82398]: rc.update_urltables: /etc/rc.update_urltables: ERROR: could not update pfB_Africa_v4 content from https://127.0.0.1:443/pfblockerng/pfblockerng.php?pfb=pfB_Africa_v4 <br />[ SC, SC_rep ]
    Feb  6 12:30:52 fw php-cgi[82398]: rc.update_urltables: /etc/rc.update_urltables: ERROR: could not update pfB_Asia_v4 content from https://127.0.0.1:443/pfblockerng/pfblockerng.php?pfb=pfB_Asia_v4 <br />[ KH, KH_rep, CN, CN_rep, IR, IR_rep, IQ, IQ_rep, KZ, KZ_rep, KP, KP_rep, PK, PK_rep, SY, <br />SY_rep, TR, TR_rep, VN, VN_rep ]
    Feb  6 12:30:52 fw php-cgi[82398]: rc.update_urltables: /etc/rc.update_urltables: ERROR: could not update pfB_Europe_v4 content from https://127.0.0.1:443/pfblockerng/pfblockerng.php?pfb=pfB_Europe_v4 <br />[ BY, BY_rep, BA, BA_rep, BG, BG_rep, HR, HR_rep, CZ, CZ_rep, EE, EE_rep, HU, HU_rep, XK, <br />XK_rep, LV, LV_rep, LT, LT_rep, MD, MD_rep, ME, ME_rep, MK, MK_rep, RU, RU_rep, RS, RS_rep, <br />SK, SK_rep, SI, SI_rep, UA, UA_rep ]
    Feb  6 12:30:52 fw php-cgi[82398]: rc.update_urltables: /etc/rc.update_urltables: ERROR: could not update pfB_NAmerica_v4 content from https://127.0.0.1:443/pfblockerng/pfblockerng.php?pfb=pfB_NAmerica_v4 <br />[ PA, PA_rep ]
    Feb  6 12:30:52 fw php-cgi[82398]: rc.update_urltables: /etc/rc.update_urltables: ERROR: could not update pfB_SAmerica_v4 content from https://127.0.0.1:443/pfblockerng/pfblockerng.php?pfb=pfB_SAmerica_v4 <br />[ BO, BO_rep, CL, CL_rep, CO, CO_rep, UY, UY_rep ]
    Feb  6 12:30:52 fw php-cgi[82398]: rc.update_urltables: /etc/rc.update_urltables: ERROR: could not update pfB_PRI1_v4 content from https://127.0.0.1:443/pfblockerng/pfblockerng.php?pfb=pfB_PRI1_v4 <br />[ Abuse_Feodo_C2_v4, Abuse_SSLBL_v4, CINS_army_v4, ET_Block_v4, ET_Comp_v4, ISC_Block_v4, Spamhaus_Drop_v4, Spamhaus_eDrop_v4, Talos_BL_v4 ]
    Feb  6 12:30:52 fw php-cgi[82398]: rc.update_urltables: /etc/rc.update_urltables: ERROR: could not update pfB_PRI2_v4 content from https://127.0.0.1:443/pfblockerng/pfblockerng.php?pfb=pfB_PRI2_v4 <br />[ Alienvault_v4 ]
    

    The failure is occurring in function process_alias_urltable (line 2718 of /etc/inc/pfsense-utils.inc) as a result of the call to filter_var($url, FILTER_VALIDATE_URL) function returning false.

    I am not at all sure, but am wondering if the issue may be that the URL being validated is not escaped:

    https://127.0.0.1:443/pfblockerng/pfblockerng.php?pfb=pfB_PRI1_v4 <br />[ Abuse_Feodo_C2_v4, Abuse_SSLBL_v4, CINS_army_v4, ET_Block_v4, ET_Comp_v4, ISC_Block_v4, Spamhaus_Drop_v4, Spamhaus_eDrop_v4, Talos_BL_v4 ]
    

    Whereas the URL pfBlocker has stored in the configuration has escaped the less-than and greater-than surrounding the break:

    https://127.0.0.1:443/pfblockerng/pfblockerng.php?pfb=pfB_PRI1_v4 &lt;br /&gt;[ Abuse_Feodo_C2_v4, Abuse_SSLBL_v4, CINS_army_v4, ET_Block_v4, ET_Comp_v4, ISC_Block_v4, Spamhaus_Drop_v4, Spamhaus_eDrop_v4, Talos_BL_v4 ]
    
    D 1 Reply Last reply Feb 7, 2023, 8:41 PM Reply Quote 0
    • D
      dennypage @dennypage
      last edited by Feb 7, 2023, 8:41 PM

      @dennypage It turns out that my speculation about the escaping of less-than and greater than was incorrect.

      The problem is the presence of a space in the URL.

      The following will validate:

      https://127.0.0.1:443/pfblockerng/pfblockerng.php?pfb=pfB_PRI1_v4&nbsp;&lt;br&nbsp;/&gt;[&nbsp;Abuse_Feodo_C2_v4,&nbsp;
      Abuse_SSLBL_v4,&nbsp;CINS_army_v4,&nbsp;ET_Block_v4,&nbsp;ET_Comp_v4,&nbsp;ISC_Block_v4,&nbsp;Spamhaus_Drop_v4,&nbsp;Spamhaus_eDrop_v4,&nbsp;Tal
      os_BL_v4&nbsp;]
      

      As will this:

      https://127.0.0.1:443/pfblockerng/pfblockerng.php?pfb=pfB_PRI1_v4
      

      For that matter, so will this:

      https://127.0.0.1:443/nonexistenturl?nooption
      

      I don't know if this is an issue for pfSense or pfBlockerNG.

      @BBcan177 ?

      P 1 Reply Last reply Feb 10, 2023, 1:17 PM Reply Quote 1
      • P
        p1erre @dennypage
        last edited by Feb 10, 2023, 1:17 PM

        @dennypage same issue on my site

        M 1 Reply Last reply Feb 10, 2023, 1:33 PM Reply Quote 0
        • M
          mrsunfire @p1erre
          last edited by Feb 10, 2023, 1:33 PM

          Same here

          Netgate 6100 MAX

          C 1 Reply Last reply Feb 13, 2023, 6:00 PM Reply Quote 0
          • D dennypage referenced this topic on Feb 12, 2023, 7:23 PM
          • D dennypage referenced this topic on Feb 12, 2023, 7:24 PM
          • D dennypage referenced this topic on Feb 12, 2023, 7:24 PM
          • C
            cmcdonald Netgate Developer @mrsunfire
            last edited by Feb 13, 2023, 6:00 PM

            Issue is being addressed with @BBcan177 . Stay tuned

            Need help fast? https://www.netgate.com/support

            R 1 Reply Last reply Feb 14, 2023, 1:04 AM Reply Quote 4
            • R
              rpotter28 @cmcdonald
              last edited by Feb 14, 2023, 1:04 AM

              @cmcdonald Just got here to report this... Thanks Christian for being active on it!

              1 Reply Last reply Reply Quote 0
              • T tman222 referenced this topic on Feb 16, 2023, 11:24 PM
              • T tman222 referenced this topic on Feb 16, 2023, 11:24 PM
              • D dennypage referenced this topic on Feb 21, 2023, 6:33 PM
              4 out of 6
              • First post
                4/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.