PPTP/PPPoE/L2TP VPN logs missing
The PPP log migration I believe targeted the PPTP logs as well. Regressions:
1) It's not logging PPTP at all that I can find at least.
2) Those need to be returned to their own log, as they'll otherwise frequently get buried in a flood of PPPoE or PPP logs.
3) the PPTP log tab needs to come back, as it wasn't a simple text log display, and is effectively the status screen for PPTP as much as one exists.
Show login/logout events for pptp, pppoe server, and l2tp. Could use some work to simplify. Ticket #912.
Switch from buttons to tabs, add a mode to view raw mpd logs for each vpn type, and some general cleanup. Fixes #912
#3 Updated by Jim Pingle over 8 years ago
- Subject changed from PPTP logs missing to PPTP/PPPoE/L2TP VPN logs missing
I tracked this down a bit more somewhat by accident.
It seems that the GUI log viewer is looking at /var/log/(vpn type).log, but that is where mpd is writing the logs with all of its information. In the link up and link down scripts, it writes the login and logout events to /var/log/vpn.log - but this log is missing the type of service being logged into or out of.
The GUI will not see the login/logout events because the logs it's looking at are full of mpd info and not what it's expecting to parse, and it can't differentiate the data in the other file even if that were changed.
The way forward would seem to be that the linkup/linkdown scripts for pptp/l2pt/pppoe need adjusted to include their service type in the vpn log, and then the GUI page needs adjusted to (a) use vpn.log to show login/logout info, and (b) have some way to display the raw mpd log for each service.