Community discussions

MikroTik App
 
andre_i
just joined
Topic Author
Posts: 6
Joined: Tue Dec 11, 2007 12:51 pm

why mark conn then mark packet?

Wed Feb 06, 2008 12:48 pm

Dear All,
I have been using mikrotik for sometime, but something is bugging me.
Without it, my rules run well.
Why we have to mark the connection then mark the packet based on connection?
What if I dont do it, means just mark the packet?
Maybe someone can point me to an introduction to mark thing. :D

Thank you.
Regards,
Andre
 
User avatar
Equis
Forum Veteran
Forum Veteran
Posts: 886
Joined: Mon Jun 06, 2005 6:48 am

Re: why mark conn then mark packet?

Wed Feb 06, 2008 11:49 pm

I "think" marking connection will also marl ack packects etc, not just the packets in your rule
 
EgyCom
Member Candidate
Member Candidate
Posts: 123
Joined: Thu May 31, 2007 9:47 pm

Re: why mark conn then mark packet?

Thu Feb 07, 2008 2:23 am

You can just mark packets

without the connection tracking - no connection marks, router will compare each packet to a given conditions (very slow).
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: why mark conn then mark packet?

Thu Feb 07, 2008 5:08 am

also, think about ftp, tftp, sip, etc ... they start on one port and then switch to another. using connection-marking will also grab those additional packets and consider them a related connection that otherwise couldnt be identified.
 
valens
Trainer
Trainer
Posts: 244
Joined: Tue Jun 01, 2004 5:42 pm
Location: INDONESIA
Contact:

Re: why mark conn then mark packet?

Sat Feb 09, 2008 8:04 am

If you want to do mark for source or destination IP Address, and you don't have any NAT on your firewall, you don't have to use Conn-Mark. You can do it with Packet Mark.

If you want to mark protocol and port, it's better you use Conn-Mark first, as after handshaking, the port number will change. We use conn-mark to detect each connection so the port changing will not effect the result.

If you are using src-nat in prerouting you can not mark destination local IP address, as in prerouting the destination is still public ip address and have not translated to the local IP Address.