Skip to main content

Posts

Showing posts with the label wrappers

TCP Wrappers

TCP Wrappers The Simple thing I can tell us all about TCP Wrappes is  " TCP Wrappers are Host-Based Networking Access Control List (ACL) System & used to filter Network access to Internet. For all services in Linux TCP wrappers cant be applicable by default and its possible if source of the service got compiled with libwrap. To check whether given service is compatible or not with TCP Wrappers , do as ldd  /path/to/service | grep libwrap.so For example lets check sshd service having support or not. ldd /var/sbin/sshd | grep libwrap.so Now it will print some output like its there for sshd. Similarly you can check for any other service you want. Wild Card Entries: ALL ,LOCAL, UNKNOWN,KNOWN. 1. To block all hosts from accessing all services remotely # vi /etc/hosts.deny ALL : ALL It will drop all the connections. 2. Allow all except one domain ALL : @support ALL : .tech.com EXCEPT development.tech.com 3. Placing logs for unauthorized access ALL: .developement.com : spawn /bin...