Openvpn logging (too many MANAGEMENT entries)
-
Hi,
I'm running openvpn which works pretty flawless but when I try to see who logged in via openvpn the last days I only get tons of the following messages:
Jun 7 22:53:35 openvpn[23291]: MANAGEMENT: Client connected from /var/etc/openvpn/server1.sock Jun 7 22:53:35 openvpn[23291]: MANAGEMENT: CMD 'status 2' Jun 7 22:53:35 openvpn[23291]: MANAGEMENT: CMD 'quit' Jun 7 22:53:35 openvpn[23291]: MANAGEMENT: Client disconnected
"Verbosity level" is still the recommended "3"
I've seen https://forum.pfsense.org/index.php?topic=70835.0 but I don't know where to look in my 2.2 installation. Is it recommended to turn down the verb to "2" or do I have to live with those messages when I want verb=3?
As far as I understood the logging of pfsense there is no way to "get me a management list of users that used openvpn and show me when they connected and when they disconnected in the last 7 days"
Is remote-syslog the only option to achieve this?Thanks a bunch!
Best regards
Thomas -
Remote logging is the only way to get it currently.
Eventually we may have a hook in the OpenVPN auth script to log it elsewhere or do something else with the event.As for the management log entries, those would only happen with a higher Verbosity. Are you sure you don't have an advanced option entry with a higher verb number?
Check the full generated config file in /var/etc/openvpn/ for that server.
-
thanks for the hint.
I don't find anything regarding advanced setting for logging. Would that be the advanced textbox on the openvpn settings page? (vpn_openvpn_server.php?act=edit&id=0)
That is empty.I checked the conf in /var/etc and there is:
[2.2.2-RELEASE][admin@pfSense.localdomain]/root: grep verb /var/etc/openvpn/server1.conf verb 3
perhaps I overlook something? (still pfsense noob)