Server switch

Emmanuel BILLOT emmanuel.billot at ac-orleans-tours.fr
Tue Mar 26 14:20:40 CET 2013


> Set up proxy.conf with entries for the right ports, then you
> should be able to do something like (example, untested):
>
> authorize {
>
>    if (Calling-Station-Id =~ /^.*:([a-zA-Z]+)$/) {
>      update control {
>        Tmp-String-0 := %{1}
>      }
>    }
>    
>    switch "%{Tmp-String-0}" {
>      case 'TEST' {
>         update control {
>            Proxy-To-Realm := testproxy
>         }
>      }
>      case 'WIFI' {
>         update control {
>            Proxy-To-Realm := wifiproxy
>         }
>      }
>      ...
>    }
>
> }
>
> This should work between different servers; I'm not sure if you'll
> hit the "only one internal proxy" limit on one server.
>
> Matthew
>
>
How about hyphen SSID ? ex : WIFI-TEST
I failed in writing regex for it...

Any idea ?


More information about the Freeradius-Users mailing list