April 2025
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
282930  

Categories

April 2025
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
282930  

Add disk on Rhel 6

There are two ways to configure a new disk drive into a Red Hat Enterprise Linux 6 system. One very simple method is to create one or more Linux partitions on the new drive, create Linux file systems on those partitions and then mount them at specific mount points so that they can be accessed. […]

Block brute force attacks using denyhost

ssue:

Check your /var/log/auth.log file. In this file you can able to see that some unauthorized user is constantly trying to access your system using brute force attacks. He/she trying to get the access of your system by some scripts which is trying to login with different password. We can block this using simple iptables […]

“tuned” on RHEL/CentOS/Fedora

Starting with RHEL 6 ( and thus also with CentOS 6 ) Red Hat users have possibility to use tuned tool which gives possibility to activate different tuned profiles for RHEL 6 running server.

So what is tuned? ‘yum info tuned’ gives below

# yum info tuned

Description : The tuned package contains a […]

Gigabit Ethernet on CentOS

o determine the current ethernet connection link speed you can use the following commands:

#dmesg | grep -i duplex tg3: eth0: Link is up at 100 Mbps, full duplex. #ethtool eth0 Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full […]

RAM is installed on your CentOS server

cat /proc/meminfo MemTotal: 2069956 kB MemFree: 60652 kB Buffers: 16032 kB Cached: 1831416 kB SwapCached: 32 kB Active: 172144 kB Inactive: 1791604 kB HighTotal: 1174144 kB HighFree: 4008 kB LowTotal: 895812 kB LowFree: 56644 kB SwapTotal: 4128760 kB SwapFree: 4127320 kB Dirty: 244 kB Writeback: 0 kB AnonPages: 116184 kB Mapped: 26952 kB Slab: […]

CentOS Minimal Install

CentOS 6

In this section, the GNOME desktop will be added to a new server running CentOS 6.2 (x86_64) after performing a “Minimal” install.

Install Desktop Packages # yum -y groupinstall “Desktop” “Desktop Platform” “X Window System” “Fonts”

You can also install the following optional GUI packages.

# yum -y groupinstall “Graphical Administration Tools” # […]

iptables Rules

Block IP traffic from an specific IP or Network.

Block from an IP

iptables -A INPUT -s 11.22.33.44 -j DROP

If you want to block only on an specific NIC

iptables -A INPUT -s 11.22.33.44 -i eth0 -j DROP

Or an specific port

iptables -A INPUT -s 11.22.33.44 -p tcp -dport 22 -j DROP

Using […]

Centos harden Steps

When it comes to having a Linux server hosted in a data center or it is not behind any kind of Firewall or NAT device there are a number of security requirements that need to be addressed. Linux servers generally come with no protection configured by default and depending on the hosting company or distro […]

IPTABLES firewall script generated online website

According to the website wizard can automatically generate the IPTABLES firewall wall script!

1, Bifrost-GUI firewall management interface to iptbales [Url] http://bifrost.heimdalls.com/ [/ url]

2, LinWiz-Linux configuration file and scripting Wizards [Url] http://www.lowth.com/LinWiz/ [/ url]

3, GIPTables Firewall-IPTABLES Rules Generator [Url] http://www.giptables.org [/ url]

4, Easy Firewall Generator for IPTables [Url] http://morizot.net/firewall/gen […]

IPTables “Stealth” Scan Detection

Many of you probably know about port scanning. It’s a very simple process, where essentially you attempt to to make a connection on several ports of several machines. If the port is closed, a reset is returned. If the port is open, a SYN+ACK is returned.

Now, there are some other types of scans, such […]