Mar 15

 OpenVPN+GUI (openvpn-2.0.9-gui-1.0.3) in client mode will connect to the remote OpenVPN server, but will not accept the routes. Error in the log is as follows:

ROUTE: route addition failed using CreateIpForwardEntry: One or more arguments are not correct. [if_index=18]
Route addition via IPAPI failed


add the following to the end of the configuration (ovpn) file:

route-method exe
route-delay 2

written by MG \\ tags: ,

Mar 11

/proc/filesystems is the file used to detect filesystems supported by running kernel. You can quickly run grep or cat command to display the list of all supported file system. nodev indicates that the file system is not associated with a physical device such as /dev/hda1. If you see ext3 or vfat, it means you will be able to mount ext3 and vfat based file systems.

Following cat command will quickly tell you what filesystems supported by currently running Linux kernel:

$ cat /proc/filesystems

written by MG \\ tags: ,

Mar 11

RHEL / Fedora / CentOS has yum-updatesd, which provides notification of updates which are available to be applied to your system. This notification can be done either via syslog, email or over dbus. Configuration is done via the /etc/yum/yum-updatesd.conf file.

Open /etc/yum/yum-updatesd.conf file, enter:
# vi /etc/yum/yum-updatesd.conf

Setup variables as follows:
emit_via = email
# who to send the email to:
email_to =
# who send the notifications
email_from =

 Here is complete working config file:

# how often to check for new updates (in seconds)
run_interval = 3600
# how often to allow checking on request (in seconds)
updaterefresh = 600
# how to send notifications (valid: dbus, email, syslog)
emit_via = email
# who to send the email
email_to = 
# who send the notifications
email_from =
# should we listen via dbus to give out update information/check for new updates
dbus_listener = yes
# automatically install updates
do_update = no
# automatically download updates
do_download = yes
# automatically download deps of updates
do_download_deps = yes

Save and close the file. Restart notification yum-updatesd service:
# /etc/rc.d/init.d/yum-updatesd restart

written by MG \\ tags: ,

Mar 11

You need to use e2label or tune2fs command line to change the label on an ext2/ext3 filesystem. e2label will display or change the filesystem label on the ext2 filesystem located on device.

Display current label

If the optional argument new-label is not present, e2label will simply display the current filesystem label.

# e2label /dev/sda1

Set a new label

If the optional argument new-label is present, then e2label will set the filesystem label to be new-label. Ext2 filesystem labels can be at most 16 characters long; if new-label is longer than 16 characters, e2label will truncate it and print a warning message. To set a new label, enter:
# e2label /dev/sdb2 usbstroage

It is also possible to set the filesystem label using the -L option of tune2fs, enter:

# tune2fs -L usbstroage /dev/sdb2


written by MG \\ tags: ,

Mar 11

You can retrieve root zone file by visiting Login as anonymous user and get db.cache file from domain subdirectory.

Use wget command to retrieve file and store to /etc/bind/db.root (Debian / Ubuntu Linux), enter:
# wget --user=ftp --password=ftp -O /etc/bind/db.root

Under Red Hat / CentOS / Fedora Linux, default location is /var/named/named.root, enter:
# wget --user=ftp --password=ftp -O /var/named/chroot/var/named/

Reload rndc to update information, enter:
# rndc reload

Another option is run dig command to fetch information:
# dig +bufsize=1200 +norec NS . > /var/named/named.root

The root zone’s nameservers change over time, don’t assume this list is current. Always download a new version of db.cache once or twice year is sufficient. You can also schedule cron jon to update file.

written by MG \\ tags: , ,

Mar 05
for example for NIC supported by fxp driver:
# dhclient fxp0

written by MG \\ tags: ,