Posts

Showing posts from February, 2009

Testing Throughput of Gateway/CPE with Jperf

Step 1: Setup Two PCs connected with your DUT (device under test), in this case your CPE. PC1 is attached to LAN side and PC2 attached on WAN side Step 2: Assign addresses to devices. LAN side PC, PC1 will get the address from the DHCP server insed the DUT. configure the stative IPs on PC2: 10.10.10.100 WAN side of DUT 10.10.10.10 Step 3: Check and confirm the connectivity by pinging PC2 from PC1 Step 4: Run the Jperf Application on PC1 and PC2 PC2 will act as server, click the server option and run it PC1 will act as client, enter the IP of server, 10.10.10.100 and run it. You will see the LAN-WAN throtuput of your device. References http://code.google.com/p/xjperf/ http://openmaniak.com/iperf.php http://www.smallnetbuilder.com/content/view/30408/235/ http://www.smallnetbuilder.com/content/view/30418/235/ http://www.smallnetbuilder.com/content/view/30388/235/

Network Monitoring using Nagios on Debian

Step 1: Installation of Nagios nagios:/etc/nagios#apt-get install nagios-text Step 2: Configuration EDIT /etc/nagios/contacts.cfg AND ADD FOLLOWING define contact{ contact_name imran alias imran service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email imran@fizaan.com } EDIT /etc/nagios/contactgroups.cfg AND ADD FOLLOWING define contactgroup{ contactgroup_name server-admin alias Systems Administrators members imran } EDIT /etc/nagios/hosts.cfg AND ADD YOUR HOSTS WHICH YOU WANT TO MONITOR define host{ use generic-host host_name www.fizaan.com alias website address ...

Restoring Joomla Site Admin Password

Step 1: Login the site using phpmyadmin Step 2: Select the Database You can find you data base name, user name and password on database from configuration.php file of joomla. Step 3: Select the Users table "jos_users", on left side of panel from the database. Step 4: Select the Browse in middle window and edit the user name Administration, id e.g 62 by clicking the edit mark "pencil" in this case. Step 5: In the password field, insert this value "226776f356d7ecf58b60bab12a05d38f" (without quotes), this is hashed value of joomla, new password of admin user. Be careful do not change field type. Step 6: Press Go, make sure the save option is selected in the bottom of window. Congratulation you new password joomla is set. Do not forget to change the password of admin when you login.

Installation of SSL Certificates (self signed) in Debian

Step 1: Make sure that openssl is installad along with apache, otherw ise apt-get install openssl Step 2: Install the self signed certificate root@web:mkdir /etc/apach2/ssl root@web:/etc/apache2/ssl# openssl req -new -x509 -days 365 -nodes -out /etc/apache2/ssl/certificate.pem -keyout /etc/apache2/ssl/certificate.pem Generating a 1024 bit RSA private key ..............................++++++ .................................++++++ writing new private key to '/etc/apache2/ssl/certificate.pem' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [AU]:NO State or Province Name (full name) [Some-State]:Oslo Locality Name (eg, city) []:Oslo Organization Name (...

Installation of tasks (DNS, Print Server...)in Debian/Ubunt

Installation # sudo -s Enter passwd # tasksel

Redirecting URL Permanently in Apache

Step 1: Install apache if not installed; You must have apache installed and running. apt-get install apache2 Step 2: Just add following lines to /etc/apache2/sites-available/default file, NameVirtualHost * ServerName domainname.com ServerAlias www.domainname.com Redirect permanent / http://www.newdomainname.com/ Where 192.168.0.1 is IP of machine running apache2, servername is name of machine Alias can the other name of the machine. Redirct permanent will redirect to the new domain. Step 3: Restart the apache /etc/init.d/apache2 restart Step 4: Test the site References http://www.yolinux.com/TUTORIALS/ApacheRedirect.html