Saturday, February 13, 2010

FreeBSD command to stop IPFW Firewall

To stop the firewall, issue the command: 
# /etc/rc.d/ipfw stop
To disable firewall remove following line from /etc/rc.conf file:
firewall_enable="YES"
OR set it as follows:
firewall_enable="NO"

Optimize PHP Linux Web Server

Open php.ini configuration file.
vi /etc/php.ini
Find and change to following value:-
max_execution_time = 30
max_input_time = 30
memory_limit = 40M
post_max_size = 8M
upload_max_filesize = 2M
file_uploads = Off (Turn off if it really not use.)
cgi.force_redirect = 0
allow_url_fopen = Off
sql.safe_mode = Off
Reload Apache, using following command:-
server httpd reload
or
/etc/init.d/httpd reload

Monday, February 08, 2010

Suggestion #1 for my final year project : Cloud Computing

Now i thinking to develop could computing, i don't sure how to be done. Maybe start with private cloud computing first and more research need to be done too.... Looks ubuntu cloud much easier, now in stage installing Ubuntu server....hahhaa...pening kepala edeng..





Saturday, February 06, 2010

namebench : DNS Benchmark Utility

Namebench use to find out the fastest DNS servers available for your computer to use. Namebench run benchmark using your web browser history, tcpdump output, or standardized datasets in order to provide an individualized recommendation.



This is the result from my benchmarking




I got Google Public DNS is the fastest and followed by P1 DNS server... maybe Google DNS server it the fastest in term of speed, but from my experience, Level 1 (4.2.2.1,4.2.2.2,4.2.2.3,4.2.2.4) DNS server the fastest propagated DNS.

To install:-

Download here.


tar -zxvf namebench-1.0.5.tgz
cd namebench-1.0.5/
python setup.py install
./namebench.py

Friday, February 05, 2010

ip_conntrack: table full, dropping packet

Happen on my old freaking old server this afternoon....i unable to SSH into server at all...and need to physical access and here what i got after plugged the monitor...
ip_conntrack: table full, dropping packet
keep coming and coming... to solve this issue, i need to increase it value..but before that need to check current value first. To do so, need run following command.
cat /proc/sys/net/ipv4/ip_conntrack_max
to find out current usages:-
cat /proc/sys/net/ipv4/netfilter/ip_conntrack_count
Temporary solve this issue by increase the value
echo 191072 > /proc/sys/net/ipv4/ip_conntrack_max
To make the permanent changes, i need to change value from kernel it self, so i edit this file
vi /etc/sysctl.conf
and add this value at the end of file
net.ipv4.ip_conntrack_max=191072
and update the kernel with latest configuration by exec this command
sysctl -p


Simple Password Generator

Edit this file .bashrc at your home dir.
sudo vi /home/harith/.bashrc

add following script at the end
genpasswd() {
local l=$1
[ "$l" == "" ] && l=20
tr -dc A-Za-z0-9_ < /dev/urandom | head -c ${l} | xargs }
Open your terminal and run this command to generate random password

genpasswd 16

Example:

harith@thinkmachine:~$ genpasswd 16
Br1WleFsmhJ4Dkwb
harith@thinkmachine:~$

FreeBSD 8.0

So far so good....i like it...