October 2015
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  

Categories

October 2015
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  

Install Wget On CentOS 6.7 With A Wget Cheat Sheet

this quick and simple article, we will install wget command on a CentOS 6.7 server and we have included a wget cheat sheet. Wget is a free software package for downloading files using HTTP, HTTPS and FTP.

Prerequisites

A CentOS 6.7 server with Root privileges, if you do no have a server and would […]

Setup Your Own Private Network With OpenVPN

private network connectivity for servers running at the same location. But sometimes you want two servers in different countries / datacenters to be able to communicate in a private and secure way. This tutorial will show you how to achieve that with the help of OpenVPN. The operating systems used here are Debian and CentOS, […]

How to merge contents of 2 files using paste?

This is one of the best command that facilitates the system admin to perform his specific tasks. Below is the list with the examples showing the paste command.

[localhost@localhost ~]$ cat file1 apple orange mango banana

[localhost@localhost ~]$ cat file2 coldplay westlife michael sunibigyana piyush

[localhost@localhost ~]$ paste -s file1 apple orange mango banana

[localhost@localhost […]

Sending SMS Notifications From Nagios

Sending SMS Notifications From Nagios In my last article I have discuses how to install Gnokii for sending/receiving SMS from your computer. Today I’ll explain how we are using Gnokii + Nagios for sending SMS notifications to our cell phones. Its a great way to get notify of the problems while on road.

I assume […]

Searching and File Operations in linux

TOP 10 largest file # find /var -type f -ls | sort -k 7 -r -n | head -10

FIND FILES MORE THAN 5Gb # find /var/log/ -type f -size +5120M -exec ls -lh {} \;

Find all temp files older than a month and delete: # find /usr/home/admin/Maildir/new -mtime +30-type f | xargs /bin/rm […]

Postfix – whitelisting and spf filtering

Postfix – whitelisting and spf filtering

The whitelist will allow me to manually allow any mail servers to bypass the spf filtering and RBL(Real-time Blacklists) lists.

What does SPF filtering do? Suppose a spammer forges a Hotmail.com address and tries to spam you. They connect from somewhere other than Hotmail. When his message is sent, […]

Postfix – Blocking spam before it enters the server

Postfix – Blocking spam before it enters the server Posted in DNSBL E-mail E-mail spam Extended SMTP Mail transfer agents Postfix Spam filtering When i first setup the server part 1 and part 2 i used the basic setting for postfix but soon found that i could reduce the amount of spam and load on […]

use awk command in linux?

1. list content of file myfile # [localhost@localhost ~] $ cat myfile apple orange mango

banana GUAVA ra dish pineapple

2. delete the first line of the file # [localhost@localhost ~] $ sed ‘1d’ myfile orange mango

banana GUAVA ra dish pineapple

3. delete the third line of the file # [localhost@localhost ~] $ sed […]

How To Capture Packets with TCPDUMP?

See the list of interfaces on which tcpdump can listen # /usr/sbin/tcpdump -D

Listen on any available interface # /usr/sbin/tcpdump -i any

Verbose Mode # /usr/sbin/tcpdump -v # /usr/sbin/tcpdump -vv # /usr/sbin/tcpdump -vvv # /usr/sbin/tcpdump -q

Limit the capture to an number of packets N # /usr/sbin/tcpdump -c N

Display IP addresses and port numbers […]

Postfix Useful Commands

To Check Postfix Queue #mailq

To Check Sasl Auth #tail -f /var/log/messages|grep sasl

To Check Posfix Logs #tail -f /var/log/maillog|grep postfix

List of domains that are being deferred #qshape-maia -s deferred

Checking Specific Mail From Queue ————————————— To view the full mails #postcat -q D5EB71AEA45 If you an error postcat: fatal: open queue file D5EB71AEA45: […]