radiusplugin-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Radiusplugin-users] Framed-IP-Address problem


From: Ralf Lübben
Subject: Re: [Radiusplugin-users] Framed-IP-Address problem
Date: Tue, 14 Jun 2011 18:59:39 +0200
User-agent: KMail/1.13.5 (Linux/2.6.35-28-generic; KDE/4.5.5; i686; ; )

Hi,

the plugin just writes the Framed-IP address to the client config file (maybe 
as 
your client config script does) if it gets one from the radius server.

One option could be not to send to the Framed IP option another option could 
be to do the address selection at the radius.

Overall, I think the behavior of a script and a plugin a very similar.

If you have further question please let me know.

Ralf
  
Am Dienstag, 14. Juni 2011, um 18:38:35 schrieb Stuart Stevenson:
> Hi,
> 
> 
> 
> I'm trying to get the correct Framed-IP-Address stored into the database,
> but it won't update with the new value.
> 
> 
> 
> First, I connect to OpenVPN, and by default, it tries to assign an IP from
> the range 10.8.0.0/24 (hence the 10.8.0.2) the RADIUS-PLUGIN sees below:
> 
> 
> 
> Tue Jun 14 17:23:09 2011 RADIUS-PLUGIN: FOREGROUND:
> OPENVPN_PLUGIN_CLIENT_CONNECT is called.
> 
> Tue Jun 14 17:23:09 2011 RADIUS-PLUGIN: FOREGROUND: Key:
> 192.168.10.8:47386.
> 
> Tue Jun 14 17:23:09 2011 RADIUS-PLUGIN: FOREGROUND: Set FramedIP to the IP
> (10.8.0.2) OpenVPN assigned to the user bob
> 
> 
> 
> However, I have a client-connect script which pulls a random IP from the
> 10.8.0.0/24 range and puts the random Framed-IP-Address into this dynamic
> config file. As can be seen below, OpenVPN recognises this and updates
> according (including in the status file):
> 
> 
> 
> Tue Jun 14 17:23:09 2011 us=553408 bob/192.168.10.8:47386 OPTIONS IMPORT:
> reading client specific options from:
> /tmp/openvpn/ifconfig/openvpn_cc_3745795b4223cfddef61f0260b52ec84.tmp
> 
> Tue Jun 14 17:23:09 2011 us=742109 bob/192.168.10.8:47386 OPTIONS IMPORT:
> reading client specific options from:
> /tmp/openvpn/ifconfig/openvpn_cc_eb3789928b91000666b54c31ecbcc26b.tmp
> 
> Tue Jun 14 17:23:09 2011 us=742409 bob/192.168.10.8:47386 MULTI: Learn:
> 10.8.0.211 -> bob/192.168.10.8:47386
> 
> Tue Jun 14 17:23:09 2011 us=742449 bob/192.168.10.8:47386 MULTI: primary
> virtual IP for bob/192.168.10.8:47386: 10.8.0.211
> 
> 
> 
> My problem is that the RADIUS-PLUGIN does not pick up on the fact that
> there is an updated Framed-IP-Address, and still updates the database with
> the old Framed-IP-Address. Even with accounting updates like below, (not
> knowing C/C++ well enough to make sense of the source code), I would
> assume that when the plugin reads the status file, it would update any new
> information, including the updated Framed-IP-Address, but it still updated
> the database with 10.8.0.2.
> 
> 
> 
> Tue Jun 14 17:27:09 2011 RADIUS-PLUGIN: BACKGROUND ACCT: Scheduler: Read
> Statusfile.
> 
> Tue Jun 14 17:27:09 2011 RADIUS-PLUGIN: BACKGROUND-ACCT: Get
> ACCOUNTING_RESPONSE-Packet.
> 
> Tue Jun 14 17:27:09 2011 RADIUS-PLUGIN: BACKGROUND-ACCT: Scheduler: Update
> packet for User bob was send.
> 
> 
> 
> Perhaps I am just doing something wrong, or maybe the plugin just isn't
> written to pull and update the Framed-IP-Address from the status file on
> every accounting update?
> 
> 
> 
> Regards,
> 
> Stuart.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]