Linux and Security Blog

Samba Share Fedora 20

Samba Share Fedora 20

Install required packages : yum install samba samba-common samba-client cups-lib system-config-samba Make a shared Directory : In my case, I did mount an external hard drive at /mnt/usbDrive , which I wanted to be...

Mounting NTFS Filesystem

Mounting NTFS Filesystem

NTFS filesystem can be mounted on Linux systems by installing a kernel module that supports NTFS filesystem. A packate ntfs-3g can be used to installed such a module and ntfs utilities. yum install ntfs-3g...

NTP Reflection Attack

NTP Reflection Attack

In order to avoid NTP reflection attack , you need to disable the monlist command support or this can also be fixed by updating NTP to 4.2.7 vi /etc/ntp.conf restrict -4 default nomodify nopeer...

VMware ESXI packet capture

VMware ESXI packet capture

Packet capture for a port : tcpdump-uw -i vmk0 -s 1514 port 123 Increase the verbosity : tcpdump-uw -i vmk0 -s 1514 -vvv View traffic for a host : tcpdump-uw -i vmk0 -s 1514...

ZIP tips and tricks in Linux

ZIP tips and tricks in Linux

View List of files inside a zip file: unzip -l filename.zip (list files ) Extract Single File from a zip file: unzip -j "archive.zip" "archive/filename.zip" -d .

Root Alias with Qmail

Root Alias with Qmail

In order to create root alias , you have to edit the .qmail-root file on qmail server vi /var/qmail/alias/.qmail-root Now add the email address that you want to alias to and add & at...

Chrooting Users with SFTP

Chrooting Users with SFTP

Prerequisite : OpenSSH 4.9p1 or newer is required, you can verify with the following command : Note : User can be added with /bin/false or /bin/bash if you want to allow shell access ,...

Iptables initial Configuration

Iptables initial Configuration

# Iptables Configuration*filter:INPUT ACCEPT [0:0]:FORWARD ACCEPT [0:0]:OUTPUT ACCEPT [0:0]#Block all other hackers and hacking attempts or exclusive block here -A INPUT –s x.x.x.x –j DROP # Reject packets from RFC1918 class networks on your...

Log Messages with specific prefix to a separate file

Log Messages with specific prefix to a separate file

With rsyslog you can log messages with specific prefix to a separate file. For example, if you wanted to put iptables log into a separate log file, with the syslog you have to live...

Download RPM Packages with yum

Download RPM Packages with yum

Sometimes, it is desirable to download packages from yum repo.Here is how you can do that. Yum download only plugin is required. yum install yum-downloadonly After installing that plugin , you can download the...