Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Security and Privacy
FedoraForum Search

Forgot Password? Join Us!

Security and Privacy Sadly, malware, spyware, hackers and privacy threats abound in today's world. Let's be paranoid and secure our penguins, and slam the doors on privacy exploits.

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 5th February 2005, 01:04 PM
shaz Offline
Registered User
 
Join Date: Feb 2005
Posts: 2
Mod_security

Hi,
I want to install mod_security in my webserver I am using apache2 which is installed with RPM. But the procedure to install mod_security is using source code. and the procedure for mod_security installation is

# cd /usr/local/src
# tar zxf mod_security-1.8.tar.gz
# cd mod_security-1.8/apache1
# /etc/httpd/bin/apxs -iac mod_security.c


6.2) Configuring mod_security
The following configuration is what I would use for a webserver. However, you can read the documentation and tweak mod_security to your needs. There are many things you can do with this module. One of the biggest advantages of mod_security is its ability to be configured differently per virtual host. In this case, you can have one general configuration that applies to all hosts and you could also add more directives on an insecure virtualhost, if necessary. Again, copy-paste the following into the end of httpd.conf:

<ifmodule mod_security.c>
SecFilterEngine On
SecFilterDefaultAction "deny,log,status:403"
SecFilterScanPOST On
SecFilterCheckURLEncoding On
SecFilterCheckCookieFormat On
SecFilterCheckUnicodeEncoding Off
SecFilterForceByteRange 1 255
SecAuditEngine RelevantOnly
SecAuditLog logs/modsec_audit_log
SecFilterDebugLevel 0
SecFilterDebugLog logs/modsec_debug_log
SecFilterSelective REQUEST_METHOD "!^GET$" chain
SecFilterSelective HTTP_Content-Type "!(^$|^application/x-www-form-urlencoded$|^multipart/form-data)"
SecFilterSelective REQUEST_METHOD "^POST$" chain
SecFilterSelective HTTP_Content-Length "^$"
SecFilterSelective HTTP_Transfer-Encoding "!^$"
SecUploadDir /tmp
SecUploadKeepFiles Off
SecFilter "../"
SecFilter /etc/password
SecFilter /etc/group
SecFilter /etc/shadow
SecFilter /bin/ls
SecFilter "delete[:space:]+from"
SecFilter "insert[:space:]+into"
SecFilter "update[:space:]+set"
SecFilter "select.+from"
SecFilterSelective OUTPUT "Fatal error:" deny,status:500
</ifmodule>


Want to find out what each line does? Read mod_security documentation. To test mod_security, The above configuration was tested on a production server.

But, in my server there is no apxs file or command. Can any body help me in installation of this module?
  #2  
Old 5th February 2005, 06:51 PM
tashirosgt Offline
Registered User
 
Join Date: Aug 2004
Posts: 3,855
I went to www.pbone.net and looked for apxs. It is in the http-devel package. So you may be missing that. I use the options:
custom install, install everything
on my machines and I do have /usr/sbin/apxs
__________________
"Never let the task you are trying to accomplish distract you from the study of computers."
  #3  
Old 5th February 2005, 06:55 PM
tk Offline
Administrator
 
Join Date: Jan 2005
Location: KSMO
Posts: 113
don't waste your time with "mod_security" - it's pretty much useless and catches only the most amateuristic hacking attempts. Focus on hardening your server.
  #4  
Old 6th February 2005, 06:19 AM
shaz Offline
Registered User
 
Join Date: Feb 2005
Posts: 2
Well boobay, If not mod_security then what resources can I use to block all the hacking attempts. Can you please mention some of them.
Closed Thread

Tags
modsecurity

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MOD_SECURITY INOP after F11 install MauiLvrs Servers & Networking 0 19th June 2009 11:10 PM
Apache: how to autoindex with mod_security ? LaKing Security and Privacy 3 16th May 2009 08:51 PM
F9 mod_security package is older than CentOS 5's? icydog Using Fedora 1 14th September 2008 06:38 AM
mod_security and FC2 php4u Servers & Networking 4 14th June 2004 12:36 AM


Current GMT-time: 16:13 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat