-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
asterisk #2
Comments
I don't have any experience with asterisk. ban2fail searches for patterns in log files when they change using the regular expression facility found in glibc. |
It work, but have problem with timestamp... ill try solve then put here LOGTYPE asterisk { DIR= /var/log/asterisk TIMESTAMP asterisk_ts { TARGET worm { } |
Without a sample matching line from the log file, I can't pinpoint your problem. One easy way to debug the REGEX's is to use the built-in bash REGEX facility like so: LOG_LINE='Dec 4 12:57:28 srv dovecot: pop3-login: Aborted login (auth failed, 1 attempts in 0 secs): user=, rip=69.64.58.110, lip=1.2.3.4, session=<IRLNi+SYwsJFQDpu>' Result> Dec 4 12:57:28 As for the STRPTIME format specification, you can either write a C program to test your string, or maybe a website like this: http://www.strfti.me Good luck! |
I forget put a sample of log line, sorry. LOG LINE: This regex: This regex: So i make this config:
System work, block ips, but when got error in date . Please, if you can, check when you have a time. |
There isn't much I can do without the error messages from ban2fail. I'm a software engineer, not a psychic ;-) |
can u provide example for use with asterisk?
The text was updated successfully, but these errors were encountered: