@TDJ211:
You could run "wc -l /path/to/timestamp/file" to get a count.
Where do I run this? On the CLI in putty? When I did I got "no such file name exists blah, blah, blah"
Is it because it has yet to report an OpenVPN restart yet?
You run that on the command line using putty or through the pfSense web interface. I assume you're putting the full path to wherever you have the timestamp file. When I used the relative path, like in the script I posted, it put the file at /var/log/timestamps.txt (which is not the location I expected). If you're not sure where it is, you can run this to find the absolute path:
find / -name "timestamps.txt"
In light of the above issue, I would recommend editing the script and changing "./timestamps.txt" to "/root/timestamps.txt" or some other absolute path so there is no question as to where it is. I will go back and change what I posted earlier.
If the script hasn't kicked in and restarted your VPN yet, the file won't exist. If you want to see what the file will look like, run this from the command line:```
date "+%Y-%m-%d %H:%M:%S" >> /absolute/path/to/timestamps.txt
That will create the file, insert a timestamp, and then you should be able to run the "wc" command (with absolute path) successfully with a result of 1.
* I'm not sure how much you know about this stuff, so I apologize if the absolute/relative path comments are unnecessary.