<?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 Upload]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Is there any by by which I can upload the Captive Portal File using PHP or any Script instead of PFSense -&gt; Services -&gt; Captive Portal and then Manually Uploaded Portal Page Contents.</p>
<p dir="auto">PFSense build that I am using is 2.2.4</p>
<p dir="auto">Sincere Thanks,</p>
<p dir="auto"><strong>Ameet Parse</strong></p>
]]></description><link>https://forum.netgate.com/topic/90113/captive-portal-upload</link><generator>RSS for Node</generator><lastBuildDate>Sun, 08 Nov 2026 10:19:46 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/90113.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 09 Oct 2015 03:03:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Captive Portal Upload on Sat, 17 Oct 2015 04:53:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/smartcodar" aria-label="Profile: SmartCodar">@<bdi>SmartCodar</bdi></a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gertjan" aria-label="Profile: Gertjan">@<bdi>Gertjan</bdi></a>:</p>
<blockquote>
<p dir="auto">Thanks Gertjan this worked very well<br />
Thanks,</p>
<p dir="auto">Can you please let me know which config file I need to use? Also does Write_Config can be called using a Cron? I mean without doing login or Authentication.<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/smartcodar" aria-label="Profile: SmartCodar">@<bdi>SmartCodar</bdi></a>:</p>
<blockquote>
<p dir="auto">Basically I need to Upload the Captive Portal Page pro-grammatically.</p>
<p dir="auto">…..<br />
For example when PFSense System is rebooted. is there any way where I need to copy my Captive Portal Page Content file? I have tried to copy in \var\etc but it wont worked. Is there any additional step I need to do</p>
</blockquote>
<p dir="auto">From how I understand it, when pfSense reboots, using PHP a script, use wget/ftp/curl/what-ever to 'import' a new html file, and write_config() it.<br />
See here https://github.com/pfsense/pfsense/blob/master/src/usr/local/www/services_captiveportal.php#L447</p>
<p dir="auto">The other way around: create a script (it can be on any device that can access pfSense**)  that accepts a $POST, so you can send ove new file - put it in the config,  write_config() and restart the captive portal service.</p>
<p dir="auto">** if needed, you can decide to skip the entire GUI login protection. Remember, its PHP, your free to do what you want ;)</p>
</blockquote>
</blockquote>
]]></description><link>https://forum.netgate.com/post/577473</link><guid isPermaLink="true">https://forum.netgate.com/post/577473</guid><dc:creator><![CDATA[SmartCodar]]></dc:creator><pubDate>Sat, 17 Oct 2015 04:53:34 GMT</pubDate></item><item><title><![CDATA[Reply to Captive Portal Upload on Fri, 16 Oct 2015 06:13:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gertjan" aria-label="Profile: Gertjan">@<bdi>Gertjan</bdi></a>:</p>
<blockquote>
<p dir="auto">Thanks,</p>
<p dir="auto">Can you please let me know which config file I need to use? Also does Write_Config can be called using a Cron? I mean without doing login or Authentication.<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/smartcodar" aria-label="Profile: SmartCodar">@<bdi>SmartCodar</bdi></a>:</p>
<blockquote>
<p dir="auto">Basically I need to Upload the Captive Portal Page pro-grammatically.</p>
<p dir="auto">…..<br />
For example when PFSense System is rebooted. is there any way where I need to copy my Captive Portal Page Content file? I have tried to copy in \var\etc but it wont worked. Is there any additional step I need to do</p>
</blockquote>
<p dir="auto">From how I understand it, when pfSense reboots, using PHP a script, use wget/ftp/curl/what-ever to 'import' a new html file, and write_config() it.<br />
See here https://github.com/pfsense/pfsense/blob/master/src/usr/local/www/services_captiveportal.php#L447</p>
<p dir="auto">The other way around: create a script (it can be on any device that can access pfSense**)  that accepts a $POST, so you can send ove new file - put it in the config,  write_config() and restart the captive portal service.</p>
<p dir="auto">** if needed, you can decide to skip the entire GUI login protection. Remember, its PHP, your free to do what you want ;)</p>
</blockquote>
]]></description><link>https://forum.netgate.com/post/577266</link><guid isPermaLink="true">https://forum.netgate.com/post/577266</guid><dc:creator><![CDATA[SmartCodar]]></dc:creator><pubDate>Fri, 16 Oct 2015 06:13:49 GMT</pubDate></item><item><title><![CDATA[Reply to Captive Portal Upload on Fri, 09 Oct 2015 16:25:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/smartcodar" aria-label="Profile: SmartCodar">@<bdi>SmartCodar</bdi></a>:</p>
<blockquote>
<p dir="auto">Basically I need to Upload the Captive Portal Page pro-grammatically.</p>
<p dir="auto">…..<br />
For example when PFSense System is rebooted. is there any way where I need to copy my Captive Portal Page Content file? I have tried to copy in \var\etc but it wont worked. Is there any additional step I need to do</p>
</blockquote>
<p dir="auto">From how I understand it, when pfSense reboots, using PHP a script, use wget/ftp/curl/what-ever to 'import' a new html file, and write_config() it.<br />
See here https://github.com/pfsense/pfsense/blob/master/src/usr/local/www/services_captiveportal.php#L447</p>
<p dir="auto">The other way around: create a script (it can be on any device that can access pfSense**)  that accepts a $POST, so you can send ove new file - put it in the config,  write_config() and restart the captive portal service.</p>
<p dir="auto">** if needed, you can decide to skip the entire GUI login protection. Remember, its PHP, your free to do what you want ;)</p>
]]></description><link>https://forum.netgate.com/post/575875</link><guid isPermaLink="true">https://forum.netgate.com/post/575875</guid><dc:creator><![CDATA[Gertjan]]></dc:creator><pubDate>Fri, 09 Oct 2015 16:25:39 GMT</pubDate></item><item><title><![CDATA[Reply to Captive Portal Upload on Fri, 09 Oct 2015 10:38:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gertjan" aria-label="Profile: Gertjan">@<bdi>Gertjan</bdi></a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/smartcodar" aria-label="Profile: SmartCodar">@<bdi>SmartCodar</bdi></a>:</p>
<blockquote>
<p dir="auto">Is there any by by which I can upload the Captive Portal File using PHP or any Script instead of PFSense -&gt; Services -&gt; Captive Portal and then Manually Uploaded Portal Page Contents.</p>
</blockquote>
<p dir="auto">This "PFSense -&gt; Services -&gt; Captive Portal and then Manually Uploaded Portal Page Contents"<br />
IS a PHP page that let you upload the page and does all the work needed to insert it in the system.<br />
What about reusing it to make yours ?</p>
</blockquote>
<p dir="auto">Thanks for quick reply,</p>
<p dir="auto">Basically I need to Upload the Captive Portal Page pro-grammatically. For example when PFSense System is rebooted. is there any way where I need to copy my Captive Portal Page Content file? I have tried to copy in \var\etc but it wont worked. Is there any additional step I need to do</p>
<p dir="auto">Thanks,</p>
<p dir="auto">Ameet Parse</p>
]]></description><link>https://forum.netgate.com/post/575803</link><guid isPermaLink="true">https://forum.netgate.com/post/575803</guid><dc:creator><![CDATA[SmartCodar]]></dc:creator><pubDate>Fri, 09 Oct 2015 10:38:34 GMT</pubDate></item><item><title><![CDATA[Reply to Captive Portal Upload on Fri, 09 Oct 2015 07:03:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/smartcodar" aria-label="Profile: SmartCodar">@<bdi>SmartCodar</bdi></a>:</p>
<blockquote>
<p dir="auto">Is there any by by which I can upload the Captive Portal File using PHP or any Script instead of PFSense -&gt; Services -&gt; Captive Portal and then Manually Uploaded Portal Page Contents.</p>
</blockquote>
<p dir="auto">This "PFSense -&gt; Services -&gt; Captive Portal and then Manually Uploaded Portal Page Contents"<br />
IS a PHP page that let you upload the page and does all the work needed to insert it in the system.<br />
What about reusing it to make yours ?</p>
]]></description><link>https://forum.netgate.com/post/575769</link><guid isPermaLink="true">https://forum.netgate.com/post/575769</guid><dc:creator><![CDATA[Gertjan]]></dc:creator><pubDate>Fri, 09 Oct 2015 07:03:04 GMT</pubDate></item></channel></rss>