I like to install fail2ban on my Server for securing ssh and Asterisk . Installed: fail2ban.noarch 0:0.8.4-23.el5 Dependency Installed: shorewall.noarch 0:4.0.15-1.el5 shorewall-common.noarch 0:4.0.15-1.el5 shorewall-perl.noarch 0:4.0.15-1.el5 shorewall-shell.noarch 0:4.0.15-1.el5
Category Archives: Unix
Setup Static IP Address If you want to setup a Static IP Address in your system , Modify the file /etc/network/interfaces. If your First Ethernet Interface is eth0 ,see the following Example. Just add the following lines in the file with the help of an Editor and Restart the network or […]
If you’re running Ubuntu Maverick with Nvidia Official drivers, and your screen messed up at starting up and shutting down the system. You can try following method to fix the problem. Step 1: First, open up a terminal window from Applications -> Accessories menu. Run this command to install preparing tools: sudo apt-get install v86d […]
Install Logwatch : Issue the following command to install Logwatch along with Postfix: apt-get install postfix logwatch Be sure to select the “Internet Site” configuration when installing Postfix. Configure Logwatch Link Once you have installed Logwatch, you will need to configure it to email you the reports it generates. You are encouraged to look through […]
Installing and Using Fail2ban On Debian and Ubuntu system Make sure your package repositories and installed programs are up to date by issuing the following commands: kartook@K:~$ sudo apt-get update [sudo] password for kartook: kartook@K:~$ sudo apt-get upgrade –show-upgraded kartook@K:~$ sudo apt-get install python kartook@K:~$ sudo apt-get install fail2ban kartook@K:~$ Afterwards, you will find all […]
How do I disable the ping response? Add the following line to your init script for the network (the name depends on the distribution you use): echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all This disables ping responses. To reenable, use the following command: echo 0 >/proc/sys/net/ipv4/icmp_echo_ignore_all To make this permanent set the following into /etc/sysctl.conf (if you have such […]
TELNET (TELetype NETwork) is a network protocol used on the Internet or local area network LAN connections. The telnetd program (telnet server) is a server which supports the DARPA telnet interactive communication protocol. Telnetd is normally invoked by the internet server inetd or xinetd for requests to connect to the telnet port as indicated by […]
how to get free – to see swap space information in linux Command : cat /proc/meminfo ( or ) free out put from my system kartook@K:~$ cat /proc/meminfo; free MemTotal: 12320084 kB MemFree: 3508632 kB Buffers: 121068 kB Cached: 5832992 kB SwapCached: 1616 kB Active: 4625864 kB Inactive: 3571736 kB Active(anon): 1689308 kB Inactive(anon): 584088 […]
I was running some perl related thing s on my server . i got an error could not find ParserDetails.ini in /usr/lib/perl5/vendor_perl/5.8.8/XML/SAX After searching i found this will fix the issue very quick . Just run this command with root privillage and the nyou can continue your perl related stuff . perl -MXML::SAX -e […]