Good question, I would personally prefer thall all logs be stored on my USB stick plugged in my router.
#!/bin/sh
killall syslogd
rm /tmp/syslog.log
syslogd -O /mnt/Router/syslogs/syslog.log -s 256 -l 7
ln -s /mnt/Router/syslogs/syslog.log /tmp/syslog.log
I'll update in case someone has the same question. Copy this and name it post-mount, put it in /jffs/scripts and chmod +x to make it executable. Also might want to use notepad++ and save as unix file or use the now embedded nano editor to make sure it saves in compatible format:
Code:#!/bin/sh killall syslogd rm /tmp/syslog.log syslogd -O /mnt/Router/syslogs/syslog.log -s 256 -l 7
Last line is usb, change as appropriate for your location. -s is the file size before rotation and -l is the verbosity. The -b option for # of logs doesn't allow for more than one, it seems. And unfortunately you won't see the syslog in the GUI but you can add:
Code:ln -s /mnt/Router/syslogs/syslog.log /tmp/syslog.log
This thread was of help. Sorry to bump this thread again, thought it might be helpful to someone else.
Please, did you manage to install it? It works also for port 21 FTP? Many thanks!It looks like python 3.5.1-4 is available.
"This package contains the (almost) full Python install. It's python3-light + all other packages."
Fail2ban just requires > 2.6
Then it seems to be just a matter of downloading the tarball and installing it.
"The code has been completely rewritten since 0.6.x. Fail2ban is entirely written in Python and thus should work on most of the *nix systems."
I think I'll give it a go.
Nothing has changed.Have the situation changed since then? Could we have firewall logs saved to USB natively or only via script?
The firmware already supports logging to a remote syslog server. So that's another option.So maybe Merlin can add this feature into future releases?
The implementation could be quite similar to traffic stats logs.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!