I’m using a central freeradius/MySQL setup to do proxying for 3 ISP’s. I keep accounting records for each ISP. The problem is that every record has the Realm set as DEFAULT. I would like to have the realm reflect the realm it was proxied to.
My SQL statement, in sql.conf looks like this: accounting_start_query = "INSERT into radacct (……., Realm, …….) values('……., '%{Realm}', …….)"
users and acct_users I have lines similar to these: DEFAULT Called-Station-Id == "5551111", Proxy-To-Realm := "realm1"
DEFAULT Called-Station-Id == "5552222", Proxy-To-Realm := "realm2"
DEFAULT Called-Station-Id == "5553333", Proxy-To-Realm := "realm3"
proxy.conf looks similar to: realm realm1 { type = radius authhost = 1.2.3.4:1645 accthost = 1.2.3.4:1646 secret = ourlittlesecret }
realm realm2 { type = radius authhost = 5.6.7.8:1645 accthost = 5.6.7.8:1646 secret = itsasecret }
realm realm3 { type = radius authhost = 4.3.2.1:1645 accthost = 4.3.2.1:1646 secret = notgonnatellya nostrip } |