pyrad
pyrad copied to clipboard
Changed to allow IP ranges to be specified.
Useful when client IP addresses may not be known but are within a network range such as the case when using auto scaling load balancers.
To use, specify the RemoteHost address as a CIDR.
For example:
hosts={
'default': server.RemoteHost('0/0', 'Kah3choteereethiejeimaeziecumi', 'default'),
'internal': server.RemoteHost('192.168.0.0/24', 'Kah3choteereethiejeimaeziecumi', 'internal'),
'localnet': server.RemoteHost('10.0.0.0/16', 'Kah3choteereethiejeimaeziecumi', 'localnet'),
'onehost': server.RemoteHost('10.0.0.1', 'Kah3choteereethiejeimaeziecumi', 'onehost'),
}