Community discussions

 
titius
Member
Member
Topic Author
Posts: 338
Joined: Mon Oct 17, 2005 11:43 am
Location: Titel Serbia

order of mangle rules ?

Sun Sep 30, 2007 10:49 am

Hi

Which is the right order of mangle rules.
Specifically for conn mark and packet mark.

Do I have to place ALL Connection Mark first, and then Packet Mark.

Or I have to place it like, one Connection Markthen one Packet mark for that conection and so on . . .

Or it depend which chain Im using.

Forward, preroutin postrouting.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8319
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: order of mangle rules ?

Mon Oct 01, 2007 1:47 am

it does not matter
you can first mark all connections, then mark each connections' packets, or you can mark connections1, then it's packets, then connections2, then connections2's packets and so on. as you like
 
titius
Member
Member
Topic Author
Posts: 338
Joined: Mon Oct 17, 2005 11:43 am
Location: Titel Serbia

Re: order of mangle rules ?

Mon Oct 01, 2007 8:40 pm

Thanks for answer,

Whem Im in preroutin chain, marking all connections first and then their packets doesnt work, it works only in forward chain, or am I doing something wrong :)
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8319
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: order of mangle rules ?

Tue Oct 02, 2007 1:38 am

titius, I do marking in prerouting, all works fine. Post here the result of
ip firewall mangle print
 
titius
Member
Member
Topic Author
Posts: 338
Joined: Mon Oct 17, 2005 11:43 am
Location: Titel Serbia

Re: order of mangle rules ?

Tue Oct 02, 2007 11:04 pm

it works fine I was a little bit confused :( .

Who is online

Users browsing this forum: MSN [Bot] and 116 guests