如何将在eth0传入的所有TCP数据包转移到socks代理和eth1的同一主机?

我有一个三个Ubuntu的Linux主机。 主机1,主机2和主机3.我想通过主机2传递数据从主机1到主机3.但具体而言,我想通过主机2的所有传入stream量到袜子代理,然后到主机3。

host 1 eth0: 192.168.1.10 host 2 eth0: 192.168.1.50 host 3 eth0: 192.168.1.11 

我在所有主机上启用了ip_forward。 在主机1中,我设置了

 route add -net 192.168.0.0/24 gw 192.168.1.50 dev eth0 

在主机2中,

 route add -net 192.168.0.0/24 gw 192.168.1.50 dev eth0 

在主机3中,

 route add -net 192.168.0.0/24 gw 192.168.1.50 dev eth0 

我在主机2中运行redsocks以获取来自主机1的stream量并再次转移到主机3.但数据未达到redsocks。 什么可能是我的问题。 关于这个的任何其他想法。 谢谢,Kumar Raj