I set up an OpenVPN server on my Raspberry Pi running Raspbian and am wondering if there is a log file of security events that I can look at. I'm curious because I want to know if there are login attempts via the now forwarded port that I should be looking at.
Asked
Active
Viewed 634 times
1 Answers
4
The Raspberry Pi OS uses systemd, so you will find logs in its journal. It also contains the logging from the OpenVPN server. Look at it to the current boot with:
rpi ~$ journalctl --boot=0 --pager-end
You can filter it to the service:
rpi ~$ journalctl --boot=0 --unit=openvpn.service

Ingo
- 42,107
- 20
- 85
- 197
systemd-journal
withsudo adduser pi systemd-journal
, logout and login. I don't know how do you setup OpenVPN. Maybe you don't use its systemd services? That's default with installation from the RaspiOS repository. I have tested simple openVPN with static keys and found its output in the journal. – Ingo Aug 16 '20 at 22:36