Sample Header Ad - 728x90

How to make a Machine-In-The-Middle with a dual NIC PC in Linux?

1 vote
1 answer
1669 views
I would like to use a Linux PC fitted with two network interface cards as a transparent bridge in order to capture (with wireshark or equivalent) all the traffic in both directions between my router/gateway and my main host (a Windows PC). The following figure illustrates what i'm talking about, my Linux PC will be inserted as a spy or MITM in the link: ![Machine in the middle ][1] Source: wireshark.org I know that using a managed switch with port mirroring is the most common solution for that but i'd prefer to try setting up this one in order to learn. I have already installed CentOS 7 on the spy PC and can I see my two NICs with an ip a command: eno1 and enp1s0. I would appreciate some help for the next steps please, since i'm not so familiar with Linux bridges (if bridging is the solution, you will tell).
Asked by GBo (13 rep)
Nov 14, 2021, 07:22 AM
Last activity: Nov 14, 2021, 02:12 PM