Skip to content

How To Configure Tcp Wrapper And What Is The Use Of Tcp Wrapper

Our Score
Click to rate this post!
[Total: 0 Average: 0]

In This Tutorial We Are Going To Learn How To Configure Tcp Wrapper And What Is The Use Of Tcp Wrapper In Redhat Enterprise Linux

Just Follow These Simple Steps 

Step-1 What Is The Use Of Tcp Wrapper ?

Tcp Wrapper Is Like Plug And Play And If We Have To Allow Or Deny Some

User,Netorks,Ip,Services Of Any Server So We Use This Tcp Wrapper And It Is Mainly For Security Reason Also

Step-2 Now How To Configure Tcp Wrapper 

If You Have To Allow Something In Tcp Wrapper Means Any Services Of Server,Network Or Any Single Ip Or Any User So We Have To Do Changes In vim /etc/host.allow File Or If We Have To Deny Something Or Block Any Ip Or Network So We Have To Do Changes In vim /etc/host.deny File

Step-3 Now Here Is The Commands Of Tcp Wrapper If We Have To Allow Or Deny Something

Here Is the Example In This Picture In Allow Side {vim /etc/host.allow Is The Configuration File Where We Have To Do This Changes }

1. {ALL : ALL} It Means It Allow All The Servives And All The Network And All The IP
2. {sshd : All} It Means It Allow All The Services Of SSh Server
3. {vsftpd : All} It Means It Allow All The Services Of Ftp Server

Now In Deny Side {vim /etc/host.deny Is The Configuration File Where We Have To Do This Changes }

1. {All : All} It Means It Deny All The Servives And All The Network And All The IP
2. {sshd : All} It Means It Deny All The Services Of SSh Server
3. {vsftpd : All} It Means It Deny All The Services Of Ftp Server

Now See This Picture Here Is The Combination Of Allow Or Deny

In Allow Side {vim /etc/host.allow Is The Configuration File Where We Have To Do This Changes }

1. {All : 1.0.0.0 /255.0.0.0} It Means It Allow All The Services Of Any Server To This Network
2. {vsftpd : All } It Means It All The Services Of Ftp Server
3. {All EXCEPT vsftpd : 2.0.0.0 /255.0.0.0} It Means It Allow All The Servives For This Network 2.0.0.0 /255.0.0.0 But Except Services Of ftp
4. {vsftpd : All EXCEPT 1.0.0.10 : deny} It Means It Allow All The Services Of FTP Server For This Ip 1.0.0.10 And deny All The Other IP’s And Network

In Deny Side {vim /etc/host.deny Is The Configuration File Where We Have To Do This Changes }

1.{sshd : 1.0.0.100} It Means It Deny All The Services Of SSH Server For This Ip
2.{vsftpd : 1.0.0.100} It Means It Deny All The Services Of FTP Server For This Ip
3.{in.telnet : All} It Means It Deny All The Services Of Telnet For This Ip
4.{vsftpd : 1.0.0.0 /255.0.0.0 : Allow} It Means It Allow All The Services Of Ftp Server Which Comes To This Network 1.0.0.0 /255.0.0.0

This Is All How To Configure Tcp Wrapper And What Is The Use Of TCP Wrapper

Leave a Reply

Discount Offer

Now Get 67% Discount

On Cyber Security Training                                                       Notes  

Click here  To Purchase

%d bloggers like this: