How to do allow/disallow access of a specific IP address or IP range on the remote host

INTRODUTION


I would like to add access control to a specified IP or IP range.


INSTRUCTION


The solution for connection between XDMCP and Xstart would be through the control options.


To use XDMCP connection control, open file: /etc/X11/xdm/Xaccess

To use Xstart connection control, open file: etc/hosts.allow, /etc/hosts.deny


In the case of using Solaris, access http://www.sunfreeware.com

The basic direction in using TCP Wrapper is to use the same direction as the solution shown below.

/etc/hosts.deny -> If permission to connect is not granted then check with the service host list

/etc/hosts.allow -> Permission to connect through the service host list


Format
Service period: Host list

-> 192.168.1.0 ~192.168.1.255 from telnet connection is intercepted.