You can use tcpwrappers to Block user,ip,daemon from outside or your inside network.
For allow use host.allow file and to block use host.deny file.
Step 1. Use your favorite editor like vi.
Step 2. Type vi /etc/hosts.deny
Step 3. At the bottom line just add the below line
To restricted all of daemon process
Step 4. Save it.
Step 5. Open ./etc/hosts.allow. with vi editor
Step 6. At the bottom line append the below line
.ALL ( some ip that you want to allow):allow.
To allow anything from that IP address
Step 7. Save it.
The following two tabs change content below.
Sr. Engineer (DevOps)
Loves to work on Opensource products. Having experience on Linux environment. Knowledge on Public cloud services like AWS, Rackspace, DigitalOcean, Linode. Please don't hesitate to give a comment on the posts. Your comments are my strength.
Latest posts by Tapas Mishra (see all)
- Working with Docker – II - December 16, 2016
- Working with Docker – I - November 28, 2016
- How to work with Chef using Oracle VirtualBox and Vagrant on a Windows host – Part II - November 30, 2014