Packet Flow

Packet Flow

Forwarding(from one network interface to another) #

  1. mangle:PREROUTING
  2. nat:PREROUTING
  3. mangle:FORWARD
  4. filter:FORWARD
  5. mangle:POSTROUTING
  6. nat:POSTROUTING

Input(from a network interface to a local process) #

  1. mangle:PREROUTING
  2. nat:PREROUTING
  3. mangle:INPUT
  4. filter:INPUT

Output(from a local process to a network interface) #

  1. mangle:OUTPUT
  2. nat:OUTPUT
  3. filter:OUTPUT
  4. mangle:POSTROUTING
  5. nat:POSTROUTING

Local(from a local process to another local process) #

  1. mangle:OUTPUT
  2. nat:OUTPUT
  3. filter:OUTPUT
  4. filter:INPUT
  5. mangle:INPUT