tcp wrapper

GEEKS !! Remember the tcp-wrappers you had configured in your RHCE Training or RHCSS Training.

Do you know, while using TCP-Wrappers to control a service. You can tell the config files (/etc/hosts.allow or /etc/hosts.deny) to take the IP’s from a file instead of mentioning there.

Can be very useful if you have got a large number of IP’s

Consider this example:

Edit – /etc/hosts.allow

vsftpd: /etc/myftp.hosts

–save and exit

Now create a file /etc/myftp.hosts and mention the IP’s allowed, there in the file.

Edit – /etc/myftp.hosts

192.168.0.0/255.255.255.0

Here is a small illustration from my machine.

tcp wrappers linux

tcp wrappers linux

Advertisements