OpenVPN logging all traffic
-
My setup is the following :
I have 2 pfSenses in a cluster, running 2 instances of OpenVPN. Everything works perfectly so far.
I want to log all traffic, every start and end of sessions on just one of the instances of OpenVPN.
This instance, that I want logged uses tun L3 Mode and 10.250.1.0/24 network. The goal is to send to a syslog server every transaction happening from 10.250.1.0/24 to 0.0.0.0/0 start and end of session.
I have syslog enabled and I am pushing all the messages to Graylog.
I have no idea how to setup the logging of start and end of all traffic on that particular OpenVPN instance.
Any input is welcome!
Thank you!
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.