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

PfBlockerNG 2.1.1_5 and issue with url/alias

Scheduled Pinned Locked Moved pfBlockerNG
14 Posts 3 Posters 3.5k 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.
  • R
    romainp
    last edited by Dec 23, 2016, 3:41 PM

    Nope.. Still have the same issue:

    • Try to reinstall the package
    • Try to remove the ipv4 defined list and create a brand new one with the items listed in yhe link you gave me (thanks!).
      Still have the same issue.

    I tried to go on command line and check what is the content (if exists) of the link and got:

    [2.3.2-RELEASE][admin@fw.domain.lan]/root: curl -k https://127.0.0.1:443/pfblockerng/pfblockerng.php?pfb=pfB_badip
    curl: No match.
    

    So it seems that the pfblock list is not available in the link. But I can't really find a reason… I will try to dig deeper.

    Thanks!
    Romain

    1 Reply Last reply Reply Quote 0
    • R
      romainp
      last edited by Dec 23, 2016, 3:53 PM

      Hi,
      Here are the logs found in the master system logs:

      Dec 23 10:35:59 	php-fpm 	16274 	/firewall_aliases_edit.php: Download file failed with status code 0\. URL: https://127.0.0.1:443/pfblockerng/pfblockerng.php?pfb=pfB_badip
      Dec 23 10:35:40 	php-fpm 	53132 	/rc.update_urltables: : pfB_badip does not need updating.
      Dec 23 10:35:40 	php-fpm 	53132 	/rc.update_urltables: : Starting URL table alias updates
      Dec 23 10:35:16 	check_reload_status 		Syncing firewall
      Dec 23 10:35:13 	php-fpm 	62663 	/rc.update_urltables: : ERROR: could not update pfB_badip content from https://127.0.0.1:443/pfblockerng/pfblockerng.php?pfb=pfB_badip
      Dec 23 10:35:13 	php-fpm 	62663 	/rc.update_urltables: Download file failed with status code 0\. URL: https://127.0.0.1:443/pfblockerng/pfblockerng.php?pfb=pfB_badip
      Dec 23 10:35:12 	php-fpm 	62663 	/rc.update_urltables: : Starting URL table alias updates
      Dec 23 10:35:01 	php-fpm 	92631 	/rc.filter_configure_sync: Message sent to romain.pelissier@gmail.com OK
      Dec 23 10:35:00 	php-fpm 	62663 	/rc.update_urltables: : Sleeping for 12 seconds.
      Dec 23 10:35:00 	php-fpm 	62663 	/rc.update_urltables: : Starting up.
      Dec 23 10:35:00 	php-fpm 	62663 	/rc.update_urltables: : ERROR: could not update pfB_badip content from https://127.0.0.1:443/pfblockerng/pfblockerng.php?pfb=pfB_badip
      Dec 23 10:35:00 	php-fpm 	62663 	/rc.update_urltables: Download file failed with status code 0\. URL: https://127.0.0.1:443/pfblockerng/pfblockerng.php?pfb=pfB_badip
      Dec 23 10:35:00 	php-fpm 	92631 	/rc.filter_configure_sync: New alert found: There were error(s) loading the rules: /tmp/rules.debug:194: macro 'pfB_badip' not defined - The line in question reads [194]: block in log quick on $WAN reply-to ( pppoe0 10.11.18.161 ) inet from $pfB_badip to any tracker 1770009136 label "USER_RULE: pfB_badip auto rule"
      Dec 23 10:35:00 	php-fpm 	62663 	/rc.update_urltables: : Starting URL table alias updates
      Dec 23 10:35:00 	xinetd 	33335 	Reconfigured: new=0 old=1 dropped=0 (services)
      Dec 23 10:35:00 	xinetd 	33335 	readjusting service 6969-udp
      Dec 23 10:35:00 	xinetd 	33335 	Swapping defaults
      Dec 23 10:35:00 	xinetd 	33335 	Starting reconfiguration
      Dec 23 10:34:59 	check_reload_status 		Synching URL alias pfB_badip
      Dec 23 10:34:58 	check_reload_status 		Reloading filter
      Dec 23 10:34:58 	php 		/usr/local/www/pfblockerng/pfblockerng.php: The command '/sbin/ifconfig 'em1_vlan100' delete '10.10.10.1'' returned exit code '1', the output was 'ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address'
      Dec 23 10:34:58 	php 		[pfBlockerNG] Starting cron process.
      Dec 23 10:34:58 	check_reload_status 		Syncing firewall
      Dec 23 10:34:50 	php-fpm 	34331 	/rc.filter_configure_sync: Message sent to romain.pelissier@gmail.com OK
      Dec 23 10:34:49 	php-fpm 	62663 	/rc.update_urltables: : Sleeping for 11 seconds.
      Dec 23 10:34:49 	php-fpm 	62663 	/rc.update_urltables: : Starting up.
      Dec 23 10:34:49 	php-fpm 	34331 	/rc.filter_configure_sync: New alert found: There were error(s) loading the rules: /tmp/rules.debug:194: macro 'pfB_badip' not defined - The line in question reads [194]: block in log quick on $WAN reply-to ( pppoe0 10.11.18.161 ) inet from $pfB_badip to any tracker 1770009136 label "USER_RULE: pfB_badip auto rule"
      Dec 23 10:34:48 	xinetd 	33335 	Reconfigured: new=0 old=1 dropped=0 (services)
      Dec 23 10:34:48 	xinetd 	33335 	readjusting service 6969-udp
      Dec 23 10:34:48 	xinetd 	33335 	Swapping defaults
      Dec 23 10:34:48 	xinetd 	33335 	Starting reconfiguration
      Dec 23 10:34:48 	check_reload_status 		Synching URL alias pfB_badip
      Dec 23 10:34:48 	php-fpm 	60522 	/rc.filter_configure_sync: New alert found: Unresolvable destination alias 'pfB_badiplist' for rule 'pfB_badiplist auto rule'
      Dec 23 10:34:48 	php-fpm 	60522 	/rc.filter_configure_sync: New alert found: Unresolvable destination alias 'pfB_badiplist' for rule 'pfB_badiplist auto rule'
      Dec 23 10:34:48 	php-fpm 	60522 	/rc.filter_configure_sync: New alert found: Unresolvable destination alias 'pfB_badiplist' for rule 'pfB_badiplist auto rule'
      Dec 23 10:34:48 	php-fpm 	60522 	/rc.filter_configure_sync: Message sent to romain.pelissier@gmail.com OK
      Dec 23 10:34:47 	php-fpm 	60522 	/rc.filter_configure_sync: New alert found: Unresolvable destination alias 'pfB_badiplist' for rule 'pfB_badiplist auto rule'
      Dec 23 10:34:47 	php-fpm 	60522 	/rc.filter_configure_sync: New alert found: Unresolvable source alias 'pfB_badiplist' for rule 'pfB_badiplist auto rule'
      Dec 23 10:34:47 	php-fpm 	60522 	/rc.filter_configure_sync: Message sent to romain.pelissier@gmail.com OK
      Dec 23 10:34:46 	check_reload_status 		Reloading filter
      Dec 23 10:34:46 	php-fpm 	53132 	/rc.update_urltables: : Sleeping for 54 seconds.
      Dec 23 10:34:46 	php-fpm 	53132 	/rc.update_urltables: : Starting up.
      Dec 23 10:34:46 	check_reload_status 		Syncing firewall
      Dec 23 10:34:45 	php-fpm 	60522 	/rc.filter_configure_sync: New alert found: Unresolvable source alias 'pfB_badiplist' for rule 'pfB_badiplist auto rule'
      Dec 23 10:34:45 	xinetd 	33335 	Reconfigured: new=0 old=1 dropped=0 (services)
      Dec 23 10:34:45 	xinetd 	33335 	readjusting service 6969-udp
      Dec 23 10:34:45 	xinetd 	33335 	Swapping defaults
      Dec 23 10:34:45 	xinetd 	33335 	Starting reconfiguration
      Dec 23 10:34:45 	check_reload_status 		Synching URL alias pfB_badip
      Dec 23 10:34:45 	check_reload_status 		Syncing firewall
      Dec 23 10:34:44 	check_reload_status 		Reloading filter
      Dec 23 10:34:44 	php-fpm 	34331 	/pkg_edit.php: The command '/sbin/ifconfig 'em1_vlan100' delete '10.10.10.1'' returned exit code '1', the output was 'ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address'
      

      They did not provide much more information. The only other strange thing is:

      /pkg_edit.php: The command '/sbin/ifconfig 'em1_vlan100' delete '10.10.10.1'' returned exit code '1'
      

      That's strange because this ip is supposed to be the one used by DNSBL which is not activated on my system…

      1 Reply Last reply Reply Quote 0
      • R
        RonpfS
        last edited by Dec 23, 2016, 6:12 PM Dec 23, 2016, 5:59 PM

        Did you run a Force Update or a Force Reload when you modify the IP Feed?

        Go to Firewall / pfBlockerNG / Log Browser and have a look at pfblockerng.log, error.log etc.
        Look at the original IP files, Alias files etc to see if something breaks.

        2.4.5-RELEASE-p1 (amd64)
        Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
        Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

        1 Reply Last reply Reply Quote 0
        • B
          BBcan177 Moderator
          last edited by Jan 7, 2017, 5:08 PM

          Not sure why your linking to  "https://127.0.0.1:443/pfblockerng/pfblockerng.php?pfb=pfB_badip"???

          "Experience is something you don't get until just after you need it."

          Website: http://pfBlockerNG.com
          Twitter: @BBcan177  #pfBlockerNG
          Reddit: https://www.reddit.com/r/pfBlockerNG/new/

          1 Reply Last reply Reply Quote 0
          • R
            romainp
            last edited by Jan 7, 2017, 7:17 PM

            This is what I have in the firewall alias definition! I have not do anything manually, this entry has been created by the package when I have created my ipv4 block list.

            1 Reply Last reply Reply Quote 0
            • B
              BBcan177 Moderator
              last edited by Jan 7, 2017, 9:46 PM

              When you add a List/Feed to the IPv4 tab, you can add a URL, or a path to a file in the pfSense Box.

              The link you are posting is an old remnant of the original pfBlocker package, and that link is not accessible…

              So I am not certain what you are trying to accomplish?

              What Lists make up your alias "badip"?

              Click on the blue "i" infoblock icons for further details...

              "Experience is something you don't get until just after you need it."

              Website: http://pfBlockerNG.com
              Twitter: @BBcan177  #pfBlockerNG
              Reddit: https://www.reddit.com/r/pfBlockerNG/new/

              1 Reply Last reply Reply Quote 0
              • R
                romainp
                last edited by Jan 7, 2017, 10:17 PM

                Hi,
                I don't want to to accomplish nothing in fact, just make it works without any issues :)
                Ok, let's start over the story:
                there was an update to the package several week ago. I did the update. Then some warning appears in the alert notification section of pfsense. I check the warning telling me that there something wrong with my badip alias. I checked the alias definition and see that when I do an edit of the url alias there was an error.
                I have tried to reinstall the package, same thing. I have then post on the forum for some help :)

                1.png
                1.png_thumb
                2.png
                2.png_thumb
                3.png
                3.png_thumb
                4.png
                4.png_thumb

                1 Reply Last reply Reply Quote 0
                • R
                  RonpfS
                  last edited by Jan 7, 2017, 10:58 PM Jan 7, 2017, 10:22 PM

                  Maybe the List description "https://forum…" breaks things , try something like plain Text  :D

                  2.4.5-RELEASE-p1 (amd64)
                  Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                  Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

                  1 Reply Last reply Reply Quote 0
                  • B
                    BBcan177 Moderator
                    last edited by Jan 9, 2017, 6:02 PM

                    @romainp:

                    Hi,
                    I don't want to to accomplish nothing in fact, just make it works without any issues :)
                    Ok, let's start over the story:
                    there was an update to the package several week ago. I did the update. Then some warning appears in the alert notification section of pfsense. I check the warning telling me that there something wrong with my badip alias. I checked the alias definition and see that when I do an edit of the url alias there was an error.
                    I have tried to reinstall the package, same thing. I have then post on the forum for some help :)

                    The package uses the pfSense "URLTables" functionality but doesn't require the backend pfSense code to keep these aliases updated… So that URL that you see in the Firewall Alias page, is not really needed... I will address this in the next release...

                    If you had an error message (Apart from trying to download that URL), post that error, and we can address that...

                    "Experience is something you don't get until just after you need it."

                    Website: http://pfBlockerNG.com
                    Twitter: @BBcan177  #pfBlockerNG
                    Reddit: https://www.reddit.com/r/pfBlockerNG/new/

                    1 Reply Last reply Reply Quote 0
                    • R
                      romainp
                      last edited by Jan 9, 2017, 6:06 PM

                      Excellent!!! Thank you so much. It 's because i didn't known if it was a normal behaviour or not :)
                      Thanks! I will keep an eye to see if everything seems to be fine with the update and the catch of any ip listed in the list.

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                        This community forum collects and processes your personal information.
                        consent.not_received