Community discussions

MikroTik App
 
Pilgrim
Member Candidate
Member Candidate
Topic Author
Posts: 265
Joined: Sun Mar 30, 2008 1:04 pm

Clarification regarding packet flow

Wed Oct 01, 2008 12:00 am

I am trying to understand the packet flow diagram in the ref. manual.

After prerouting the package reach a decision point where it goes either to the input chain or the forward chain.

I read in the section "filtering" that the decison is based upon wether the package is addresses to IP belonging to one of the routers input interfaces - or not. And here is the point where I am getting really confused and I hope you can bring me out of my misery.

How would a package end up at the doorstep of my router if it is not addressed to an IP beloning to any of the interfaces of my router? is that related to e.g. a PC on my LAN trying to send a package to an external inter IP/URL i.e. an outgoing packet from a LAN PC addressed to an internet address is processed through the forward chain?

Any way just to test it I entered a filter rule in the forward chain to drop everything. This caused almost all traffic to stop and if above is true then the reason be that all traffic from my LAN to the internet was blocked - is that so? or was the inbound traffic blocked.


How is it with traffic initiated from inside and statefully controlled. Will return inbound traffic be processed through the input - or the forward chain.

Guy's - This keeps me awake at night and your comments and help will be sincerely appriciated.

Best regards, Pilgrim
 
Diganet
Member
Member
Posts: 342
Joined: Sun Oct 30, 2005 9:30 pm
Location: Denmark
Contact:

Re: Clarification regarding packet flow

Wed Oct 01, 2008 9:29 pm

I am trying to understand the packet flow diagram in the ref. manual.

After prerouting the package reach a decision point where it goes either to the input chain or the forward chain.

I read in the section "filtering" that the decison is based upon wether the package is addresses to IP belonging to one of the routers input interfaces - or not. And here is the point where I am getting really confused and I hope you can bring me out of my misery.

How would a package end up at the doorstep of my router if it is not addressed to an IP beloning to any of the interfaces of my router? is that related to e.g. a PC on my LAN trying to send a package to an external inter IP/URL i.e. an outgoing packet from a LAN PC addressed to an internet address is processed through the forward chain?

Any way just to test it I entered a filter rule in the forward chain to drop everything. This caused almost all traffic to stop and if above is true then the reason be that all traffic from my LAN to the internet was blocked - is that so? or was the inbound traffic blocked.


How is it with traffic initiated from inside and statefully controlled. Will return inbound traffic be processed through the input - or the forward chain.

Guy's - This keeps me awake at night and your comments and help will be sincerely appriciated.

Best regards, Pilgrim
It can be hard, a good idea would be setting up rules like the one you just tried, and look at the counter of the rule. If the rule have been used the counter increases,

Input chain is traffic directed at the router, like a telnet or http directly to any of the routers IP.
Forward chain is traffic going out of the router, like an inbound NAT rule where the router forwards traffic to an internal host or traffic going out through a NAT. When making rules it is important to look at where the traffic is coming from and specify inbound or outbound interfaces.

Hope it helped

Regards

/Henrik
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26385
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Clarification regarding packet flow

Thu Oct 02, 2008 9:58 am

this presentation is about packet flow: http://tiktube.com/?video=105
 
apikson
just joined
Posts: 4
Joined: Fri Mar 22, 2013 4:30 pm

Re: Clarification regarding packet flow

Tue Feb 11, 2014 4:32 pm

this presentation is about packet flow: http://tiktube.com/?video=105
Hello Normis, can you give me new link for that's presentation about Packet Flow...
Thanks before...
 
TikUser
newbie
Posts: 48
Joined: Thu Jul 04, 2013 2:40 pm
Location: EU

Re: Clarification regarding packet flow

Wed Feb 12, 2014 1:07 am

As a starting point, see here. Simple Packet Flow for ROSv5 is on page 16 & for ROSv6 is on page 17. The video can be found on TikTube(HR13: QoS on RouterOS v6).
These video presentations also include explanations about packet flow, QoS, simple queues, queue tree, mangling & other:
MUM US09: QoS by Janis Megis
MUM CZ 09: QoS
MUM US11: QoS workshop
 
apikson
just joined
Posts: 4
Joined: Fri Mar 22, 2013 4:30 pm

Re: Clarification regarding packet flow

Wed Feb 12, 2014 5:05 am

Thankyou very much for your quickly answer...

Who is online

Users browsing this forum: alibloke and 111 guests