본문 바로가기

HPUX

[HPUX] 특정아이피 서버로 접속불가능하게 차단하기

파일위치 : /var/adm/inetd.sec


[/var/adm]# cat inetd.sec
# @(#)B.11.11_LRinetd.sec $Revision: 1.10.214.1 $ $Date: 96/10/08 13:20:06 $
#
#
# The lines in the file contain a service name, permission field and
# the Internet addresses or names of the hosts and/or networks
# allowed to use that service in the local machine.
# The form for each entry in this file is:
#
# <service name>   <allow/deny>  <host/network addresses, host/network names>
#
# For example:
#
# login         allow   10.3-5 192.34.56.5 ahost anetwork
#
# The above entry allows the following hosts to attempt to access your system
# using rlogin:
#               hosts in subnets 3 through 5 in network 10,
#       the host with Internet Address of 192.34.56.5,
#       the host by the name of "ahost",
#       all the hosts in the network "anetwork"
#
# mountd      deny    192.23.4.3
#
# The mountd entry  denies host  192.23.4.3  access to the NFS  rpc.mountd
# server.
#
# Hosts and network names must be official names, not aliases.
# See the inetd.sec(4) manual page for more information.
dtspc   allow   127.0.0.1 loopback cpnss1
telnet  deny    150.23.24.99 <---------추가해주면된다
ftp     deny    150.23.24.99 <---------추가해주면된다
ssh     deny    150.23.24.99 <---------추가해주면된다

'HPUX' 카테고리의 다른 글

[HPUX] routing table 추가  (0) 2013.03.13