Wise people learn when they can; fools learn when they must - Arthur Wellesley

Saturday, 14 July 2018

RHEL6–44– IP TABLES IN LINUX -P6



                         RHEL6–44– IP TABLES IN LINUX -P6
IP Tables digging deeper,


CONFIGURE IPTABLE LOGGING-1:

We already learned there is a target called LOG. Now time to use it,

So, what it will do? Let’s configure and find out ourselves…

I want to know what firewall is doing with ssh,

RHEL6–43– IP TABLES IN LINUX-P5



                         RHEL6–43– IP TABLES IN LINUX-P5
IP Tables digging deeper,


PING OF DEATH:

What is ping of death?

[root@rhel6-client1 ~]# ping -f -s 65500 192.168.135.142
PING 192.168.135.142 (192.168.135.142) 65500(65528) bytes of data.
.^C
--- 192.168.135.142 ping statistics ---
46916 packets transmitted, 46915 received, 0% packet loss, time 249276ms
rtt min/avg/max/mdev = 1.515/5.164/44.228/1.083 ms, pipe 3, ipg/ewma 5.313/5.359 ms

RHEL6–42– IP TABLES IN LINUX -P4



                         RHEL6–42– IP TABLES IN LINUX -P4
IP Tables digging deeper,

Well, in previous post we successfully implemented out first IP TABLE rules,


Whenever you change the rules, keep following in mind.

Always save the table by following command,

RHEL6–41– IP TABLES IN LINUX-P3



                         RHEL6–41– IP TABLES IN LINUX-P3
What is IP Tables and how to implement,



From previous mistakes we learned too many things or nothing (it depends upon you), lets try to short out those issue in this post.

An important point to note is, IPTables always work in sequential order so always consider while appending (-A) any rule that where they are in order, or in which line they are.

RHEL6–40– IP TABLES IN LINUX - P2




                         RHEL6–40– IP TABLES IN LINUX -P2

What is IP Tables and its significance,



Great, this is second post from IPTables and we already learned basics and now it’s time for implementation.

Well, are you really serious to learn? Then please do mistakes with me and get frustrated.
This post is just a hit and trial like a beginner is learning Iptables implementation by reading various posts on internet.

Sunday, 24 June 2018

RHEL6–39– IP TABLES IN LINUX -1



                         RHEL6–39– IP TABLES IN LINUX -1

In my opinion the simplest definition of IPTables is,
What I want to pass will pass rest everything will be dropped. Means here we are creating rules not to block, we are creating rules only to allow. Rest everything will be blocked.

Sunday, 18 February 2018

RHEL6–38– IMPLEMENTING PASSWORD POLICY IN RHEL-6


          RHEL6–38– IMPLEMENTING PASSWORD POLICY  

Securing system is vital for every Admin and password policy plays a major role in that.


What we will learn in this post, (FOR RHEL-6)


  1. Minimum password length would be of 8 characters.
  2. Password expiry duration would be 90 days.
  3. Password change warning should be flashed to users before 14 days.
  4. Users must change the password at their first login.
  5. Password contains at least one number.
  6. Password contains at least one Upper case alphabet.
  7. Password contains at least one Lower case alphabet.
  8. Password contains at least one Special character.
  9. Lock account after five failed login attempts.
  10. Auto unlock account after N number of minutes.
  11. Lock even root user after five failed login attempts
  12. Auto logout users after 30 minutes of idle/inactive session.
  13. Enforcing password history up to last three passwords.

Thursday, 27 July 2017

RHEL6–37–AUTOFS-2


RHEL6–37–AUTOFS-2


INDIRECT MAP:

This is the main reason because of “autofs” is too famous. Let’s assume there are several remote users in a network, jumping from this server to that server. They all need a space on each server to edit their files or do some data retrieval work. They can collect their data on each server and send it back to their home location, but this is not feasible. Also practically it is not possible to carry their home dir to each location while login to that server.

But what if they get their default home dir on each server as they logged in.

RHEL6–36–AUTOFS-1


RHEL6–36–AUTOFS


WHAT IS AUTOFS?

Mounted partition is a dedicated resource in NFS whereas in autofs mount & unmount are not permanent. They automatically mounted whenever accessed and unmounted if not used for certain time.

WHY /WHEN /WHERE AUTOFS?

If we want to save precious bandwidth & system resources then we should opt for autofs.

Still not clear…?

Let’s have an example,