Stop ssh attacks with fail2ban in CentOS Every server on the web is subject to frequent breaking attempts, and when there are services running on default ports like 22 for ssh it becomes even more common. However, using a simple tool freely available called fail2ban we can easily keep those intruders out of our […]
Category Archives: Unix
The first device with Firefox OSwill cost less than $100 (Rs 5,500). This was revealed by Matthew Key, the chief operating officer of Telefonica, a telecom operator which will be using Mozilla’s upcoming mobile operating system that was announced recently. He also revealed that Brazil will be the first country to receive the device, […]
Change MAC Address in Linux # ifconfig [interface name] down # ifconfig [interface name] hw ether [new MAC address] # ifconfig [interface name] up Example: # ifconfig eth0 down # ifconfig eth0 hw ether 1A:2B:3C:4F:5E:9F # ifconfig eth0 up
How to configure OpenSSL over apache on Ubuntu Setting up OpenSSL with Ubuntu 12.04 over the apache. First, log on to your server and install Apache: $sudo apt-get install apache2 Now, install and enable SSL module: $sudo a2enmod ssl $sudo /etc/init.d/apache2 reload Creation a directory on this location $mkdir /etc/apache2/ssl $cd /etc/apache2/ssl Run these following […]
How to Reset mysql Root Password on Linux and Unix ? Step 1: Stop the mysql server using the following command /etc/init.d/mysql stop Or service mysql stop Step 2: Start the mysql server manually without permission tables which allows us to login as root user without password, using the following command mysqld_safe —skip-grant-tables You should […]
How to Monitor your web server bandwidth usage with vnstat To use nethogs on a Ubuntu/Debian server or desktop it is easy. First start by installing it using the command: apt-get install -y nethogs The you can use it this way: # Start nethogs on the default network interface nethogs # Specify which network interface […]
How to Prevent IP Spoofing on linux Open a Terminal and enter the following : sudo vi /etc/host.conf Add or edit the following lines : order bind,hosts nospoof on
HOw to Protect su by limiting access only to admin group. To limit the use of su by admin users only we need to create an admin group, then add users and limit the use of su to the admin group. Add a admin group to the system and add your own admin username to […]
SSH Hardening – disable root login and change port. The easiest way to secure SSH is to disable root login and change the SSH port to something different than the standard port 22. Before disabling the root login create a new SSH user and make sure the user belongs to the admin group . If […]