iasif
I am unable to view the stats for openvpn running on a Raspberry Pi. Here are my log file and Server Config. Please help me out what could cause this.
Here is the openvpn-status.log
OpenVPN CLIENT LIST
Updated,Sat Nov 7 14:56:55 2015
Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since
ROUTING TABLE
Virtual Address,Common Name,Real Address,Last Ref
GLOBAL STATS
Max bcast/mcast queue length,0
END
My openvpn server config is as following,
local 10.1.10.210
dev tun
proto tcp
port 1194
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/CreamPie.crt
key /etc/openvpn/easy-rsa/keys/CreamPie.key
dh /etc/openvpn/easy-rsa/keys/dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig 10.8.0.1 10.8.0.2
push "route 10.8.0.1 255.255.255.255"
push "route 10.8.0.0 255.255.255.0"
push "route 10.1.10.210 255.255.255.0"
push "dhcp-option DNS 8.8.8.8"
push "redirect-gateway def1"
client-to-client
duplicate-cn
keepalive 5 25
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn-status.log 20
log-append /var/log/openvpn.log
verb 4
ste123
I've enabled status on my install to test. My status output looks identical to yours when no clients have connected.
OpenVPN CLIENT LIST
Updated,Tue Nov 10 11:52:15 2015
Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since
ROUTING TABLE
Virtual Address,Common Name,Real Address,Last Ref
GLOBAL STATS
Max bcast/mcast queue length,0
END
When my client connects.
OpenVPN CLIENT LIST
Updated,Tue Nov 10 11:53:57 2015
Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since
client01,x.x.x.x:57551,28126,24707,Tue Nov 10 11:53:26 2015
ROUTING TABLE
Virtual Address,Common Name,Real Address,Last Ref
192.168.2.51C,client01,x.x.x.x:57551,Tue Nov 10 11:53:56 2015
192.168.2.254C,client01,x.x.x.x:57551,Tue Nov 10 11:53:38 2015
192.168.2.0/24,client01,x.x.x.x:57551,Tue Nov 10 11:53:33 2015
172.29.29.6,client01,x.x.x.x:57551,Tue Nov 10 11:53:33 2015
192.168.2.211C,client01,x.x.x.x:57551,Tue Nov 10 11:53:53 2015
GLOBAL STATS
Max bcast/mcast queue length,0
END
Can you confirm clients are currently connected at the time the stats were updated, or they have connected recently? Mine took up to 5 minutes before it completely cleared after I told the VPN client to disconnect.