Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 12-11-2009, 04:00 PM   #1
LQ Newbie
Registered: Oct 2007
Posts: 6

Rep: Reputation: 0
Linux based filtering tap for IDS

I am looking for help on building a Linux based filtering tap for my IDS implementation. I would love to purchase a hardware driven filtering tap but they are too expensive so I know want to try and build a Linux box that can do the same thing.

The idea is to have a network tap or span port connected to the server and then the server will filter and/or redirect the mirrored traffic to the appropriate tool. This will help me control what tools see what traffic.

The traffic from user 1 would be forwarded out the interfaces connected to tool1 and tool3. User2 would be forwarded to tool2, user3 would be forwarded to tool3 and user4's traffic would just be dropped. The interfaces on the tool servers would be configured to listen only would not do any routing of traffic back to the users, this is strictly to copy the data and pass it to my tools.

Here is the basic idea in test/image form

User1 User4 User2 User3
| | | |
| | | |
| | | |
--------Corporate Switch---------
| |
| Linux Filtering
| | | |
Router Tool1 Tool2 Tool3
User1 User2 User 1 &

Last edited by aarondcounts; 12-11-2009 at 04:06 PM.
Old 12-11-2009, 04:11 PM   #2
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 164Reputation: 164
I don't see any particular reason why this couldn't be accomplished with iptables and a decent router. That being said you've not really asked any specific question that someone can answer other than "is it possible?"
Old 12-13-2009, 07:08 AM   #3
Registered: Dec 2002
Posts: 304

Rep: Reputation: 86
I'd check out DaemonLogger, and maybe Linux Interface Bonding and other pages on that site. The problem with not purchasing a tap is that you will add a single point of failure if your monitoring box is inline. Real taps will continue to pass traffic even if they aren't powered on.
1 members found this post helpful.
Old 12-14-2009, 02:54 PM   #4
LQ Newbie
Registered: Oct 2007
Posts: 6

Original Poster
Rep: Reputation: 0
The idea is to use a tap to mirror the data to the Linux server. Then the Linux server would use iptables to filter the traffic and forward it out additional interfaces to the appropriate servers that are connected via cross-over cables. The IDS servers will then have a promiscuous port to listen to the traffic. What would an example config be for this type of configuration on the Linux server? I currently do not have a config started.
Old 12-16-2009, 12:37 PM   #5
LQ Newbie
Registered: Oct 2007
Posts: 6

Original Poster
Rep: Reputation: 0
can someone help me with this exact command?

forward source interface (eth5) source address/network ( to destination interface (eth3) so that the traffic will be forwarded to my IDS server directly connected to eth3 via crossover


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
User based ip filtering? Balakrishnan84 Linux - Security 12 08-06-2007 01:53 AM
A host based IDS rojoraider82 Linux - Software 4 12-15-2006 05:25 AM
String based filtering jacobm Linux - Security 2 01-07-2006 06:48 AM
host based IDS in distributed setting nedianz Linux - Security 3 07-22-2005 09:58 AM
Host-Based IDS... Linux~Powered Linux - Security 1 03-18-2004 04:58 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:27 AM.

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