radiusplugin-devel
[Top][All Lists]
Advanced

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

Re: [Radiusplugin-devel] [Radiusplugin-users] Acct-Input-Octets and Acct


From: Ralf lübben
Subject: Re: [Radiusplugin-devel] [Radiusplugin-users] Acct-Input-Octets and Acct-Output-Octets always 0 in Interim-Update
Date: Mon, 28 May 2012 14:29:04 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

Hi,

thanks for the comment. Which version of the plugin do you use?

The current version in the CVS should replace the common name by the user name if the option is enabled in the OpenVPN config file. The plugin reads the OpenVPN config file and checks for the option (see Config.cpp).

In radiusplugin.cpp you find the corresponding line by the comment "//rewrite the commonname if OpenVPN use the option username-as-comon-name".

You should also see the output "RADIUS-PLUGIN: FOREGROUND: Commonname set to Username" in your log file if the OpenVPN verbosity option is >= 5 if you enabled "username-as-comon-name"

Can you possibly check that behavior? So I can fix the plugin.

Regards
Ralf





On 24.05.2012 19:03, vistb wrote:
I find and solve the problem, it turns out that radiusplugin always
use common name as part of the StatusFileKey, but openvpn uses the
username as part of the StatusFileKey when you specified
username-as-common-name, you need to modify the last few line in
raiusplugin.cpp and change the call getCommonname() to getUsername()
when invoking setStatusFileKey().

On Thu, May 24, 2012 at 9:38 PM, vistb<address@hidden>  wrote:
OK, I think it has something to do with the certificates. In the
certificate I issued for the clients I use the test account name as
the common name. However, I've specified auth-user-pass in client
config and username-as-common-name in server config. I think the
problem is related to these config but I don't what exactly the
problem is! Please Help!

On Thu, May 24, 2012 at 9:11 PM, vistb<address@hidden>  wrote:
Hi guys,

I use mysql+freeradius+openvpn+radiusplugin build a vpn server and
charges the registered users. Everything works fine except that the
Acct-Input-Octets and Acct-Output-Octets field is always 0 in
Interim-Update packets. This happens to all the registered users
except for the test account I created. I.e., the Interim-Update
packets looks normal for my test account. The version of openvpn is
same for all users, so is  the openvpn client side config file. Anyone
has any idea why this is happening? I need to track the traffic usage
of the users so that I can bill them... Help plz...

Best,
Chaodong.

_______________________________________________
Radiusplugin-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/radiusplugin-users




reply via email to

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