Community discussions

MikroTik App
 
randyloveless
Member Candidate
Member Candidate
Topic Author
Posts: 207
Joined: Thu Sep 30, 2004 10:14 am
Location: california
Contact:

action=log

Wed May 11, 2005 11:58 am

how do i add action log and another function like passthru

in 2.8 you would /ip firewall rule input add action=drop log=yes \
comment="Log and drop everything else"

in 2.9 you /ip firewall filter add chain=input action=drop comment="Log and drop everything else"

but i want to log this as well . i put a rule in like this to catch all just before the drop rule

/ip firewall filter add chain=input action=log comment="Log everything else"

but would like to log . or is this the wrong way to log items?/

Randy
 
edzix
Member
Member
Posts: 333
Joined: Thu Jul 01, 2004 3:01 pm
Location: Latvia

Wed May 11, 2005 3:25 pm

you should add separate rule with an action=log.

Edgars
 
randyloveless
Member Candidate
Member Candidate
Topic Author
Posts: 207
Joined: Thu Sep 30, 2004 10:14 am
Location: california
Contact:

Thu May 12, 2005 12:01 am

thank
 
randyloveless
Member Candidate
Member Candidate
Topic Author
Posts: 207
Joined: Thu Sep 30, 2004 10:14 am
Location: california
Contact:

Thu May 12, 2005 1:21 am

so do add log after drop . will this log the
ip firewall filter add chain=input action=drop comment="Log everything else"
ip firewall filter add chain=input action=log comment="Log everything else"


how is this specificing just action=drop to be loged?

Randy
 
jarosoup
Long time Member
Long time Member
Posts: 596
Joined: Sun Aug 22, 2004 9:02 am

Thu May 12, 2005 5:25 am

I would think you would want the action=log first as if it drops first, the log rule may not get applied...at least it used to be that way and is so with iptables.