radiusplugin-users
[Top][All Lists]
Advanced

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

[Radiusplugin-users] openVPN with freeradius, only updates stats (accoun


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

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
 }



reply via email to

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