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

    [SOLVED] Is there a limit for captive portal instances?

    Scheduled Pinned Locked Moved Captive Portal
    9 Posts 3 Posters 1.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.
    • M
      mke
      last edited by

      I have 8 captive portals, every one on different vlan.  But one of them can't be restarted. I even tried to recreate it and it still presists. The other 7 work perfectly fine. What can I do here?

      Mar 7 13:06:39 php-fpm 18216 /status_services.php: The command '/usr/local/sbin/nginx -c /var/etc/nginx-wifi_theater2-CaptivePortal.conf' returned exit code '1', the output was 'nginx: [emerg] bind() to 0.0.0.0:8004 failed (48: Address already in use) nginx: [emerg] bind() to [::]:8004 failed (48: Address already in use) nginx: [emerg] bind() to 0.0.0.0:8004 failed (48: Address already in use) nginx: [emerg] bind() to [::]:8004 failed (48: Address already in use) nginx: [emerg] bind() to 0.0.0.0:8004 failed (48: Address already in use) nginx: [emerg] bind() to [::]:8004 failed (48: Address already in use) nginx: [emerg] bind() to 0.0.0.0:8004 failed (48: Address already in use) nginx: [emerg] bind() to [::]:8004 failed (48: Address already in use) nginx: [emerg] bind() to 0.0.0.0:8004 failed (48: Address already in use) nginx: [emerg] bind() to [::]:8004 failed (48: Address already in use) nginx: [emerg] still could not bind()'
      Mar 7 13:06:36 nginx 2018/03/07 13:06:36 [emerg] 36182#100171: still could not bind()
      Mar 7 13:06:36 nginx 2018/03/07 13:06:36 [emerg] 36182#100171: bind() to [::]:8004 failed (48: Address already in use)
      Mar 7 13:06:36 nginx 2018/03/07 13:06:36 [emerg] 36182#100171: bind() to 0.0.0.0:8004 failed (48: Address already in use)
      Mar 7 13:06:36 nginx 2018/03/07 13:06:36 [emerg] 36182#100171: bind() to [::]:8004 failed (48: Address already in use)
      Mar 7 13:06:36 nginx 2018/03/07 13:06:36 [emerg] 36182#100171: bind() to 0.0.0.0:8004 failed (48: Address already in use)
      Mar 7 13:06:36 nginx 2018/03/07 13:06:36 [emerg] 36182#100171: bind() to [::]:8004 failed (48: Address already in use)
      Mar 7 13:06:36 nginx 2018/03/07 13:06:36 [emerg] 36182#100171: bind() to 0.0.0.0:8004 failed (48: Address already in use)
      Mar 7 13:06:36 nginx 2018/03/07 13:06:36 [emerg] 36182#100171: bind() to [::]:8004 failed (48: Address already in use)
      Mar 7 13:06:36 nginx 2018/03/07 13:06:36 [emerg] 36182#100171: bind() to 0.0.0.0:8004 failed (48: Address already in use)

      also some cli output

      sockstat -l | grep 800
      root    nginx      8747  6  tcp4  *:8008                :
      root    nginx      8747  7  tcp6  *:8008                :
      root    nginx      8507  6  tcp4  *:8008                :
      root    nginx      8507  7  tcp6  *:8008                :
      root    nginx      8191  6  tcp4  *:8008                :
      root    nginx      8191  7  tcp6  *:8008                :
      root    nginx      7881  6  tcp4  *:8008                :
      root    nginx      7881  7  tcp6  *:8008                :
      root    nginx      7718  6  tcp4  *:8008                :
      root    nginx      7718  7  tcp6  *:8008                :
      root    nginx      7683  6  tcp4  *:8008                :
      root    nginx      7683  7  tcp6  *:8008                :
      root    nginx      7344  6  tcp4  *:8008                :
      root    nginx      7344  7  tcp6  *:8008                :
      root    nginx      7050  6  tcp4  *:8008                :
      root    nginx      7050  7  tcp6  *:8008                :
      root    nginx      6706  6  tcp4  *:8008                :
      root    nginx      6706  7  tcp6  *:8008                :
      root    nginx      6399  6  tcp4  *:8008                :
      root    nginx      6399  7  tcp6  *:8008                :
      root    nginx      47684 6  tcp4  *:8006                :
      root    nginx      47684 7  tcp6  *:8006                :
      root    nginx      47523 6  tcp4  *:8006                :
      root    nginx      47523 7  tcp6  *:8006                :
      root    nginx      47380 6  tcp4  *:8006                :
      root    nginx      47380 7  tcp6  *:8006                :
      root    nginx      47186 6  tcp4  *:8006                :
      root    nginx      47186 7  tcp6  *:8006                :
      root    nginx      46840 6  tcp4  *:8006                :
      root    nginx      46840 7  tcp6  *:8006                :
      root    nginx      46741 6  tcp4  *:8006                :
      root    nginx      46741 7  tcp6  *:8006                :
      root    nginx      46472 6  tcp4  *:8006                :
      root    nginx      46472 7  tcp6  *:8006                :
      root    nginx      46209 6  tcp4  *:8006                :
      root    nginx      46209 7  tcp6  *:8006                :
      root    nginx      45933 6  tcp4  *:8006                :
      root    nginx      45933 7  tcp6  *:8006                :
      root    nginx      45815 6  tcp4  *:8006                :
      root    nginx      45815 7  tcp6  *:8006                :
      root    nginx      14469 6  tcp4  *:8002                :
      root    nginx      14469 7  tcp6  *:8002                :
      root    nginx      14375 6  tcp4  *:8002                :
      root    nginx      14375 7  tcp6  *:8002                :
      root    nginx      14336 6  tcp4  *:8002                :
      root    nginx      14336 7  tcp6  *:8002                :
      root    nginx      14058 6  tcp4  *:8002                :
      root    nginx      14058 7  tcp6  *:8002                :
      root    nginx      13794 6  tcp4  *:8002                :
      root    nginx      13794 7  tcp6  *:8002                :
      root    nginx      13666 6  tcp4  *:8002                :
      root    nginx      13666 7  tcp6  *:8002                :
      root    nginx      13430 6  tcp4  *:8002                :
      root    nginx      13430 7  tcp6  *:8002                :
      root    nginx      13250 6  tcp4  *:8002                :
      root    nginx      13250 7  tcp6  *:8002                :
      root    nginx      13023 6  tcp4  *:8002                :
      root    nginx      13023 7  tcp6  *:8002                :
      root    nginx      12799 6  tcp4  *:8002                :
      root    nginx      12799 7  tcp6  *:8002                :
      root    nginx      7335  6  tcp4  *:8004                :
      root    nginx      7335  7  tcp6  *:8004                :
      root    nginx      7061  6  tcp4  *:8004                :
      root    nginx      7061  7  tcp6  *:8004                :
      root    nginx      6758  6  tcp4  *:8004                :
      root    nginx      6758  7  tcp6  *:8004                :
      root    nginx      6599  6  tcp4  *:8004                :
      root    nginx      6599  7  tcp6  *:8004                :
      root    nginx      6497  6  tcp4  *:8004                :
      root    nginx      6497  7  tcp6  *:8004                :
      root    nginx      6419  6  tcp4  *:8004                :
      root    nginx      6419  7  tcp6  *:8004                :
      root    nginx      6231  6  tcp4  *:8004                :
      root    nginx      6231  7  tcp6  *:8004                :
      root    nginx      6066  6  tcp4  *:8004                :
      root    nginx      6066  7  tcp6  *:8004                :
      root    nginx      5835  6  tcp4  *:8004                :
      root    nginx      5835  7  tcp6  *:8004                :
      root    nginx      5736  6  tcp4  *:8004                :
      root    nginx      5736  7  tcp6  *:8004                :

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

        There are ways to look at the ipfw configuration here:

        https://doc.pfsense.org/index.php/Captive_Portal_Troubleshooting

        You might want to post the output from some of those.

        It looks like there is already something listening on 8004 for whatever reason.

        ps axww | grep nginx See if there's already a process using /var/etc/nginx-portal_4-CaptivePortal.conf as a config file. Maybe kill it if so. You can look at the files and see what the listening ports are, but 2 should be 8002, 4 should be 8004, etc.

        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
        • M
          mke
          last edited by

          ps axww | grep nginx
          48874  -  Is  0:00.00 nginx: master process /usr/local/sbin/nginx -c /var/etc/nginx-webConfigurator.conf (nginx)
          49151  -  I    0:00.00 nginx: worker process (nginx)
          49363  -  I    0:00.00 nginx: worker process (nginx)
          49389  -  I    0:00.00 nginx: worker process (nginx)
          49648  -  S    0:00.11 nginx: worker process (nginx)
          49710  -  I    0:00.00 nginx: worker process (nginx)
          64546  -  Is  0:00.00 nginx: master process /usr/local/sbin/nginx -c /var/etc/nginx-ns-CaptivePortal.conf (nginx)
          64861  -  S    0:00.00 nginx: worker process (nginx)
          65025  -  S    0:00.00 nginx: worker process (nginx)
          65197  -  S    0:00.00 nginx: worker process (nginx)
          65443  -  S    0:00.00 nginx: worker process (nginx)
          65652  -  S    0:00.00 nginx: worker process (nginx)
          65873  -  S    0:00.00 nginx: worker process (nginx)
          65908  -  S    0:00.00 nginx: worker process (nginx)
          65984  -  S    0:00.00 nginx: worker process (nginx)
          66205  -  S    0:00.00 nginx: worker process (nginx)
          68425  -  Is  0:00.01 nginx: master process /usr/local/sbin/nginx -c /var/etc/nginx-t1-CaptivePortal.conf (nginx)
          68772  -  S    0:00.01 nginx: worker process (nginx)
          68990  -  S    0:00.00 nginx: worker process (nginx)
          69166  -  S    0:00.00 nginx: worker process (nginx)
          69443  -  S    0:00.00 nginx: worker process (nginx)
          69576  -  S    0:00.00 nginx: worker process (nginx)
          69854  -  S    0:00.00 nginx: worker process (nginx)
          69919  -  S    0:00.01 nginx: worker process (nginx)
          70197  -  S    0:00.00 nginx: worker process (nginx)
          70381  -  S    0:00.06 nginx: worker process (nginx)
          72942  -  Is  0:00.01 nginx: master process /usr/local/sbin/nginx -c /var/etc/nginx-t3-CaptivePortal.conf (nginx)
          73352  -  S    0:00.00 nginx: worker process (nginx)
          73676  -  S    0:00.00 nginx: worker process (nginx)
          74011  -  S    0:00.00 nginx: worker process (nginx)
          74178  -  S    0:00.01 nginx: worker process (nginx)
          74261  -  S    0:00.00 nginx: worker process (nginx)
          74521  -  S    0:00.00 nginx: worker process (nginx)
          74552  -  R    0:00.03 php-fpm: pool nginx (php-fpm)
          74808  -  S    0:00.00 nginx: worker process (nginx)
          75131  -  S    0:00.00 nginx: worker process (nginx)
          75320  -  S    0:00.00 nginx: worker process (nginx)
          78549  -  Is  0:00.01 nginx: master process /usr/local/sbin/nginx -c /var/etc/nginx-t4-CaptivePortal.conf (nginx)
          78911  -  I    0:00.00 nginx: worker process (nginx)
          79191  -  I    0:00.00 nginx: worker process (nginx)
          79457  -  I    0:00.00 nginx: worker process (nginx)
          79513  -  I    0:00.00 nginx: worker process (nginx)
          79850  -  I    0:00.00 nginx: worker process (nginx)
          80032  -  I    0:00.00 nginx: worker process (nginx)
          80042  -  I    0:00.00 nginx: worker process (nginx)
          80249  -  I    0:00.00 nginx: worker process (nginx)
          80426  -  I    0:00.00 nginx: worker process (nginx)
          82917  -  Is  0:00.01 nginx: master process /usr/local/sbin/nginx -c /var/etc/nginx-t5-CaptivePortal.conf (nginx)
          83149  -  I    0:00.00 nginx: worker process (nginx)
          83257  -  I    0:00.00 nginx: worker process (nginx)
          83569  -  I    0:00.00 nginx: worker process (nginx)
          83849  -  I    0:00.00 nginx: worker process (nginx)
          84139  -  I    0:00.00 nginx: worker process (nginx)
          84434  -  I    0:00.00 nginx: worker process (nginx)
          84494  -  I    0:00.00 nginx: worker process (nginx)
          84746  -  I    0:00.00 nginx: worker process (nginx)
          84807  -  I    0:00.00 nginx: worker process (nginx)
          87133  -  Is  0:00.01 nginx: master process /usr/local/sbin/nginx -c /var/etc/nginx-groom-CaptivePortal.conf (nginx)
          87602  -  I    0:00.00 nginx: worker process (nginx)
          87832  -  I    0:00.00 nginx: worker process (nginx)
          87839  -  I    0:00.00 nginx: worker process (nginx)
          88124  -  I    0:00.00 nginx: worker process (nginx)
          88323  -  I    0:00.00 nginx: worker process (nginx)
          88666  -  I    0:00.00 nginx: worker process (nginx)
          88907  -  I    0:00.00 nginx: worker process (nginx)
          88959  -  I    0:00.00 nginx: worker process (nginx)
          89052  -  I    0:00.00 nginx: worker process (nginx)
          91246  -  Is  0:00.01 nginx: master process /usr/local/sbin/nginx -c /var/etc/nginx-business-CaptivePortal.conf (nginx)
          91320  -  I    0:00.00 nginx: worker process (nginx)
          91554  -  I    0:00.00 nginx: worker process (nginx)
          91578  -  I    0:00.00 nginx: worker process (nginx)
          91866  -  I    0:00.00 nginx: worker process (nginx)
          92156  -  I    0:00.00 nginx: worker process (nginx)
          92429  -  I    0:00.00 nginx: worker process (nginx)
          92559  -  I    0:00.00 nginx: worker process (nginx)
          92623  -  I    0:00.00 nginx: worker process (nginx)
          92943  -  I    0:00.00 nginx: worker process (nginx)
          74999  0  R+  0:00.00 grep nginx

          ipfw table all list

          –- table(cp_ifaces), set(0) ---
          igb2.101 2100 48679 28549653 1520479617
          igb2.102 2200 0 0 0
          igb2.103 2300 1986 263626 1520479617
          igb2.104 2400 0 0 0
          igb2.105 2500 0 0 0
          igb2.107 2700 0 0 0

          that one is the one I have problem with

          10.102.0.1/32 0 0 0 0
          --- table(t2_pipe_mac), set(0) ---
          --- table(groom_allowed_down), set(0) ---
          --- table(ns_auth_up), set(0) ---

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

            What version of pfSense is this?

            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
            • M
              mke
              last edited by

              2.4.2-RELEASE-p1 (amd64)

              BIOS Vendor: American Megatrends Inc.
              Version: 5.6.5

              CPU Type Intel(R) Atom(TM) CPU C2358 @ 1.74GHz
              2 CPUs: 1 package(s) x 2 core(s)
              AES-NI CPU Crypto: Yes (inactive)

              1 Reply Last reply Reply Quote 0
              • GertjanG
                Gertjan
                last edited by

                @mke : go console, option 8 :

                grep 'zoneid' /conf/config.xml
                

                What does it say ?

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

                1 Reply Last reply Reply Quote 0
                • M
                  mke
                  last edited by

                  grep 'zoneid' /conf/config.xml
                  <zoneid>4</zoneid>
                  <zoneid>2</zoneid>
                  <zoneid>6</zoneid>
                  <zoneid>8</zoneid>
                  <zoneid>10</zoneid>
                  <zoneid>12</zoneid>
                  <zoneid>14</zoneid>
                  <zoneid>4</zoneid>

                  1 Reply Last reply Reply Quote 0
                  • GertjanG
                    Gertjan
                    last edited by

                    Well, there is your answer then  ;)

                    Twice zoneid "4", so nginx uses 8004 as a port twice and that won't work.

                    Export you config.xml - change the last line "4" for a "16" and re-import.

                    No "help me" PM's please. Use the forum, the community will thank you.
                    Edit : and where are the logs ??

                    1 Reply Last reply Reply Quote 0
                    • M
                      mke
                      last edited by

                      That is what exaclty I did, thank you that solved the problem

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