I want to monitor my OpenVPN clients to see when they are connected\disconnect in order to get some statistics
so I thought I will create a logging and send connected\disconnected messages - then I will do the math .
So I want to save only this messages:
Code: Select all
09:50:31 ovpn,info <ovpn-test>: disconnected
09:53:30 ovpn,info <ovpn-test>: connected
did I understand it correct?
Code: Select all
/system logging action
add name=openvpn target=memory
/system logging
add action=openvpn prefix=info topics=ovpn,!packet,!account,!debug