Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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!

share|improve this question
up vote 0 down vote accepted

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
share|improve this answer
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 posting your answer, you agree to the privacy policy and terms of service.

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