<?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[CP Quota limit with Freeradius&#x2F;MySQL]]></title><description><![CDATA[<p dir="auto">Hi all!</p>
<p dir="auto">I have a Captive Portal running with Freeradius set up with a MySQL server that holds the user data.<br />
This works, but now I need to limit the data quota for the users per day, week or month.</p>
<p dir="auto">Has anybody done this and have some tips or instructions? I have made some tests, but until now without success.</p>
<p dir="auto">The quota management works fine when running it locally within Freeradius, but when using MySQL it doesn't...</p>
<p dir="auto">Thanks in advance!</p>
]]></description><link>https://forum.netgate.com/topic/144311/cp-quota-limit-with-freeradius-mysql</link><generator>RSS for Node</generator><lastBuildDate>Sun, 14 Jun 2026 13:47:47 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/144311.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 20 Jun 2019 12:01:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CP Quota limit with Freeradius&#x2F;MySQL on Thu, 27 Jun 2019 12:57:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jarlel">@<bdi>jarlel</bdi></a> said in <a href="/post/849358">CP Quota limit with Freeradius/MySQL</a>:</p>
<blockquote>
<p dir="auto">but when using MySQL it doesn't...</p>
</blockquote>
<p dir="auto">FreeRadius needs a book-keeping system where it stores its working data.<br />
A file system based method exists.<br />
MySQL can also be used, as many other databases. Up to you to create a database with tables that contain the correct fields etc.</p>
<p dir="auto">When you setup a limited amount of up- and download traffic for a user like this :</p>
<p dir="auto"><img src="/assets/uploads/files/1561639783765-1be2a07d-4c7a-4a85-aa01-54ddf96d31c4-image.png" alt="1be2a07d-4c7a-4a85-aa01-54ddf96d31c4-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">You'll be seeing lines in the log :</p>
<p dir="auto"><img src="/assets/uploads/files/1561639869482-6468f8aa-e8f7-4b04-a759-111c40ba5036-image.png" alt="6468f8aa-e8f7-4b04-a759-111c40ba5036-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">When the quota (dialy in my case) is consumed, you see a line like this in the captive portal page :</p>
<p dir="auto"><img src="/assets/uploads/files/1561639969909-a359cccd-a09f-4698-92bb-da86d2b30a4c-image.png" alt="a359cccd-a09f-4698-92bb-da86d2b30a4c-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.netgate.com/post/850553</link><guid isPermaLink="true">https://forum.netgate.com/post/850553</guid><dc:creator><![CDATA[Gertjan]]></dc:creator><pubDate>Thu, 27 Jun 2019 12:57:54 GMT</pubDate></item><item><title><![CDATA[Reply to CP Quota limit with Freeradius&#x2F;MySQL on Fri, 21 Jun 2019 18:36:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jarlel">@<bdi>jarlel</bdi></a> this is the forum for pfSense software, not for FreeRADIUS. If you are seeking for what FreeRADIUS can and can't do for Authentication/Authorization/Accounting when using a MySQL backend, i would suggest you to ask their mailing list : https://freeradius.org/community/</p>
<p dir="auto">To reply you shortly however, yes what you are looking for is possible, using the <code>rlm_sql_counter</code> module.</p>
]]></description><link>https://forum.netgate.com/post/849632</link><guid isPermaLink="true">https://forum.netgate.com/post/849632</guid><dc:creator><![CDATA[free4]]></dc:creator><pubDate>Fri, 21 Jun 2019 18:36:39 GMT</pubDate></item></channel></rss>