radiusplugin-users
[Top][All Lists]
Advanced

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

Re: [Radiusplugin-users] openVPN with freeradius, only updates stats (ac


From: admin extremeshok.com
Subject: Re: [Radiusplugin-users] openVPN with freeradius, only updates stats (accounting) after client is disconnected.
Date: Fri, 02 Nov 2012 12:24:52 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1

Hi

Where exactly in the  radiusd.conf  on the radius server machine, do I
need to  Add Acct-Interim-Interval=30  ?

 one of the listen { } ?

Thanks

On 2012/11/02 10:33 AM, ValdikSS wrote:
> You should set it in radius configuration, not in radiusplugin
> configuration.
>
> admin extremeshok.com <address@hidden> писал(а) в своём письме
> Fri, 02 Nov 2012 11:34:28 +0400:
>
>> Hi Ralf
>>
>> Acct-Interim-Interval=30
>> status /var/log/openvpn/status.log 1
>>
>> The status.log is being updated every 30seconds, however the updates are
>> not sent to the freeradius server.
>>
>> Only once the client disconnects does the freeradius server receive the
>> updates.
>>
>> On 2012/11/02 08:16 AM, Ralf Lübben wrote:
>>> Hi,
>>>
>>> is the update information updated frequently in your status file
>>> /var/log/openvpn/status.log   ?
>>>
>>> Did you set the RADIUS attribute Acct-Interim-Interval , which is
>>> required for
>>> the plugin to update the accounting information regularly?
>>>
>>> Ralf
>>>
>>> Am Donnerstag, 1. November 2012, 09:49:50 schrieb admin
>>> extremeshok.com:
>>>> Not sure if this is a bug or a limitation of the openvpn
>>>> freeradius-plugin ( radiusplugin_v2.1a_beta1 )
>>>>
>>>> The users current active session will not display any usage stats,
>>>> only
>>>> once the session is disconnected will the stats appear.
>>>>
>>>>  pptp and l2tp shows the session usage in near realtime
>>>>
>>>>  --------------
>>>>  server.conf
>>>>  --------------
>>>>  local 68.235.32.9 #- your_server_ip goes here
>>>>  port 1194 #- port
>>>>  proto udp #- protocol
>>>>  dev tun
>>>>  fast-io
>>>>  tun-mtu 1500
>>>>  tun-mtu-extra 32
>>>>  mssfix 1450
>>>>  ca /etc/openvpn/easy-rsa/keys/ca.crt
>>>>  cert /etc/openvpn/easy-rsa/keys/server.crt
>>>>  key /etc/openvpn/easy-rsa/keys/server.key
>>>>  dh /etc/openvpn/easy-rsa/keys/dh1024.pem
>>>>  plugin /etc/openvpn/radiusplugin.so /etc/openvpn/radiusplugin.cnf
>>>>  client-cert-not-required
>>>>  username-as-common-name
>>>>  server 10.8.8.0 255.255.255.0
>>>>  management 127.0.0.1 7505
>>>>  push "redirect-gateway def1"
>>>>  push "dhcp-option DNS 8.8.8.8"
>>>>  push "dhcp-option DNS 8.8.4.4"
>>>>  keepalive 5 30
>>>>  comp-lzo
>>>>  persist-key
>>>>  persist-tun
>>>>  status /var/log/openvpn/status.log 1
>>>>  log /var/log/openvpn/server.log
>>>>  verb 3
>>>>  mute 10
>>>>  client-config-dir ccd
>>>>
>>>>  --------------
>>>>  radiusplugin.cnf
>>>>  --------------
>>>>  NAS-Identifier=OpenVPN
>>>>  Service-Type=5
>>>>  Framed-Protocol=1
>>>>  NAS-Port-Type=5
>>>>  NAS-IP-Address=127.0.0.1
>>>>  OpenVPNConfig=/etc/openvpn/server.conf
>>>>  Overwriteccfiles=true
>>>>  Acct-Interim-Interval=5
>>>>  server
>>>>  {
>>>>  # The UDP port for radius accounting.
>>>>  acctport=1813
>>>>  # The UDP port for radius authentication.
>>>>  authport=1812
>>>>  # The name or ip address of the radius server.
>>>>  name=68.235.32.11
>>>>  # How many times should the plugin send the if there is no response?
>>>>  retry=1
>>>>  # How long should the plugin wait for a response?
>>>>  wait=1
>>>>  # The shared secret.
>>>>  sharedsecret=fznEBkoaZdcJg5Ve
>>>>  }
>>>>
>>>> _______________________________________________
>>>> Radiusplugin-users mailing list
>>>> address@hidden
>>>> https://lists.nongnu.org/mailman/listinfo/radiusplugin-users
>>
>>
>> _______________________________________________
>> Radiusplugin-users mailing list
>> address@hidden
>> https://lists.nongnu.org/mailman/listinfo/radiusplugin-users
>
> _______________________________________________
> 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]