Scenario: Trying to figure out why one ipsec setup is not working:
Looking in Logs>SystemLogs>IPSec. I believe newest entries are at bottom (timestamped at left). Is there a way to flush this log? Is there a way to go to bottom (most recent). Mine currently has over 7000 entries and trying to scroll down to bottom is ridiculous. The << >> buttons at top right do nothing. Exporting does not purge either. I have to click ‘newer’ about 140+ times to get to bottom. Also clicking ‘newer’ when below table would be nicer if it didn’t go back to the top of the list each time whereby I have to move the scroll bar back to the bottom again to see where I am at.
You can bring the most recent to the top. Go to Logs>Log Settings and select Sort in reverse chronological order
You can also change the number of liners per page that is shown. Default value is 150. you could change that to a lower value or a higher value as you desired.
No but it does give you a single page list on a browser page for the selected date or all the days of a selected month depending on your date selection.
You can then search with the browser tools to find what you want or the time you want etc.
You can also copy and past it into a spreadsheet tool to do more complicated manipulations of the log text.
If you click last it will take you to the last page, which will be the newest data if you have the sorting by chronological order.
I don’t run ipsec, but from the command line you can follow the logs with something like tail -f /var/log/messages | grep charon. You can also just look at the end lines of a log with grep charon /var/log/messages | tail -n 200 for the last 200 lines. Adjust the command to the correct log file and for the number of lines you want.
Yes I know these commands, but I am not at the console, nor do I have putty enabled. I am working from the gui since that is the easiest place to set up an ipsec net to net tunnel.
There is no “last” on this page
I did find the sort option under the “Log Settings” page ![]()
Ah sorry. I don’t have IPSec running on my production or test system yet, so I just looked at the Firewall Logs entry under Logs and that does have the Last and First settings but it looks like none of the System Logs entries has those options.
Maybe one of the forum members will volunteer to step forward and create a patch submission to add those options to the System Logs entries.
Wish I was more familiar with ipfire and I would volunteer myself. I have been writing code for 40+ years now starting with Fortran on Univac to Macro11 & C on DEC PDP and VAX computers, to Assembly & C on Xenix systems, all the way to current systems coding in C++ & Python… but don’t have a clue where to start with something like ipFire. Couldn’t even tell you what it is written in. Am just one of those end users who appreciate that it works. ![]()