|
|
Manish Gajbhiye escreveu:
> Thanks for your reply . But i get the zero (0) result . For testing purpose
> we are conneced two client to openvpn server . and execute the command.
>
> ----- Original Message -----
> From: "John Chatelle" <johnch@xxxxxxxxxx>
>
>
>> Hello;
>>
>> This works for me...
>>
>> cat /etc/openvpn/openvpn-status.log |grep -E "^10.230"|wc -l
>>
For that command work, you have to configure OpenVPN to maintain the
openvpn-status.log file. Luckly, that's pretty easy. Just get this on
your server conf file:
# save status file each 15 seconds
status /etc/openvpn/openvpn-status.log 15
status-version 2
restart OpenVPN, reconnect your clients and then some cat/grep/wc -l
on that file should do the job.
the exact command provived by John didnt worked for me. I even
tried status-version 1, but didnt work either.
for me, i was something like:
[root@firewall ~]# cat /etc/openvpn/openvpn-status.log | grep
"192.168.100." | wc -l
5
[root@firewall ~]#
192.168.100. is the network my VPN clients receive addresses. Change
to your configurations and you should do it.
--
Atenciosamente / Sincerily,
Leonardo Rodrigues
Solutti Tecnologia
http://www.solutti.com.br
Minha armadilha de SPAM, NÃO mandem email
gertrudes@xxxxxxxxxxxxxx
My SPAMTRAP, do not email it
____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users
|