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

    Captive portal not working after disabling it for a few minutes and then enable

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    7 Posts 3 Posters 1.8k 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.
    • F
      falbertopl
      last edited by

      Captive portal not working after disabling it for a few minutes and then enable it. The service is started and the log does not show anything relevant, sometimes only restarting the server works and sometimes I have to delete the zone and create a new one, what can it be?

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        This is what my testing showed:

        Steps to reproduce:

        Fresh install of July 5's 2.1-RC0

        Standard WAN/LAN NAT/PAT config

        Enable Captive Portal on LAN, no authentication

        CP functions normally.

        Edit CP Instance, Disable CP.

        Traffic passes from LAN normally.

        Edit CP Instance, Enable CP.

        Traffic continues to pass from LAN normally, never redirecting to CP.

        The only way I can get the CP to function again is to restart.

        Tried deleting and recreating CP, no change until restart.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • E
          eri--
          last edited by

          You are sure there is nothing related to state table needing clearing?

          1 Reply Last reply Reply Quote 0
          • DerelictD
            Derelict LAYER 8 Netgate
            last edited by

            Tried clearing the state table too.  It was my understanding that the CP ipfw fwd to :8000 all happens prior to anything making it to pf.

            I can set up a test box and do it again if you want.

            Chattanooga, Tennessee, USA
            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
            Do Not Chat For Help! NO_WAN_EGRESS(TM)

            1 Reply Last reply Reply Quote 0
            • E
              eri--
              last edited by

              Should be better on newer snapshots i pushed a fix.

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

                Thank's ermal, i tested yesterday and work fine for me, thank's again my friend.

                1 Reply Last reply Reply Quote 0
                • DerelictD
                  Derelict LAYER 8 Netgate
                  last edited by

                  My initial testing indicates it's working for me too.  Thanks much.  This was a PITA.

                  If I have a gateway I have not updated and run into this, can I just run:

                  /sbin/sysctl net.link.ether.ipfw=1 net.inet.ip.fw.one_pass=1

                  to get the portal working again?

                  Thanks again.

                  Chattanooga, Tennessee, USA
                  A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                  DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                  Do Not Chat For Help! NO_WAN_EGRESS(TM)

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