This is just example configure for 2 files: hosts.allow, hosts.deny:
- sudo vim /etc/hosts.deny
- ALL : ALL -> For disabled all host can not access my server
- sudo vim /etc/hosts.allow
- sshd: 192.168.11.1 -> For enabled host that can access my server
- sudo /etc/init.d/ssh restart
- Done!
Good luck!
No comments:
Post a Comment