I am trying to set up a Snort IDS on a virtual machine for my lab. My problem is that normally, these kinds of IDS are connected to the mirrored port of a switch. My lab has no such device. Here is my topology:

[Internet]->[Linux Firewall+NAT]->[Local Subnets]

I would like to connect my Snort VM (conected to my subnet) to my Linux Firewall, is there a way, using IPTABLES or something alike, that I can achieve this?

(It might not be possible since we want to listen to Trasport Layer frames...)

Or would it be possible to collect data on my firewall and have my Snort VM analyse it remotely?

What are my options here?

Thank you for sharing you knowledge!


Run snort on the Linux Firewall. You can use the VM to run MySQL and configure snort to log to it like so:

output database: log, mysql, user=snort password=snortpass dbname=snort host=mysql.host
  • Could I run BASE (Or any frontend) on this MySQL server? Or it is going to have to be on the firewall directly also? – m6a-uds Mar 5 '13 at 1:11
  • Yes, run BASE inside on the VM. Ideally you'd have a separate VLAN for this but it sounds like its not possible in your environment. – dmourati Mar 5 '13 at 3:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.