I know there's some topics about forcing local IP trafic of a Linux machine to go through the LAN (over the network where a WireShark is captuting trafic) but all solutions implies IP address modification.
Now my setup :
- A Linux PC with one interface with two IPs : 192.168.1.2 and 192.168.1.3
- A server that listen on 192.168.1.2
- A client (bind on 192.168.1.3) that connect to 192.168.1.2
My question is : Is it possible to force Linux Kernel to let the IP packets go throuh the network (a switch + a PC with Wireshark) WITHOUT changing IP address and ports so WireShark will see 192.168.1.2 and 192.168.1.3 as src and destination (and vice versa) ?
Like I said I found some answers with IP changes here: Force local TCP packets over network segment for capture and another one here : Force local IP traffic to an external interface
Maybe it's impossible at all without driver or kernel modification ? I'm a C programmer so if I have to seek in kernel modifications it may be a possible solution (after I get used to kernel programming...so time consumming)
Thanks in advance network gurus :)