Iptables -gw parameter

Posted by schoen on Server Fault See other posts from Server Fault or by schoen
Published on 2012-12-12T02:05:41Z Indexed on 2012/12/12 5:06 UTC
Read the original article Hit count: 500

Filed under:
|
|
|
|

I want to copy tcp traffic. i want to use these commands

 "  iptables -A PREROUTING -t mangle -p tcp --dport 7 -j ROUTE --gw 1.2.3.4 --tee
 iptables -A POSTROUTING -t mangle -p tcp --sport 7 -j ROUTE --gw 1.2.3.4 --tee"

like stated here http://stackoverflow.com/questions/7247668/duplicate-tcp-traffic-with-a-proxy

but iptables keeps telling me "iptables v1.4.8: unknown option '--gw'"

What can I do to fix this?

With Kind Regards

© Server Fault or respective owner

Related posts about linux

Related posts about debian