PfSense 2.1 Captive portal bug? "Extra zones" showing up



  • When i was setting up the captive portal zones, I failed to use onlt underscores and used spaces in the zone name, but i was given the error correctly to fix it when i tried to save.

    I corrected the error, but now I have extra zones.

    See the attachment and you'll understand better I'm sure.

    It seems the spaces caused multiple zones to be made using the letters in the zone name i tried in error previously.

    I cannot remove these zones as they do not appear in the "Zones" page.

    Where could I edit this manually?

    UPDATE:
    –-------------------------
    Rebooting does not help

    Removing the portal I have does not help
    Only the extra portals remain after that

    Attempts to re-add any portal manually result in an alert at the top of the page that must be acknowledged
    "Restoring configuration from backup ..."

    Something is wrong with the captive portal system now i would guess.



  • The suggestion in this thread seems to work:
    http://forum.pfsense.org/index.php/topic,67677.msg370367.html#msg370367

    That cleared it up, but now I want to report a bug about when someone does use spaces in the name of the portal zone, it errors out as it is supposed to, however you have difficulty making new zones after that.

    You get an alert that it restored from a backup, and you have to acknowledge the alarm.



  • Yep.

    Somehow, the "import and convert" part that handles CP settings was dealt with a while back ago (I think a bug tracker that comes close is this one https://redmine.pfsense.org/issues/2101 ?) but it doesn't work well.
    A manual edit and redoing the portal setup for the (in 1.2.3: one) zone is needed.



  • So this issue of getting rid of the extra zones is over, however, the issue really is that the captive portal system seems to have some serious bugs.

    I can't set up more zones without an error as described above.



  • I use a 2.1 'fresh install' and 2 Portal zones. Adding more with basic local authentication doesn't show any errors, better yet: they work.

    Can your list here http://pastebin.com/ the export of the "backup area" this one: "Captive portal".
    I presume something is very wrong with these settings.



  • I don't fully understand what you're asking, but I think you're asking me for a copy of the backup file when I select only "captive portal" and press backup.

    I don't have any captive portals set up at this time because of the error.

    I can't make any captive portals, so, the backup file contains no settings at all-it is empty, aside from the starting and ending xml tags for captive portal.



  • @burnsl:

    I don't fully understand what you're asking, but I think you're asking me for a copy of the backup file when I select only "captive portal" and press backup.

    I don't have any captive portals set up at this time because of the error.

    I can't make any captive portals, so, the backup file contains no settings at all-it is empty, aside from the starting and ending xml tags for captive portal.

    When you are using the Captive portal, or not, exporting (backup) the "captive portal" config will give you something.
    Its that something that interests me.



  • There is nothing in the file except for the XML start and stop tags

    Also, when there are portals, includin the extra zones, the backup file does not contain the zones in the backup file.

    When I place a pair of XML tags in the file that have no zones in it, the erroneous extra zones go away.

    So my ink concer now is why this is happening.
    Also, why is there an error when I create zones manually now?

    There are other related bugs too, like certificate based issues.

    I have reinstalled and re-tried all of this, and the errors still exist.

    I'm afraid I will have to skip this version of pfsens until it gets more stable.

    I can't upgrade our office to this version until its more stable.
    It's a shame.