Posts

Showing posts from August, 2006

Setup Blog using Wordpress

Wordpress is a popular opensource publishing engine. Prerequisite 1. Install apache webserver 2. Install MySQL DB server Steps for installation 1. download latest tar.gz from Wordpress website. 2. upload your server 3. extract tar -xzvf latest.tar.gz 4. Create DB for wordpress 5. copy wp-config-sample.php to wp-config.php 6. Browse and install (e.g http://localhost/wordpress/wp-admin/install.php) For more details  www.wordpress.org

Firewall with iptables

This installation steps are applied at Redhat Linux. However, it should be fine with other distributions also. 1. Check for installation status of iptables service rpm -q iptables 2. This step is important if your server have FTP service. insmod ip_conntrack_ftp (redhat 9) modprobe  ip_conntrack_ftp (rhel) 3. create file vi /root/primary_firewall #The NAT portion of the ruleset. Used for Network Address Transalation. #Usually not needed on a typical web server, but it's there if you need it. *nat :PREROUTING ACCEPT [127173:7033011] :POSTROUTING ACCEPT [31583:2332178] :OUTPUT ACCEPT [32021:2375633] COMMIT #The Mangle portion of the ruleset. Here is where unwanted packet types get dropped. #This helps in making port scans against your server a bit more time consuming and difficult, but not impossible. *mangle :PREROUTING ACCEPT [444:43563] :INPUT ACCEPT [444:43563] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [402:144198] :POSTROUTING ACCEPT [402:144198] -A PREROUTING -p tcp -m tcp --tc

Qmail Mail Server Setup

Qmail is a popular mail service among the opensource community. It is a security-focused MTA engine. Based on my project requirements, I need to setup complete Email solution with webmail, POP3 and IMAP. Preparation 1. Get a public IP from your ISP 2. Domain registration (e.g Enom, Godaddy, Namecheap) 3. Check your MX, SPF and Reverse DNS MX record for mail domain Reverse DNS IP (PTR) must request to ISP because IP address is owned by ISP. Setup For this setup, Redhat 9 is installed as a based OS and followed Qmailrocks steps  www. qmail rocks.org . Qmailrocks provides very details steps to achieve fully functional Mail Service. Key components Qmail/Qmailadmin Autoresponder Vpopmail, Vqadmin (host multiple domains) Maildrop (mail filtering) Courier-imap (IMAP service) SquirrelMail (Webmail client) Clam Antivirus SpamAssassin Ref: www. qmail .org www.lifewith qmail .org www. qmail rocks.org