TransWikia.com

Snort in KVM machines

Server Fault Asked by Emilio Macias on January 20, 2021

I have installed two physical machines with KVM virtualization using Red hat as OS ( h1 and h2). In h1 I have installed the virtual machines w1 and db1 and in h2 the virtual machines w2 , db1 and ids. The virtual machine ids contain snort as IDS system. After the installation i ran the command:

brctl setageing br0 0

in order to permit snort sniff the network traffic but only is passing the traffic related with the physical machine h2 which is the Host the snort machine but nothing related with machine h1 and their virtual Guests.

Is possible with snort installed in a KVM virtual machine detect the traffic of the rest of machines in the network or only can detect the traffic of the machines sharing the same bridge?

thanks

One Answer

The switch your two physical machines are plugged into will itself be learning what ports to send traffic down so it will have learnt that there's no point sending traffic destined for anything residing on host h1 down the port where host h2 is connected.

Look at configuring a span or mirror port on your switch, this allows you to configure a dedicated port that will receive copies of trafic on other marked ports (the ports connected to h1 & h2). You then need to attach that dedicated port to your ids VM.

Answered by bodgit on January 20, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP