Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-07-2006, 06:42 AM
|
#1
|
LQ Newbie
Registered: Dec 2005
Location: Hyderabad, India
Distribution: Red Hat, Fedora Core
Posts: 16
Rep:
|
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
|
|
|
01-07-2006, 12:20 PM
|
#2
|
Moderator
Registered: May 2001
Posts: 29,417
|
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?
|
|
|
01-08-2006, 11:18 PM
|
#3
|
LQ Newbie
Registered: Dec 2005
Location: Hyderabad, India
Distribution: Red Hat, Fedora Core
Posts: 16
Original Poster
Rep:
|
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
|
|
|
01-09-2006, 02:50 AM
|
#4
|
Senior Member
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291
Rep:
|
What about a squid proxy server?
|
|
|
01-09-2006, 03:11 AM
|
#5
|
LQ Newbie
Registered: Dec 2005
Location: Hyderabad, India
Distribution: Red Hat, Fedora Core
Posts: 16
Original Poster
Rep:
|
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
|
|
|
01-09-2006, 04:52 AM
|
#6
|
Senior Member
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291
Rep:
|
Yeah it only filters the web browser, sorry I didn't realise you need for everything going through the gateway.
|
|
|
01-11-2006, 07:15 AM
|
#7
|
Moderator
Registered: May 2001
Posts: 29,417
|
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.
|
|
|
01-11-2006, 08:08 AM
|
#8
|
LQ Newbie
Registered: Dec 2005
Location: Hyderabad, India
Distribution: Red Hat, Fedora Core
Posts: 16
Original Poster
Rep:
|
Thanks boss...
|
|
|
All times are GMT -5. The time now is 11:06 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|