(RADIATOR) Little config advice needed
Hugh Irvine
hugh at open.com.au
Fri Sep 14 04:09:34 CDT 2001
Hello Sergio -
On Friday 14 September 2001 02:34, Sergio Alejandro Gonzalez wrote:
> Hello there.
>
> I recently had a problem with a config that makes me handle
> dynamic address allocation. The problem is I have to
> different RASes (3com and Patton). For admin purposes, some
> dialup clients need to have another ip address pool
> different from the RAS can assign. To do the trick, 3com
> fortunately handles more than one ip pool, but Patton
> doesn't. The config I've now looks like:
>
> <AddressAllocator SQL>
> Identifier myallocator
>
> DBSource dbi:mysql:radius
> DBUsername XXXXXXXXX
> DBAuth XXXXXXXXX
>
> <AddressPool mora>
> Subnetmask 255.255.255.0
> DNSServer aaa.bbb.ccc.ddd
> Range 192.168.2.1 192.168.2.254
> </AddressPool>
>
> </AddressAllocator>
>
> <Realm>
> RejectHasReason
> AccountingHandled
> AuthByPolicy ContinueWhileAccept
>
> <AuthBy SQL>
> DefaultSimultaneousUse 1
> DBSource dbi:mysql:radius
> DBUsername XXXXXXXX
> DBAuth XXXXXXXX
>
> AuthSelect select PASSWORD,CHECKATTR,REPLYATTR \
> from SUBSCRIBERS where USERNAME = '%n'
> and STATUS = 1
>
> AccountingStopsOnly
> AccountingTable ACCOUNTING%Y%m
> AcctColumnDef USERNAME,User-Name
> AcctColumnDef TIME_STAMP,Timestamp,integer
> AcctColumnDef ACCTSESSIONID,Acct-Session-Id
> AcctColumnDef ACCTSESSIONTIME,Acct-Session-Time,integer
> AcctColumnDef ACCTTERMINATECAUSE,Acct-Terminate-Cause,integer
> AcctColumnDef ACCTCONNECTSPEED,Ascend-Xmit-Rate,integer
> AcctColumnDef ACCTCONNECTSPEED,USR-Connect-Speed,integer
> AcctColumnDef ACCTCALLINGSTATIONID,Calling-Station-Id,string
> AcctColumnDef ACCTCALLEDSTATIONID,Called-Station-Id,string
> AcctColumnDef FRAMEDIPADDRESS,Framed-IP-Address
> </AuthBy>
>
> <AuthBy DYNADDRESS>
> Allocator myallocator
> PoolHint %{Reply:Framed_IP_Address_Pool_Name}
> MapAttribute yiaddr,Framed-IP-Address
> MapAttribute subnetmask,Framed-IP-Netmask
> </AuthBy>
> PasswordLogFileName %L/password.log
>
> </Realm>
>
>
>
> Ok, that works, but I only the Auth DYNADDRESS work for the
> Patton request. How can I achieve this?
>
I would suggest you use Identifiers in your Client clauses, and Handlers,
like this:
# define Client clauses
<Client ....>
Identifier 3com
....
<Client>
<Client ....>
Identifier 3com
....
<Client>
<Client ....>
Identifier Patton
....
<Client>
<Client ....>
Identifier Patton
....
<Client>
<Handler Client-Identifier = 3com>
......
</Handler>
<Handler Client-Identifier = Patton>
......
</Handler>
hth
Hugh
--
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.
More information about the radiator
mailing list