On Tue, Mar 26, 2013 at 02:52:48PM +0100, Emmanuel BILLOT wrote:
Thanks it seems to be ok. Proxy should resent request to virtual server so it should work. But now i have
authorize { if (Called-Station-Id =~ /^.*:([-a-zA-Z]+)$/) { update control {
use instead: update request {
Tmp-String-0 := "%{1}" } }
It was an *untested example*. But now I've actually had to go and test it, this works here: authorize { if (Called-Station-Id =~ /^.*:([a-zA-Z-]+)$/) { update request { Tmp-String-0 := "%{1}" } } switch "%{Tmp-String-0}" { case 'TEST' { update control { Proxy-To-Realm := "testproxy" } } case 'WIFI' { update control { Proxy-To-Realm := "wifiproxy" } } } } Matthew -- Matthew Newton, Ph.D. <mcn4@le.ac.uk> Systems Specialist, Infrastructure Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk>