I need to route packets from some processes(unique pids/uids) to desired network connection.
So, Suppose we have 4 processes with pids 10, 11, 12, 13 respectively; and we have two network connections eth0, eth1.
How can we make sure that the packets from process ids 10 & 11 are routed through eth0 while packets from process ids 12 & 13 are routed through eth1 ?