Monday, August 5, 2013

How to use hosts.allow and hosts.deny

1. Open terminal
2. su - if you not a root user
3. Use your favorite editor like vi.
4. Type vi /etc/hosts.deny
5. At the bottom line just type “ALL:ALL:deny” to restricted all of deamon process
6. Save it.
7. Open “/etc/hosts.allow” with vi editor
8. At the buttom line “ALL:(some ip that you allow):allow” to allow anything from my IP address
9. Save it.

Read more: http://linuxpoison.blogspot.com/2008/01/how-to-use-hostsallow-and-hostsdeny.html#ixzz2b4xRVqjx

0 comments: