LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-02-2005, 02:41 PM   #1
hywaydave
Member
 
Registered: Dec 2004
Location: Omaha, NE
Distribution: RH9
Posts: 31

Rep: Reputation: 15
Best location for Snort?


I'm going to have a Snort machine on my network but not sure where the best place for it is. I have a couple of web servers on my LAN side that are only open to the Internet on the port that httpd is listening on. Should I place Snort on my LAN or should I place it in front of my Linksys firewall between it and my cable modem. Any help is greatly appreciated, thanks!

Dave
 
Old 05-02-2005, 04:41 PM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Depends on what you are most concerned about. If external threats more of a concern, then you'd want the sensor to be outside the firewall. If your more concerned about internal hosts getting compromised and creating havok on your network, then an internal sensor would be ideal. If you need to monitor both, then put a second NIC in the snort sensor and put ethertaps on both the external and internal networks. If that isn't an option, then personally I'd go with a putting the sensor outside the LAN so that you can monitor more of the traffic (including that going to the firewall box).
 
Old 05-03-2005, 01:30 PM   #3
hywaydave
Member
 
Registered: Dec 2004
Location: Omaha, NE
Distribution: RH9
Posts: 31

Original Poster
Rep: Reputation: 15
But aren't there all kinds of traffic coming into my modem from the Internet all the time, only to be blocked by my firewall? Wouldn't my snort box be practically logging everything out there? I would still be unsure if one of my internal machines became compromised. Maybe I should just keep it on the internal side to be sure that nothing is compromised. Any thoughts?
 
Old 05-03-2005, 04:46 PM   #4
jerky
Member
 
Registered: Jul 2003
Distribution: RH 7.3 , RH9,RHEL,FC
Posts: 38

Rep: Reputation: 15
Where to place snort

Id suggest having Snort between your Primary Firewall / router and your screened subnet. In this scenerio the only traffic that should be accepted to your screened subnet is the destination port of the service port. You can set Snort host as being a transparent bridge or as just a simple IP forwarding router. This of course gives your network a single point of failure, where as locating it on the Lan would render mostly the same results but may miss some, but Snort will give you false positives/negatives anyways.

Ideally you would have

Packet FIlter Firewall -----> Stateful packet inspection firewall --> Snort IDS or Snort-Inline ---> Screened subnet.
(cisco router or linux) (properly written stateful rules) (Snort IDS/IPS ) ( mail / webserver )


By minimizing the amount of traffic that actually gets to the Snort box is ideal as snort can become extremely CPU intensive and fill up log files easily if you were to leave it plugged directly into the external address without a proper firewall it will see way to many things to properly identify whats actually getting to your screened subnet.
 
Old 05-03-2005, 07:04 PM   #5
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
I figured we'd see multiple opinions on this...

Take a look at the Snort FAQ on this, as it has a discussion on the various pros and cons of this. Personally I don't think there is any one "right" answer, but is really going to depend on your policy as well as personal preference. If you put the sensor inside the network, you'll certainly get alot less alerts, but I'm of the opinion that it tends to give you a false sense of security plus you're implicitly trusting the integrity of your firewall box. I'd rather have the sensor outside and see as much of the traffic as possible. The tradeoff is that you have to fine-tune your snort rules otherwise you'll get a lot of false positives. If none of that is really important to you, then putting it inside your firewall somewhere would probably be best for you.

That being said, unless I was running snort-inline, I would be hesitant to put the sensor anywhere on your network where a failure or DoS against Snort itself would take down your entire network. I'd recommend using a hub (make sure it's not a switch) or mirroring the traffic to the sensor somehow.
 
Old 05-04-2005, 08:16 AM   #6
hywaydave
Member
 
Registered: Dec 2004
Location: Omaha, NE
Distribution: RH9
Posts: 31

Original Poster
Rep: Reputation: 15
Thanks.

I was planning on having it set up like this...


[firewall]---------[hub]---------[switch]--------[personal PC]

I would have snort connected to the hub, and my web servers and personal PC connected to the switch. I think this would be ideal because snort will catch all the traffic going through the hub.

I'll have to look into the Snort-Inline thing, I've only read about the IDS part.

Last edited by hywaydave; 05-04-2005 at 08:19 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error when starting up snort: bash:!/bin/sh/usr/local/bin/snort :Eent not found cynthia_thomas Linux - Software 1 11-11-2005 02:59 PM
Snort It Up metallica1973 Linux - Security 1 08-17-2005 11:33 AM
apache: location in location eantoranz Linux - Networking 2 08-08-2005 09:37 PM
snort failed: snort: symbol lookup error: undefined symbol: usmAES192PrivProtocol Emmanuel_uk Linux - Security 1 07-10-2005 10:29 AM
snort snort.conf help crealkiller175 Linux - Software 1 03-08-2003 05:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration