Problem: When you install Mod-security from source , by default log-rotate will not rotate those logs file as the path for log files are not defined logrotate configuration file by default. So if you want to allow logo-ratate to rotate your modsecurity log files. here is the steps: 1. Create a file modsecurity under /etc/logrotate.d [...]
Archive for April, 2010
Linux:How to configure logrotate for ModSecurity(source install)
Monday, April 26th, 2010Linux:How to create multiple OpenVPN instances
Monday, April 26th, 2010Problem : How to configure openvpn to create multiple instances and listen more then 2 ports(1194,1195) ?? Solution: you need more then 2 openvpn configuration file. example : openvpn.conf and openvpn1.conf Now you need to define different port , Server Ip address,ifconfig-pool-persist, and log files For openvpn.conf : port 1194 proto tcp dev tun server [...]
Nagios script to monitor memory uses
Friday, April 23rd, 2010Purpose: ########################################### Develop a nagios script, which will monitor Linux memory uses. ########################################### This script will check following : ############################################# #1.If free memory is more then the defined memory as free: Status Done #2.If System is using swap memory : Status:Done ############################################## #!/bin/bash #Version 1.0 ####################################### #Nagios scrept to check memory status## #Commands : [...]
configure nrpe(nagios) to listen on different port
Thursday, April 15th, 2010Purpose : Some times Isp Or vps provider they block port 5666 Or for any reason if you want to configure nrpe to listen different port example 15666, follow as bellow: On the Remote host(linux-vps) : 1. Change the Port number in : /etc/xinetd.d/nrpe # default: on # description: NRPE (Nagios Remote Plugin Executor) service [...]
Cisco:Basic commands to setup a cisco switch
Monday, April 12th, 2010Privileges mode password : enable , configure t, enable secret test How to lock down telnet port : enable, configure t , line vty 0 15 , login , password test How to lock down console port : enable , configure t, line console 0 , login, password test How to set logoin banner enable, [...]
Linux :file and directory permission
Thursday, April 8th, 2010Octal Permission: 0 — 000 All types of access are denied 1 –x 001 Execute access is allowed only 2 -w- 010 Write access is allowed only 3 -wx 011 Write and execute access are allowed 4 r– 100 Read access is allowed only 5 r-x 101 Read and execute access are allowed 6 rw- [...]