Learning Academy

The Cure of Ignorance is to Question. MUHAMMAD (PBUH)

CentOS

TCP Wrappers

Spawn

Launches a shell command as a child process. In the following example, clients attempting to access ssh services from the example.com domain are quietly logged to a special file:

sshd : .example.com \  
: spawn /bin/echo `/bin/date` from  %h>>/var/log/sshdallowed.log \
: allow
# %h Returns the client’s hostname or IP address

Muhammad Shaukat

Content Developer at LearnAcad.com

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Pin It on Pinterest