Apache
Apache Modules
Apache is the de-facto web server on the internet today and with the addition of modules becomes a very versatile server. Modules are usually built to solve a certain problem or to provide a missing functionality. This open source application comes with prebuilt modules which can be reviewed from the apache website. If you wish to search for all modules whether from the 1.x branch or 2.x branch this site offers a search facility which displays all registered modules.
Security
Providing security for the servers and web applications that provide internet users with the flexibility and ease of use that they have come to depend on when doing internet banking or online shopping from spammers and hackers who are always looking to find ways to exploit these interfaces for there own benefit and creating ways for them to either steal your money or worse your identity. Apache modules that can address these security issues are.
- Mod_Security is an open source tool used to provide application level filtering.
- Mod_evasive is an open source tool that prevents denial of service attacks against the server.
- limitipconn is another open source tool tha provides bandwith and denial of service attacks.
Mod Security
Mod Securiy can monitor HTTP traffic in real time in order to detect attacks, thus acting as an application level firewall and intrusion prevention for web applications.
Mod Security has three different models for preventing attacks:
- Negative Security model: monitors requests for anomalies, unusual behaviour and common web applications attacks. It keeps anomally scores for each requests, IP adresses, application sesseions and user accounts. Reuests with with high anomally scores are wither logged or rejected altoghether.
- Known weaknesses and vulnerability: applications can be patched externally using mod_security as the front end without touching the application source code, this utimately makes your application that much more security.
- Positive security model: only requests that are known to be valid are accepted, everything else is rejected.
Deploying Mod Security
Mod Security can be deployed either embedded within apache or deployed on the network within apache in front of all web based applications acting as a web filtering proxy, this has the added benefit of protecting non apache based web servers as well.
Mod Security works on a wide range of operating systems.
- FreeBSD
- OpenBSD
- NetBSD
- Linus
- Solaris
- AIX
- HP-UX
- Mac OS
- Windows
Mod Security Configuration
Mod Security whether embedded or deployed on the network relies on a configuration file. This configuration file can de lengthy and needs to be reviewed before deploying. Mod Security configuration manual can be reviewed from this link.
The following configuration file can be used as a starting point for deploying this open source tool
#Enable Mod_security
SecFilterEngine On
#Logging
SecAuditEngine RelevantOnly
SecAuditLog /var/log/audit_log
# Logging
SecFilterDefaultAction "deny,log,status:404"
#Disable executing Unix commands
SecFilterSelective ARGS "bin/"
#Guard against Cross site scripting attacks
SecFilter "
View blog authority
FreeBSD: The Freedom to Perform!
Unleash your desktop with PC-BSD!

