Tag: Open

Linux: Forcing Apache to correct misspellings of URL

Apache has mod_speling for automatic URL spell-correction. For example when on this site you can request the page using following format: This module help visitor to get correct content instead of error 404 – document not found and you can also omit file extension such as .pl, .php, .html etc […]

FreeBSD: Customize Home, Del, Insert keys for BASH shell

By default when you use FreeBSD’s BASH shell and if you hit Home, Del, Insert keys all of them just prints ~ (some garbage is printed ). To get rid of this problem, edit /etc/profile file and define key binding. 1) Open your bash global profile file: # vi /etc/profile […]

How to find MAC address in CentOS

Open SSH and type the following and press Enter: /sbin/ifconfig | grep -i hwaddr The sequence of hexadecimal digits that appears to the right of eth0 HWAddr (e.g. 08:00:27:ED:DA:8b) is your network card’s MAC Address} else {

Linux How to bind Qmail to specific IP address

qmail is a mail transfer agent that runs on Linux and Unixish oses. It is more secure replacement for the popular Sendmail program. Yes, it is possible to bind Qmail to specific IP. Here is what I did. Please note that I am running light weight QMAIL server from xinetd […]

Howto: Open port using IPtables

Howto open ports using iptables, see the following examples: Open port 25 (SMTP) for the SOURCE_IP address: iptables -A INPUT -p tcp -s SOURCE_IP  –dport 25  -j ACCEPT Open port 22 (SSH) for the SOURCE_IP address to a specific DESTINATION_IP address iptables -A INPUT -p tcp -s SOURCE_IP –dport 22 […]