<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[SOLVED] Is there a limit for captive portal instances?]]></title><description><![CDATA[<p dir="auto">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?</p>
<p dir="auto">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()'<br />
Mar 7 13:06:36 nginx 2018/03/07 13:06:36 [emerg] 36182#100171: still could not bind()<br />
Mar 7 13:06:36 nginx 2018/03/07 13:06:36 [emerg] 36182#100171: bind() to [::]:8004 failed (48: Address already in use)<br />
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)<br />
Mar 7 13:06:36 nginx 2018/03/07 13:06:36 [emerg] 36182#100171: bind() to [::]:8004 failed (48: Address already in use)<br />
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)<br />
Mar 7 13:06:36 nginx 2018/03/07 13:06:36 [emerg] 36182#100171: bind() to [::]:8004 failed (48: Address already in use)<br />
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)<br />
Mar 7 13:06:36 nginx 2018/03/07 13:06:36 [emerg] 36182#100171: bind() to [::]:8004 failed (48: Address already in use)<br />
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)</p>
<p dir="auto">also some cli output</p>
<p dir="auto">sockstat -l | grep 800<br />
root    nginx      8747  6  tcp4  *:8008                <em>:</em><br />
root    nginx      8747  7  tcp6  *:8008                <em>:</em><br />
root    nginx      8507  6  tcp4  *:8008                <em>:</em><br />
root    nginx      8507  7  tcp6  *:8008                <em>:</em><br />
root    nginx      8191  6  tcp4  *:8008                <em>:</em><br />
root    nginx      8191  7  tcp6  *:8008                <em>:</em><br />
root    nginx      7881  6  tcp4  *:8008                <em>:</em><br />
root    nginx      7881  7  tcp6  *:8008                <em>:</em><br />
root    nginx      7718  6  tcp4  *:8008                <em>:</em><br />
root    nginx      7718  7  tcp6  *:8008                <em>:</em><br />
root    nginx      7683  6  tcp4  *:8008                <em>:</em><br />
root    nginx      7683  7  tcp6  *:8008                <em>:</em><br />
root    nginx      7344  6  tcp4  *:8008                <em>:</em><br />
root    nginx      7344  7  tcp6  *:8008                <em>:</em><br />
root    nginx      7050  6  tcp4  *:8008                <em>:</em><br />
root    nginx      7050  7  tcp6  *:8008                <em>:</em><br />
root    nginx      6706  6  tcp4  *:8008                <em>:</em><br />
root    nginx      6706  7  tcp6  *:8008                <em>:</em><br />
root    nginx      6399  6  tcp4  *:8008                <em>:</em><br />
root    nginx      6399  7  tcp6  *:8008                <em>:</em><br />
root    nginx      47684 6  tcp4  *:8006                <em>:</em><br />
root    nginx      47684 7  tcp6  *:8006                <em>:</em><br />
root    nginx      47523 6  tcp4  *:8006                <em>:</em><br />
root    nginx      47523 7  tcp6  *:8006                <em>:</em><br />
root    nginx      47380 6  tcp4  *:8006                <em>:</em><br />
root    nginx      47380 7  tcp6  *:8006                <em>:</em><br />
root    nginx      47186 6  tcp4  *:8006                <em>:</em><br />
root    nginx      47186 7  tcp6  *:8006                <em>:</em><br />
root    nginx      46840 6  tcp4  *:8006                <em>:</em><br />
root    nginx      46840 7  tcp6  *:8006                <em>:</em><br />
root    nginx      46741 6  tcp4  *:8006                <em>:</em><br />
root    nginx      46741 7  tcp6  *:8006                <em>:</em><br />
root    nginx      46472 6  tcp4  *:8006                <em>:</em><br />
root    nginx      46472 7  tcp6  *:8006                <em>:</em><br />
root    nginx      46209 6  tcp4  *:8006                <em>:</em><br />
root    nginx      46209 7  tcp6  *:8006                <em>:</em><br />
root    nginx      45933 6  tcp4  *:8006                <em>:</em><br />
root    nginx      45933 7  tcp6  *:8006                <em>:</em><br />
root    nginx      45815 6  tcp4  *:8006                <em>:</em><br />
root    nginx      45815 7  tcp6  *:8006                <em>:</em><br />
root    nginx      14469 6  tcp4  *:8002                <em>:</em><br />
root    nginx      14469 7  tcp6  *:8002                <em>:</em><br />
root    nginx      14375 6  tcp4  *:8002                <em>:</em><br />
root    nginx      14375 7  tcp6  *:8002                <em>:</em><br />
root    nginx      14336 6  tcp4  *:8002                <em>:</em><br />
root    nginx      14336 7  tcp6  *:8002                <em>:</em><br />
root    nginx      14058 6  tcp4  *:8002                <em>:</em><br />
root    nginx      14058 7  tcp6  *:8002                <em>:</em><br />
root    nginx      13794 6  tcp4  *:8002                <em>:</em><br />
root    nginx      13794 7  tcp6  *:8002                <em>:</em><br />
root    nginx      13666 6  tcp4  *:8002                <em>:</em><br />
root    nginx      13666 7  tcp6  *:8002                <em>:</em><br />
root    nginx      13430 6  tcp4  *:8002                <em>:</em><br />
root    nginx      13430 7  tcp6  *:8002                <em>:</em><br />
root    nginx      13250 6  tcp4  *:8002                <em>:</em><br />
root    nginx      13250 7  tcp6  *:8002                <em>:</em><br />
root    nginx      13023 6  tcp4  *:8002                <em>:</em><br />
root    nginx      13023 7  tcp6  *:8002                <em>:</em><br />
root    nginx      12799 6  tcp4  *:8002                <em>:</em><br />
root    nginx      12799 7  tcp6  *:8002                <em>:</em><br />
root    nginx      7335  6  tcp4  *:8004                <em>:</em><br />
root    nginx      7335  7  tcp6  *:8004                <em>:</em><br />
root    nginx      7061  6  tcp4  *:8004                <em>:</em><br />
root    nginx      7061  7  tcp6  *:8004                <em>:</em><br />
root    nginx      6758  6  tcp4  *:8004                <em>:</em><br />
root    nginx      6758  7  tcp6  *:8004                <em>:</em><br />
root    nginx      6599  6  tcp4  *:8004                <em>:</em><br />
root    nginx      6599  7  tcp6  *:8004                <em>:</em><br />
root    nginx      6497  6  tcp4  *:8004                <em>:</em><br />
root    nginx      6497  7  tcp6  *:8004                <em>:</em><br />
root    nginx      6419  6  tcp4  *:8004                <em>:</em><br />
root    nginx      6419  7  tcp6  *:8004                <em>:</em><br />
root    nginx      6231  6  tcp4  *:8004                <em>:</em><br />
root    nginx      6231  7  tcp6  *:8004                <em>:</em><br />
root    nginx      6066  6  tcp4  *:8004                <em>:</em><br />
root    nginx      6066  7  tcp6  *:8004                <em>:</em><br />
root    nginx      5835  6  tcp4  *:8004                <em>:</em><br />
root    nginx      5835  7  tcp6  *:8004                <em>:</em><br />
root    nginx      5736  6  tcp4  *:8004                <em>:</em><br />
root    nginx      5736  7  tcp6  *:8004                <em>:</em></p>
]]></description><link>https://forum.netgate.com/topic/127898/solved-is-there-a-limit-for-captive-portal-instances</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 02:44:50 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/127898.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 07 Mar 2018 18:11:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [SOLVED] Is there a limit for captive portal instances? on Thu, 08 Mar 2018 15:31:56 GMT]]></title><description><![CDATA[<p dir="auto">That is what exaclty I did, thank you that solved the problem</p>
]]></description><link>https://forum.netgate.com/post/754371</link><guid isPermaLink="true">https://forum.netgate.com/post/754371</guid><dc:creator><![CDATA[mke]]></dc:creator><pubDate>Thu, 08 Mar 2018 15:31:56 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Is there a limit for captive portal instances? on Thu, 08 Mar 2018 15:17:50 GMT]]></title><description><![CDATA[<p dir="auto">Well, there is your answer then  ;)</p>
<p dir="auto">Twice zoneid "4", so nginx uses 8004 as a port twice and that won't work.</p>
<p dir="auto">Export you config.xml - change the last line "4" for a "16" and re-import.</p>
]]></description><link>https://forum.netgate.com/post/754365</link><guid isPermaLink="true">https://forum.netgate.com/post/754365</guid><dc:creator><![CDATA[Gertjan]]></dc:creator><pubDate>Thu, 08 Mar 2018 15:17:50 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Is there a limit for captive portal instances? on Thu, 08 Mar 2018 15:15:39 GMT]]></title><description><![CDATA[<p dir="auto">grep 'zoneid' /conf/config.xml<br />
&lt;zoneid&gt;4&lt;/zoneid&gt;<br />
&lt;zoneid&gt;2&lt;/zoneid&gt;<br />
&lt;zoneid&gt;6&lt;/zoneid&gt;<br />
&lt;zoneid&gt;8&lt;/zoneid&gt;<br />
&lt;zoneid&gt;10&lt;/zoneid&gt;<br />
&lt;zoneid&gt;12&lt;/zoneid&gt;<br />
&lt;zoneid&gt;14&lt;/zoneid&gt;<br />
&lt;zoneid&gt;4&lt;/zoneid&gt;</p>
]]></description><link>https://forum.netgate.com/post/754364</link><guid isPermaLink="true">https://forum.netgate.com/post/754364</guid><dc:creator><![CDATA[mke]]></dc:creator><pubDate>Thu, 08 Mar 2018 15:15:39 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Is there a limit for captive portal instances? on Thu, 08 Mar 2018 14:56:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mke">@<bdi>mke</bdi></a> : go console, option 8 :</p>
<pre><code>grep 'zoneid' /conf/config.xml
</code></pre>
<p dir="auto">What does it say ?</p>
]]></description><link>https://forum.netgate.com/post/754359</link><guid isPermaLink="true">https://forum.netgate.com/post/754359</guid><dc:creator><![CDATA[Gertjan]]></dc:creator><pubDate>Thu, 08 Mar 2018 14:56:08 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Is there a limit for captive portal instances? on Thu, 08 Mar 2018 12:54:35 GMT]]></title><description><![CDATA[<p dir="auto">2.4.2-RELEASE-p1 (amd64)</p>
<p dir="auto">BIOS Vendor: American Megatrends Inc.<br />
Version: 5.6.5</p>
<p dir="auto">CPU Type Intel(R) Atom(TM) CPU C2358 @ 1.74GHz<br />
2 CPUs: 1 package(s) x 2 core(s)<br />
AES-NI CPU Crypto: Yes (inactive)</p>
]]></description><link>https://forum.netgate.com/post/754350</link><guid isPermaLink="true">https://forum.netgate.com/post/754350</guid><dc:creator><![CDATA[mke]]></dc:creator><pubDate>Thu, 08 Mar 2018 12:54:35 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Is there a limit for captive portal instances? on Thu, 08 Mar 2018 03:31:56 GMT]]></title><description><![CDATA[<p dir="auto">What version of pfSense is this?</p>
]]></description><link>https://forum.netgate.com/post/754305</link><guid isPermaLink="true">https://forum.netgate.com/post/754305</guid><dc:creator><![CDATA[Derelict]]></dc:creator><pubDate>Thu, 08 Mar 2018 03:31:56 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Is there a limit for captive portal instances? on Thu, 08 Mar 2018 03:30:50 GMT]]></title><description><![CDATA[<p dir="auto">ps axww | grep nginx<br />
48874  -  Is  0:00.00 nginx: master process /usr/local/sbin/nginx -c /var/etc/nginx-webConfigurator.conf (nginx)<br />
49151  -  I    0:00.00 nginx: worker process (nginx)<br />
49363  -  I    0:00.00 nginx: worker process (nginx)<br />
49389  -  I    0:00.00 nginx: worker process (nginx)<br />
49648  -  S    0:00.11 nginx: worker process (nginx)<br />
49710  -  I    0:00.00 nginx: worker process (nginx)<br />
64546  -  Is  0:00.00 nginx: master process /usr/local/sbin/nginx -c /var/etc/nginx-ns-CaptivePortal.conf (nginx)<br />
64861  -  S    0:00.00 nginx: worker process (nginx)<br />
65025  -  S    0:00.00 nginx: worker process (nginx)<br />
65197  -  S    0:00.00 nginx: worker process (nginx)<br />
65443  -  S    0:00.00 nginx: worker process (nginx)<br />
65652  -  S    0:00.00 nginx: worker process (nginx)<br />
65873  -  S    0:00.00 nginx: worker process (nginx)<br />
65908  -  S    0:00.00 nginx: worker process (nginx)<br />
65984  -  S    0:00.00 nginx: worker process (nginx)<br />
66205  -  S    0:00.00 nginx: worker process (nginx)<br />
68425  -  Is  0:00.01 nginx: master process /usr/local/sbin/nginx -c /var/etc/nginx-t1-CaptivePortal.conf (nginx)<br />
68772  -  S    0:00.01 nginx: worker process (nginx)<br />
68990  -  S    0:00.00 nginx: worker process (nginx)<br />
69166  -  S    0:00.00 nginx: worker process (nginx)<br />
69443  -  S    0:00.00 nginx: worker process (nginx)<br />
69576  -  S    0:00.00 nginx: worker process (nginx)<br />
69854  -  S    0:00.00 nginx: worker process (nginx)<br />
69919  -  S    0:00.01 nginx: worker process (nginx)<br />
70197  -  S    0:00.00 nginx: worker process (nginx)<br />
70381  -  S    0:00.06 nginx: worker process (nginx)<br />
72942  -  Is  0:00.01 nginx: master process /usr/local/sbin/nginx -c /var/etc/nginx-t3-CaptivePortal.conf (nginx)<br />
73352  -  S    0:00.00 nginx: worker process (nginx)<br />
73676  -  S    0:00.00 nginx: worker process (nginx)<br />
74011  -  S    0:00.00 nginx: worker process (nginx)<br />
74178  -  S    0:00.01 nginx: worker process (nginx)<br />
74261  -  S    0:00.00 nginx: worker process (nginx)<br />
74521  -  S    0:00.00 nginx: worker process (nginx)<br />
74552  -  R    0:00.03 php-fpm: pool nginx (php-fpm)<br />
74808  -  S    0:00.00 nginx: worker process (nginx)<br />
75131  -  S    0:00.00 nginx: worker process (nginx)<br />
75320  -  S    0:00.00 nginx: worker process (nginx)<br />
78549  -  Is  0:00.01 nginx: master process /usr/local/sbin/nginx -c /var/etc/nginx-t4-CaptivePortal.conf (nginx)<br />
78911  -  I    0:00.00 nginx: worker process (nginx)<br />
79191  -  I    0:00.00 nginx: worker process (nginx)<br />
79457  -  I    0:00.00 nginx: worker process (nginx)<br />
79513  -  I    0:00.00 nginx: worker process (nginx)<br />
79850  -  I    0:00.00 nginx: worker process (nginx)<br />
80032  -  I    0:00.00 nginx: worker process (nginx)<br />
80042  -  I    0:00.00 nginx: worker process (nginx)<br />
80249  -  I    0:00.00 nginx: worker process (nginx)<br />
80426  -  I    0:00.00 nginx: worker process (nginx)<br />
82917  -  Is  0:00.01 nginx: master process /usr/local/sbin/nginx -c /var/etc/nginx-t5-CaptivePortal.conf (nginx)<br />
83149  -  I    0:00.00 nginx: worker process (nginx)<br />
83257  -  I    0:00.00 nginx: worker process (nginx)<br />
83569  -  I    0:00.00 nginx: worker process (nginx)<br />
83849  -  I    0:00.00 nginx: worker process (nginx)<br />
84139  -  I    0:00.00 nginx: worker process (nginx)<br />
84434  -  I    0:00.00 nginx: worker process (nginx)<br />
84494  -  I    0:00.00 nginx: worker process (nginx)<br />
84746  -  I    0:00.00 nginx: worker process (nginx)<br />
84807  -  I    0:00.00 nginx: worker process (nginx)<br />
87133  -  Is  0:00.01 nginx: master process /usr/local/sbin/nginx -c /var/etc/nginx-groom-CaptivePortal.conf (nginx)<br />
87602  -  I    0:00.00 nginx: worker process (nginx)<br />
87832  -  I    0:00.00 nginx: worker process (nginx)<br />
87839  -  I    0:00.00 nginx: worker process (nginx)<br />
88124  -  I    0:00.00 nginx: worker process (nginx)<br />
88323  -  I    0:00.00 nginx: worker process (nginx)<br />
88666  -  I    0:00.00 nginx: worker process (nginx)<br />
88907  -  I    0:00.00 nginx: worker process (nginx)<br />
88959  -  I    0:00.00 nginx: worker process (nginx)<br />
89052  -  I    0:00.00 nginx: worker process (nginx)<br />
91246  -  Is  0:00.01 nginx: master process /usr/local/sbin/nginx -c /var/etc/nginx-business-CaptivePortal.conf (nginx)<br />
91320  -  I    0:00.00 nginx: worker process (nginx)<br />
91554  -  I    0:00.00 nginx: worker process (nginx)<br />
91578  -  I    0:00.00 nginx: worker process (nginx)<br />
91866  -  I    0:00.00 nginx: worker process (nginx)<br />
92156  -  I    0:00.00 nginx: worker process (nginx)<br />
92429  -  I    0:00.00 nginx: worker process (nginx)<br />
92559  -  I    0:00.00 nginx: worker process (nginx)<br />
92623  -  I    0:00.00 nginx: worker process (nginx)<br />
92943  -  I    0:00.00 nginx: worker process (nginx)<br />
74999  0  R+  0:00.00 grep nginx</p>
<p dir="auto">ipfw table all list</p>
<p dir="auto">–- table(cp_ifaces), set(0) ---<br />
igb2.101 2100 48679 28549653 1520479617<br />
igb2.102 2200 0 0 0<br />
igb2.103 2300 1986 263626 1520479617<br />
igb2.104 2400 0 0 0<br />
igb2.105 2500 0 0 0<br />
igb2.107 2700 0 0 0</p>
<p dir="auto">that one is the one I have problem with</p>
<p dir="auto">10.102.0.1/32 0 0 0 0<br />
--- table(t2_pipe_mac), set(0) ---<br />
--- table(groom_allowed_down), set(0) ---<br />
--- table(ns_auth_up), set(0) ---</p>
]]></description><link>https://forum.netgate.com/post/754303</link><guid isPermaLink="true">https://forum.netgate.com/post/754303</guid><dc:creator><![CDATA[mke]]></dc:creator><pubDate>Thu, 08 Mar 2018 03:30:50 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Is there a limit for captive portal instances? on Wed, 07 Mar 2018 22:04:30 GMT]]></title><description><![CDATA[<p dir="auto">There are ways to look at the ipfw configuration here:</p>
<p dir="auto">https://doc.pfsense.org/index.php/Captive_Portal_Troubleshooting</p>
<p dir="auto">You might want to post the output from some of those.</p>
<p dir="auto">It looks like there is already something listening on 8004 for whatever reason.</p>
<p dir="auto"><em>ps axww | grep nginx</em> 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.</p>
]]></description><link>https://forum.netgate.com/post/754274</link><guid isPermaLink="true">https://forum.netgate.com/post/754274</guid><dc:creator><![CDATA[Derelict]]></dc:creator><pubDate>Wed, 07 Mar 2018 22:04:30 GMT</pubDate></item></channel></rss>