<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"Trebuchet MS";
panose-1:2 11 6 3 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Texte de bulles Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.TextedebullesCar
{mso-style-name:"Texte de bulles Car";
mso-style-priority:99;
mso-style-link:"Texte de bulles";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">I’m currently working on a fresh FreeRadius 2.x install, in order to separate Radius auth for Administrators (Firewall, Routeurs & Switchs administration) and Customers access (VPN SSL / IPSec).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">My first try was to rewrite all the config into virtual servers (previously, all was written into radiusd.conf
</span><span lang="EN-US" style="font-family:Wingdings">L</span><span lang="EN-US">).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">So what I did : <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[root@server /etc/raddb]$ ll sites-enabled/<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">total 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">lrwxrwxrwx. 1 root root 33 Mar 19 12:01 administrator -> /etc/raddb/sites-available/administrator<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">lrwxrwxrwx. 1 root root 43 Mar 26 18:16 customer -> /etc/raddb/sites-available/coreye_customers<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">This is my two VS :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">server administrator {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># Authenticate / Authorize listener<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> listen {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> ipaddr = *<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> port = 1600<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> type = auth<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># Accounting listener<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> listen {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> ipaddr = *<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> port = 1601<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> type = acct<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[…]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">server customer {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># Authenticate / Authorize listener<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> listen {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> ipaddr = *<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> port = 1602<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> type = auth<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># Accounting listener<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> listen {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> ipaddr = *<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> port = 1603<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> type = acct<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[…]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">And in order to proxy, I want to forward using proxy depending realm (proxy.conf)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">realm ".*customer$" {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> virtual_server = customer<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">realm ".*admin$" {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> virtual_server = administrator<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">realm NULL {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> virtual_server = administrator<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">But when logging into Radius, it works for VS Administrator (login admin or user@admin), but if I try using login@customer, it’s never proxy to virtual server customer.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I tried different methods always shown in the mailing list, but no way, it’s never working …
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Proxy to realm into authorize section :<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:35.4pt"><span lang="EN-US">if (Realm == customer) {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> update control {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Proxy-To-Realm := customer<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Not working … The request is always managed by administrator vs.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Always played using dynamic clients example and FreeRADIUS-Client-Virtual-Server = "customer", but not working again.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I suspect the problem located in my NAS MySQL table, where “server” column is forced to virtual server “administrator”<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Is anything I missed to do ? What’s the best solution to do this kind of configuration when nas are stored in MySQL DB, and some of the nas clients could be used by different virtual servers ? What the is the best way
to have a single radius IP server, and two different virtual servers with two different set of rules ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks in advance for your help !<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#1F497D">Fabien VINCENT</span></b><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;color:#4F81BD"><a href="http://www.coreye.fr/"><span style="color:#4F81BD">http://www.coreye.fr</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>