Fix direction, and add ping filtering to output chain.