I have two computers on the same lan
Comp A: 192.1681.151.15 Comp B: 192.1681.151.19
When I open Wireshark, for all traffic browsed on comp A, I would like Wireshark to capture traffic of comp A and destination address as the one to the server it is connecting too.
I have tried to understand iptables and other related questions, but somehow I still configure this wrongly.
Edit: I use the following iptable rules on comp B
iptables -t nat -A PREROUTING -p tcp --dport 443 -j DNAT --to-destination 192.168.151.19:443 iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 192.168.151.19:80 iptables -t nat -A POSTROUTING -j MASQUERADE
How to correctly forward traffic from one computer to another ?. Both machines are connected to the Internet on the same lan.