Community discussions

MikroTik App
 
crussell_1969
just joined
Topic Author
Posts: 21
Joined: Wed Apr 20, 2005 5:16 pm

Logging firewall messages

Wed Jul 09, 2008 1:03 am

I've been playing with the logging on a routeros based router/firewall and I can't seem to get any of the rejects to log. I'd like to log any reject messages to an external syslog server for analysis for a specific client. Anyway to do this? I've turned on firewall, system, error, critical as well as several others and nothing gets sent to the log. The only thing that ever shows up is messages on the console for incorrect logins.

Any ideas?

Thanks,

Craig Russell
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Logging firewall messages

Wed Jul 09, 2008 11:43 am

you should add firewall rule with action = log - and it will be logged

e.g.

add chain=input rc-address=1.2.3.4 action=log
add chain=input rc-address=1.2.3.4 action=reject