Author: Freestyler

Secure /tmp Directory

Secure /tmp Directory

Changing Partition Attributes (such as securing tmp) do not need a reboot. You can remount the partition immediately with the new attributes doing something like…mount -o remount,noexec,nosuid /tmp or make the change in the fstab LABEL=/tmp /tmp ext3 noexec,nosuid,nodev,rw 1 2 then remount it mount -o remount /tmp ———————————————————————————- The following is how to secure …

Upgrading the Kernel on Live Servers

Upgrading the Kernel on Live Servers

The following steps are to upgrade the kernel on live dedicated hosting servers.1. Check current version of kernel on server using the command ‘uname -a,’ if it’s 2.4 then download latest release for 2.4, please do not download the 2.6 kernel. You can download the kernel from http://www.kernel.org/pub/linux/kernel/v2.6/. If it’s 2.4 then you can check …

Load balancing script.

Load balancing script.

If you would like to have a script that sends you an email when a certain disk partition is full, then look no further! #!/bin/sh # Linux shell script to watch disk space ADMIN=�[email protected]�?? ALERT=95 df -H | grep -vE �??none|tmp�?T | awk �??{ print $5 �?? �?? $6 }�?T | while read output; do …

Configuring APF Firewall

Configuring APF Firewall

cd /usr/local/src wget http://rfxnetworks.com/downloads/apf-current.tar.gz tar -zxf apf-current.tar.gz cd apf-0.* ./install.shNow edit config filevi /etc/apf/conf.apf Scroll down to the “Common ingress (inbound) TCP ports section. At this point you need to find the correct configuration for your control panel. IG_TCP_CPORTS=”20,21,22,25,26,53,80,110,143,443,465,993,995,2082,2083,2086,2087,2095,2096″ IG_UDP_CPORTS=”21,53,873″ EGF=”1″ EG_TCP_CPORTS=”21,22,25,26,27,37,43,53,80,110,113,443,465,873,2089″ EG_UDP_CPORTS=”20,21,37,53,873″ save the file start apf apf -s If everything still works then …

Using Dreamweaver’s Built-In FTP Client

Using Dreamweaver’s Built-In FTP Client

One of the many useful features of Dreamweaver is it’s built in ftp client. This means that you can upload your files to your web server in the same environment in which you are developing them. To use the built-in ftp client, go through the following steps: 1) Start Dreamweaver. 2) To publish your site, …

Stop phpbb worms with mod_security

Stop phpbb worms with mod_security

Greetings members,If you would like to make sure that your PHPBB boards, or any other script for that matter don’t get injected then you can use the following code (the code must be places in the .htaccess file in the root of your site):#spam bots SetEnvIfNoCase User-Agent “^EmailSiphon” bad_bot SetEnvIfNoCase User-Agent “^EmailWolf” bad_bot SetEnvIfNoCase User-Agent …