FreeBSD Vs Linux Who is Best ? June 4th, 2010
Both FreeBSD & Linux are reliable and Servers running either software often stay up for years. But disk I/O of linux is non-synchronous by default which corrupts filesystem after system crash.
Freebsd’s disk I/O is high performance for transactions based applications for example databases. It is observerd that under heavy network load, the network performance of linux is 20-30% below of Freebsd under same hardware.
Being open source Linux allows anyone to change security code due to which code is modified rapidly and there is no formal code review policy. On other hand FreeBSD security components are checked for errors. Freebsd includes very robust packet filtering firewall system. Linux ext2/ext3 has several new journaling filesystems which fix data loss due to system crash. While FreeBSD uses UFS(Unix File System) which is more complex than ext2/ext3. UFS has many flags to use for performance and security for example schg flag does not allow to change file & directory unless you remove it.
Device Driver support of Freebsd is better than Linux. FreeBSD boot loader allows to load drivers at boot-time. Some time it becomes very difficult for linux users to use vendor’s drivers. Freebsd can run programs compiled for linux, SCO Unix and BSD systems. But Linux can only run binaries that are compiled for linux. Freebsd has many GBs of free packages to install via ports (Package management system of Freebsd). Linux has also free available software but Linux has not a central location like ports collection. of Freebsd.
Several organizations give professional support for both Freebsd & Linux. All the major Linux vendors offer some level of support, and several offer full 24/7 service. There are many forums where Linux questions are answered for free.
Both FreeBSD & Linux can be installed on as many systems as you like for no additional cost. Both Linux & Freebsd’s total cost of ownership is very low.
So if you are planning to deploy a transactional applications then for the best performance Deploy FreeBSD for example Email services & Database applications.
Please give your opinion, reviews & comments to select between 2 open source Operating systems FreeBsd & Linux so that we may focus to post more information about OS you like.
IPSec Tunneling Using FreeBSD June 4th, 2010
IPsec is a protocol which sits on top of the Internet Protocol (IP) layer. IPsec allows communication between hosts in a secure manner. The FreeBSD IPsec based on the KAME implementation.
I’ll use FreeBSD 7.2 for this howto, before we start to configure IPsec we need to compile IPSEC module into FreeBSD kernel if you don’t know to recompile FreeBSD kernel then please follow this document. To enable IPsec support into your kernel, add the following options in kernel configuration file:
Options IPSEC_DEBUG #debug IP security
Let’s draw the scenario which will be use throughout this tutorial
FreeBSD as a Router with Packet Filter June 4th, 2010
In this howto We will learn how to configure FreeBSD as a Router using PF (Packet Filter).
PF (Packet Filter, know as pf) is a BSD licensed statefull firewall. It is comparable to linux iptables, ipfw and ipfilter. PF is developed by OpenBSD, but has been ported to many other operating system like FreeBSD.
FreeBSD 7.2 will be used for this tutorial. Let’s breakdown that what we want and what should we do.
1) Configure network cards for internal and external network in /etc/rc.conf file.
ifconifg_rl1=”inet 22.214.171.124 netmask 255.255.255.240″
2) Set the defaultrouter in /etc/rc.conf assigned by your ISP.
Chroot Bind FreeBSD with Master/Slave June 4th, 2010
FreeBSD known as one of the most rock solid reliable and perfect operating systems, I personally lover of FreeBSD OS, so I want to publish a very nice howto about dns (Bind).
In this tutorial I’ll describe to you that how to set up secure FreeBSD based master/slave DNS server. You can use this tutorial on both 64-bit and 32-bit platforms.
We will use 192.168.0.1 as a Master Server and 192.168.0.2 as Slave Server
Installing and Configuring DNS:
FreeBSD 7.2 will be use for this tutorial. BIND is already installed in FreeBSD installation. You can check installed bind version using this link
1) Update your ports tree, I personally preferred portsnap for ports tree management. After updating ports tree check the version you have in the ports collection.
If ports version equal your existing installed bind version then we don’t need to installation new bind version otherwise we will install new version.
Installation from Ports: Master/Slave Read the rest of this entry »
Postfix + MySQL + Dovecot and FreeBSD June 4th, 2010
In this how-to I’ll guide you how to install postfix with mysql & dovecot and I’ll also introduce a new tool named (PostfixMailAdmin) for managing postfix mysql users.
We all knows Postfix is fast, easy to administer, and secure. The outside has a definite Sendmail-ish flavor, but the inside is completely different.
make install clean(Be sure “SASL2”, “TLS“, “MySQL“, and “VDA” are selected in the menu).
Note: If you want use dovecot as backend for SASL then also select DOVECOT from option menu.
I have already mentioned that i will introduce a new software for managing postfix virtual users. The software name is postfixmailadmin.
The main feature of this software is new web interface, easy to use, optimized search and vacation module.
You can download postfixmailadmin from this url: http://sourceforge.net/projects/postfixmiladmin/
Now Install PostfixMailAdmin
tar -xzvf postfixmailadmin-1.0.1.tar.gz Read the rest of this entry »