TCP-WRAPPER
Two files which is used for tcp-wrappers
1> ls /etc/hosts.allow
2> ls /etc/hosts.deny
NOTE :- tcp-wrappers will control only that services which are dependent on
----- `libwrap.so` library.
#which vsftpd ---> ( it will show the binary location of the vsftpd )
# ldd /usr/bin/vsftpd ----> ( this ldd command will show the dependency list )
# strings /usrlib/libwrap.so | less ----> ( to read the library )
# man 5 hosts_access ----> ( man page for tcp-wrappers )
# vim /etc/hosts.deny
vsftpd:ALL ------> deny service to everyone
vsftpd:ALL EXCEPT .example.com
vsftpd:ALL EXCEPT 192.168.1.25
vsftpd:192.168.1.0/255.255.255.0
vsftpd:.yahoo.com
sshd,vsftpd:.yahoo.com ----> ( for ssh & vsftpd )
ALL:ALL -----> ( this is for all service for all daemon )
--------------------------------------------------------------------------------
SHELL COMMAND :-
################
1> SPAWN:- When connection will stablish to access the main daemon `spawn` will execute the process which is given after spawn as a child process
# vim /etc/hosts.allow
vsftpd:ALL:spawn /bin/echo `/bin/date` from %h >> /var/log/abc.log
2> TWIST:- If the twist is given as shell command & even if it is mentioned in /etc/hosts.allow file. It will not allow access of main daemon, instead of that it will execute the process which is given after twist.
# vim /etc/hosts.allow
vsftpd:ALL:twist /bin/echo "Bad hosts are not allowed"
5 comments:
Your Blog is amazing...Thanks for sharing this helpful article..
payrollsolutionexperts
Article submission sites
This post has covered an exceptionally fascinating subject that the readers are looking for. Keep it up.
Spoken English Classes in Velachery
Spoken English Classes in Tambaram
Spoken English Classes in OMR Chennai
Spoken English Class in Ambattur
Spoken English Classes in Chennai
Spoken English in Chennai
Great inspiration today!!! thanks for your blog.
Java Training in Bangalore
Best Java Training Institutes in Bangalore
AWS Training in Bangalore
data analytics courses in bangalore
hadoop training in bangalore
rpa training in bangalore
Great info. The content you wrote is very interesting to read. This will loved by all age groups.
ccna Training in Chennai
Certified Ethical Hacking Course in Chennai
Ethical Hacking Course
Angularjs Training in Chennai
gst classes in chennai
Ethical Hacking Certification
Hacking Course
Worth for my valuable time, I am very much satisfied with your blog. Thanks for sharing.
RPA Training in Chennai
Robotics Process Automation Training in Chennai
Ethical Hacking Course in Chennai
Python Training in Chennai
Post a Comment