[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Radiusplugin-users] openVPN with freeradius, only updates stats (ac
From: |
Ralf Lübben |
Subject: |
Re: [Radiusplugin-users] openVPN with freeradius, only updates stats (accounting) after client is disconnected. |
Date: |
Fri, 02 Nov 2012 07:16:11 +0100 |
User-agent: |
KMail/4.8.5 (Linux/3.2.0-32-generic-pae; KDE/4.8.5; i686; ; ) |
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