The IP datagram is received . (1)
If the datagram is for this machine, it is processed locally . (2)
Forward (3)
Datagrams from local processes are sent to the routing
software for forwarding to the appropriate interface. (4)
The IP datagram is transmitted . (5)
Input rule is applied at flow 2.
Output rule is applied at flow 4.