Community discussions

MikroTik App
 
looka
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Sat Apr 14, 2018 3:33 pm

state-connection "new" not detected

Mon Dec 03, 2018 11:23 am

I'm marking all packets in mangle section to get a decent QoS. One of my mangle rules should detect any new connection:
add action=jump chain=forward connection-state=new jump-target=forward-new
And inside the forward-new chain I mark all connections with different marks.

However, the above rule seems to overlook some valid new connections, including TCP, is there a reason for this?
First, do I even understand correctly that any new connection will have connection-state at least first time when seen by mangle processor?
Or, if it isn't possible, any idea what should I check?
 
User avatar
sebastia
Forum Guru
Forum Guru
Posts: 1782
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: state-connection "new" not detected  [SOLVED]

Mon Dec 03, 2018 11:33 am

Hi

all new connection passing through the firewall will be selected by this rule, as long as these aren't processed somewhere before.

What will not be processed by this rule is all new connections to the firewall itself (chain=input) or originating from the firewall (chain=output)
 
looka
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Sat Apr 14, 2018 3:33 pm

Re: state-connection "new" not detected

Mon Dec 03, 2018 11:53 am

Yes!
I've marked (and eaten) some packets in a rule above mentioned one.
Thanks.

Who is online

Users browsing this forum: No registered users and 60 guests