Linux : How to disable ICMP echo request

The easiest way of disabling ICMP echo request on Linux is doing it on the kernel level. To disable ICMP immediately on a running system, simply enter the following command : echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all This command will not survive to the next reboot. To make it permanent, edit : vi /etc/sysctl.conf And add :… Read More »

Linux : How to create a dummy file

Here is a quick how to create a dummy file for a specific size under Linux/Unix : dd if=/dev/zero of=<file_name> bs=<size_in_bytes> count=1 So assuming you want to create a file named “100mb.bin” having 100 Mb size : dd if=/dev/zero of=100mb.bin bs=104857600 count=1

OpenVPN : service failed to start due to unresolved dependencies: set([‘bridge’])

If you setup OpenVPN to be in bridge (layer2) mode instead using NAT/routing (layer3) and then restart the server to make the change effective, you probably noticed the following error message on the Status Overview page repeatedly : service failed to start due to unresolved dependencies: set([‘bridge’]) This is because there is no existing bridge… Read More »

Linux : How to create a bridge interface on RHEL/CentOS

A bridge interface is actually a virtual interface handled by a config file on your Linux system. Creating a bridge is quite simple, just follow those steps and you’re all set! 1. Create the bridge interface configuration file : vi /etc/sysconfig/network-scripts/ifcfg-br0 Add the the following parameters : DEVICE=br0 TYPE=Bridge BOOTPROTO=static ONBOOT=yes STP=on IPADDR= NETMASK= GATEWAY=… Read More »

Qmail : Create a catch-all account with vpopmail

On the latest vpopmail release, there is a bug with the Web interface that prevent creating a catch all mail account for non-existent recipients. When pressing the catch-all button, a blank page is returned. Here is the steps to create the catch-all manually instead of using the WebUI. This example assume that your domain name… Read More »

Linux : How to install source rpm on RHEL/CentOS

Here is a quick tutorial regarding how to install a source RPM on RHEL/CentOS Linux. 1. Prepare the build environment and get the dependencies. Do those following command under your root home directory : yum install rpm-build redhat-rpm-config gcc make mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} 2. Put the source rpm file at the root of your home directory… Read More »