Closed themiron closed 6 years ago
or, please advise, what would be other preferable way to use pass dp->pool for allocation
maybe just check if 4th field is valid ip4 address if not consider it as pool name
done, 4th field isn't empty and doesn't start with reserved chars (*-!), assume it as pool name
Chap-secrets' ipdb uses 4th field as static peer ipv4 address. With no radius and multiple same username sessions, it's impossible to use non-default pool for such sessions. Abuse chap-secret's 4th field as pool=name to specify session's pool name. With ippool module loaded after chap-secrets (default order), it will be used for allocation from the specified poll name.
Compatibility considerations: