<?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[Captive portal problem under high load]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">Under High load devices stop connecting to the internet and come back with various errors. Restarting the Captive portal fixes it but the problem comes back within a day</p>
<p dir="auto">I'm not sure what is causing this. DHCP and DNS seem fine. Looking through the logs the only thing that stands out is from system -&gt; general logs i see a bunch of messages similar to below while this error is happening.</p>
<p dir="auto">nginx: 2017/12/06 07:46:20 [error] 89653#100253: *35901 limiting connections by zone "addr", client: 172.16.182.78, server: , request: "GET /index.php?zone=chromebook&amp;redirurl=http%3A%2F%2Fcdn1.securly.com%2Fiwf-encode.txt HTTP/1.1", host: "172.16.182.1:8002"</p>
<p dir="auto">nginx: 2017/12/06 07:45:01 [error] 90181#100231: *33152 connect() to unix:/var/run/php-fpm.socket failed (61: Connection refused) while connecting to upstream, client: 172.16.172.239, server: , request: "GET /generate_204 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.socket:", host: "www.gstatic.com"</p>
<p dir="auto">any suggestions on how to fix or troubleshoot?</p>
<p dir="auto">thanks!</p>
]]></description><link>https://forum.netgate.com/topic/124088/captive-portal-problem-under-high-load</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 12:09:05 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/124088.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 06 Dec 2017 13:48:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Captive portal problem under high load on Thu, 05 Dec 2019 15:29:10 GMT]]></title><description><![CDATA[<p dir="auto">hi dboe732 do you resolve your problem ?</p>
]]></description><link>https://forum.netgate.com/post/879313</link><guid isPermaLink="true">https://forum.netgate.com/post/879313</guid><dc:creator><![CDATA[cobra62100]]></dc:creator><pubDate>Thu, 05 Dec 2019 15:29:10 GMT</pubDate></item><item><title><![CDATA[Reply to Captive portal problem under high load on Thu, 07 Dec 2017 13:08:41 GMT]]></title><description><![CDATA[<p dir="auto">Ah, ok.<br />
And let me guess, they all try to enter between 08h30 and 09h00 AM ?</p>
<p dir="auto">I presume that your problem is related to the authentication phase.<br />
Ones the client is connected, it's IP and MAC is loaded in one of the first tables in ipfw see https://doc.pfsense.org/index.php/Captive_Portal_Troubleshooting - remember : 2.4.x : no more "-x" parameter)</p>
<p dir="auto">When you look at the ipfw rules and tables, and /etc/inc/captiveportal.inc (where the rules are created and injected into ipfw) it is easy to create somewhere in the middle a pass-all rule. Put one in, and see if the "load" problem still exists. If so : it's not the portal or pfsense but your routing capabilities, it's time tu upgrade the hardware.<br />
If the problem is the authentication phase, or, more precis : the web server that handles the login pages, the creation of the rules into the tables, and the housekeeping of a mini database - 2 of them (the 'nasty' PHP build-in SQLITE which tends to create a huge file that tends be be read and written often - you better have some fast media or put it into RAM) you should look up the several threads in this forum that talk about heavy load portals - have read about some installations that have several thousands of clients at the same moment.</p>
<p dir="auto">Also : do not set the soft and hard time out to low : tat means people have to re-log again more often.</p>
<p dir="auto">Btw : I presume you have some PHP knowledge (accessible ones one can read - it worlds most simple language, only basic was more ….) and have some global "system" knowledge about things like "ipfw" (all the doc is on the net already).<br />
You want to tune your system, which is ok of course, so, the question is : are you a tuner ? If not, have it tune ;)</p>
<p dir="auto">See my reply not as a "do this and you will be fine", more as a "I would take these steps to see where the bottle neck is".</p>
<p dir="auto">Btw : you are running VLAN's over what ? one 1GB interface ? 100 Mbit interface ?<br />
Think about ditching VLAN and take real physical LAN's (1 Gb does NOT take 1 Giga bit per second, it will be far less ...)</p>
]]></description><link>https://forum.netgate.com/post/730838</link><guid isPermaLink="true">https://forum.netgate.com/post/730838</guid><dc:creator><![CDATA[Gertjan]]></dc:creator><pubDate>Thu, 07 Dec 2017 13:08:41 GMT</pubDate></item><item><title><![CDATA[Reply to Captive portal problem under high load on Thu, 07 Dec 2017 03:59:01 GMT]]></title><description><![CDATA[<p dir="auto">I would say problems start occuring after 800 devices. Our APs spread out the devices evenly between 8 vlans that are /24 each</p>
]]></description><link>https://forum.netgate.com/post/730764</link><guid isPermaLink="true">https://forum.netgate.com/post/730764</guid><dc:creator><![CDATA[dboe732]]></dc:creator><pubDate>Thu, 07 Dec 2017 03:59:01 GMT</pubDate></item><item><title><![CDATA[Reply to Captive portal problem under high load on Wed, 06 Dec 2017 19:52:46 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Can you give some numbers ?</p>
]]></description><link>https://forum.netgate.com/post/730702</link><guid isPermaLink="true">https://forum.netgate.com/post/730702</guid><dc:creator><![CDATA[Gertjan]]></dc:creator><pubDate>Wed, 06 Dec 2017 19:52:46 GMT</pubDate></item></channel></rss>