|
Post by ZF on Dec 8, 2012 7:33:48 GMT -5
iptables -A PREROUTING -t mangle -j ROUTE --gw <repository address> --tee iptables -A POSTROUTING -t mangle -j ROUTE --gw <repository address> --tee
Alternatively, to selectively mirror: Traffic to target: iptables -A PREROUTING -t mangle -d <target> -j ROUTE --gw <repo> --tee iptables -A POSTROUTING -t mangle -d <target> -j ROUTE --gw <repo> --tee Traffic from target: iptables -A PREROUTING -t mangle -s <target> -j ROUTE --gw <repo> --tee iptables -A POSTROUTING -t mangle -s <target> -j ROUTE --gw <repo> --tee
On target machine: tcpdump -i <interface> -s 65535 -w <some-file>
|
|
|
Post by ZF on Jan 15, 2013 10:40:05 GMT -5
|
|