Category Archives: Security
Count port connections
Block access to files by extension
It’s often required to block access to files in a folder by the file extension. For example – customer has an outdated version of oscommerce that they refuse to upgrade. It requires the images folder to have the permissions 777. The only thing that should be stored in the folder is images. To ensure a …
Mod Security Whitelist IP
Sometimes it’s necessary to whitelist an IP address so it can get past the mod_security filters. This is a great feature in case you want to open the filters for one visitor while leaving the security features in place. Open the mod_security whitelist file: vi /usr/local/apache/conf/modsec2/whitelist.conf Code: SecRule REMOTE_ADDR “^111.222.333.444” phase:1,nolog,allow,ctl:ruleEngine=off Where 111.222.333.444 would be …
Notify when a root user logs in
If you don’t have this setup already you should! This is a great method to ensure you’re notified each time the root user connects to your server via SSH. Edit the .bash_profile file of the user whose account you wish to monitor – typically: /root/.bash_profile echo ‘ALERT – Root Shell Access on:’ `hostname` `date` `who` …
Number of connections from an IP
We have seen a huge increase in individual servers/IP’s attempting to flood a server or brute force a particular account. Here’s a great way to check the number of connections being made from each IP that is connected to your server: netstat -an|awk ‘{print $5}’|cut -d “:” -f1|sort|uniq -c|sort -n We will post an automated …
Protect /home from prying eyes
Change RDP port for security
Server: How do I change the Terminal Server (or RDP) listening port? By default, Terminal Server (For Windows 2000 and Windows Server 2003) and Remote Desktop Protocol (for Windows XP and Windows Server 2003) listens on TCP port 3389. To change the default port for all new connections created on the Terminal Server: 1. Run …
- English Support
- 24/7 x 365
- Branded Support
- Reduced Overhead
- Linux Experts
- Friendly Staff