Thursday, October 16, 2008

Linux: Deny Access from Certain Machine

Problem
Wrongly configured automation scripts logged in my VMware Linux and cleaned my environment!!

Solution
Prevent connections from the scripting machine sh-demo

Detailed Step
(1) Login as root and edit file /etc/hosts.deny
(2) Add one line and save; it will become effective immediately

ALL:sh-demo
or
ALL:10.10.49.36

Links
Using TCP Wrappers to secure Linux
RedHat 9: Chapter 15 TCP Wrappers and xinetd

Tag
deny connection; /etc/hosts.deny; TCP wrapper

No comments: