Linux Netfilter discussions
 help / color / mirror / Atom feed
* Re: Can IPTABLES be used to send alerts!
@ 2003-08-27 14:10 dir
  2003-08-27 15:35 ` Ramin Dousti
  2003-08-28  2:28 ` ads nat
  0 siblings, 2 replies; 8+ messages in thread
From: dir @ 2003-08-27 14:10 UTC (permalink / raw)
  To: Deshwal Chand; +Cc: Netfilter (E-mail)

Yes, this would be pretty straightforward to do if you are a C developer.

You can use the QUEUE target to queue all HTTP traffic to userland.  You 
would then build a userland program to monitor packets for a set of suspect 
keywords.

This approach wouldn't be bullet-proof because the HTTP traffic will be 
fragmented to the MTU size, but it would probably catch 99% of the keywords 
you care about.  With a little more code, you could demux the TCP traffic to 
rebuild the entire TCP stream, thereby making it 100%, but that's a lot more 
effort for little return IMO.

Regards, dir

> HI,
> 
> I don't know whether this is the right place to raise this post.
> 
> I am using IPTABLES and Squid. I want to monitor all the traffic going out
> of this box. Suppose someone sends his/her CV from our network using his/her
> Yahoo or Hotmail account, then I may get an alert.
> 
> Can IPTABLES do this by using some addones!!
> 
> Pls. pardon me if i am being wrong in posting this question on this list.



^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: Can IPTABLES be used to send alerts!
@ 2003-08-28  4:12 Deshwal Chand
  0 siblings, 0 replies; 8+ messages in thread
From: Deshwal Chand @ 2003-08-28  4:12 UTC (permalink / raw)
  To: 'Jim Carter'; +Cc: Netfilter (E-mail)

[-- Attachment #1: Type: text/plain, Size: 2465 bytes --]

Jim,

you r fair enough in raising the legal and ethical point. I gave a wrong
example. We do not intent to monitor the CVs or people looking for better
jobs. We are a company who work on high security geographical data for
clients. We have got people to sign the confidentiality agreements as well. 

The e-mail server and LAN have been secured enough. The only thing that we
intend to stop is the information about data. Even few text lines for us can
be costly.


Best Regards,

Chand

-----Original Message-----
From: Jim Carter [mailto:jimc@math.ucla.edu]
Sent: Wednesday, August 27, 2003 11:13 PM
To: Deshwal Chand
Cc: Netfilter (E-mail)
Subject: Re: Can IPTABLES be used to send alerts!


On Wed, 27 Aug 2003, Deshwal Chand wrote:
> I am using IPTABLES and Squid. I want to monitor all the traffic going out
> of this box. Suppose someone sends his/her CV from our network using
his/her
> Yahoo or Hotmail account, then I may get an alert.

Another person pointed out that you could make a copy of your datastream,
using iptables facilities, and feed it to a program that you write, which
would do the analysis.  But actually analysing the data would be very hard,
since you would have to understand meaning and intent, not just trigger on
text strings.

In American custom and law, monitoring users' content is not proper
behavior.  At UCLA there is a specific regulation that would forbid it at
my site.  Commercial web hosts such as msn.com have rules forbidding
pornographic, defamatory, illegal, etc. postings, but in the USA the custom
is that the host has to wait until someone claims to have been harmed by
the posting, before taking action.  A few years ago, aol.com got proactive
about editing postings that criticized AOL, and they were severely flamed
for it.

I don't know the situation in Indian and British law, but you should
definitely consult a lawyer, as well as a spiritual advisor who can give
you guidance in proper behavior according to Indian custom, before
snooping on users to detect people trying to get a better job elsewhere.
If I were interviewing a new programmer and he/she said he left his
previous job because the employer was snooping on him, I would consider
that a sufficient reason to leave the job.

James F. Carter          Voice 310 825 2897    FAX 310 206 6673
UCLA-Mathnet;  6115 MSA; 405 Hilgard Ave.; Los Angeles, CA, USA  90095-1555
Email: jimc@math.ucla.edu    http://www.math.ucla.edu/~jimc (q.v. for PGP
key)

[-- Attachment #2: Type: text/html, Size: 4010 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Can IPTABLES be used to send alerts!
@ 2003-08-27  8:56 Deshwal Chand
  2003-08-27 14:13 ` Rob Verduijn
  2003-08-27 16:43 ` Jim Carter
  0 siblings, 2 replies; 8+ messages in thread
From: Deshwal Chand @ 2003-08-27  8:56 UTC (permalink / raw)
  To: Netfilter (E-mail)

[-- Attachment #1: Type: text/plain, Size: 395 bytes --]

HI,

I don't know whether this is the right place to raise this post.

I am using IPTABLES and Squid. I want to monitor all the traffic going out
of this box. Suppose someone sends his/her CV from our network using his/her
Yahoo or Hotmail account, then I may get an alert.

Can IPTABLES do this by using some addones!!

Pls. pardon me if i am being wrong in posting this question on this list.

[-- Attachment #2: Type: text/html, Size: 917 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-08-28  7:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-27 14:10 Can IPTABLES be used to send alerts! dir
2003-08-27 15:35 ` Ramin Dousti
2003-08-28  2:28 ` ads nat
  -- strict thread matches above, loose matches on Subject: below --
2003-08-28  4:12 Deshwal Chand
2003-08-27  8:56 Deshwal Chand
2003-08-27 14:13 ` Rob Verduijn
2003-08-27 16:43 ` Jim Carter
2003-08-28  7:50   ` Arnt Karlsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox