(RADIATOR) Bound IP

Timothy G. Wells Tim.Wells at goodnews.net
Tue Apr 30 22:19:38 CDT 2002


Thanks!

But I found an unfortunate issue with this. If I remove the BindAddress and 
let Radiator listen on all IP's then the answer comes back as 0.0.0.0. If I 
leave the BindAddress then it does say the correct IP but that doesn't help 
me in my attempt to prevent having multiple instances running listening to 
different IP's.

Is there a way to have radiator listen to all IP's loaded but tell me which 
one it gets a request to? This shows what I'm trying to do ...

     my %IPlist = ('206.112.216.72', 1, '206.112.216.73', 2, 
'206.112.216.74', 3, '206.112.216.75', 4, '206.112.216.105', 5);

     my $mysocketaddr = getsockname(${$_[0]}->{RecvSocket});
     my ($myport, $myaddr) = Socket::sockaddr_in($mysocketaddr);
     my $myIP = Socket::inet_ntoa($myaddr);
     ${$_[0]}->add_attr('Provider', $IPlist{$myIP});

Thanks,

-- Tim


At 11:02 AM 5/1/2002 +1000, Hugh Irvine wrote:

>Hello Tim -
>
>You have access to both the source and destination:
>
>         $p->{RecvFrom};
>and
>         $p->{RecvSocket};
>
>Have a look at "Radius/Radius.pm", sub newRecvFrom.
>
>regards
>
>Hugh
>
>
>On Tue, 30 Apr 2002 22:45, Timothy G. Wells wrote:
> > Greetings,
> >
> >  From within a hook, how would I identify the IP address the packet was
> > sent to? I have multiple IP's on my ethernet.
> >
> > Thanks,
> >
> > -- Tim
> >
> >
> >
> > Timothy G. Wells
> > Good News Internet Services
> > Tim.Wells at goodnews.net
> > http://www.goodnews.net
>
>--
>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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.open.com.au/pipermail/radiator/attachments/20020430/564f9112/attachment.html>


More information about the radiator mailing list