LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Paket Filtering (string) (https://www.linuxquestions.org/questions/linux-security-4/paket-filtering-string-400518/)

Bugger 01-07-2006 06:42 AM

Paket Filtering (string)
 
Hi All,
I have to implement a content filtering system (string's basically) on a Linux gateway... Basically I don't want some packets (mached by string's) to pass the gateway... Could any one suggest me some open source for that... It should be light weight...

Any help in this regard will be appreciated...

thanks,
ANU

unSpawn 01-07-2006 12:20 PM

If it's protocol layer stuff like HTTP or P2P you're after you could search the web for "iptables L7 filter". Like mentioned in the other thread, iptables has string match support but I guess it will be slower and more CPU intensive compared to Snort, so maybe you could tell us the reasons why you want this and add a few examples?

Bugger 01-08-2006 11:18 PM

Hi,
See like on the gateway I have a user interface which asks a user to block certain type of content (sex, porn, .ocx, .java etc.)... So I need to accomplish it... I am using kernel 2.6.9... I looked for patch-o-matic from netfilter but it doesn't work with kernel 2.6.x... I know kernel 2.6.14 has some string matching cababilities, but I have to stic to the kernel 2.6.9 only... And you were also refering to snort, but at a first look I came to know that it requires some MySQL, Webserver, ACID, webmin... Actully I need to avoid overhead of DB server, webserver... If Snort can work without these then please let me know... There is another one modsecurity but that also requires an APACHAE engine...

thanks and regards,
ANU

fotoguy 01-09-2006 02:50 AM

What about a squid proxy server?

Bugger 01-09-2006 03:11 AM

Hey,
I thought SQUID is basically used for chaching... Can I use SQUID just for filtering the content ? ... and I feel SQUID filters the content, when requested by the browsers... I need filtering as it passes from the gateway...

thanks

fotoguy 01-09-2006 04:52 AM

Yeah it only filters the web browser, sorry I didn't realise you need for everything going through the gateway.

unSpawn 01-11-2006 07:15 AM

I know kernel 2.6.14 has some string matching cababilities, but I have to stic to the kernel 2.6.9 only...
I would like you to seriously consider upgrading the kernel before you do anything else. 2.6.9 is way old and contains more vulnerabilities than a sieve. If you really have compelling reasons not to upgrade you will have to spend time researching if mitigating risks is possible at all. This means researching (CVE, http://nvd.nist.gov/nvd.cfm) which vulnerabilities are remotely exploitable, then find any fixes, then lessening risks by compiling a custom 2.6.9 kernel that does include fixes and then test if it's still vulnerable. If the box allows for public access then you will have to do the same for locally exploitable vulns if you can't migrate public access services to another box. I estimate this will cost you considerable time which you should see as a compelling argument to override reasons not to upgrade the kernel (if possible).


And you were also refering to snort, but at a first look I came to know that it requires some MySQL, Webserver, ACID, webmin... Actully I need to avoid overhead of DB server, webserver... If Snort can work without these then please let me know
Management tools can be run from another box. Snort will run OK w/o any.

Bugger 01-11-2006 08:08 AM

Thanks boss...


All times are GMT -5. The time now is 10:48 AM.