Skip to content

ssh 특정 ip or 특정대역폭만 접속 허용

조회 수 19564 추천 수 0 2012.03.20 10:09:58
/etc/hosts.deny

/etc/hosts.allow

위 두파일을 수정해 줘야 함


_hosts.deny

:#

# hosts.deny    This file describes the names of the hosts which are

                  *not* allowed to use the local INET services, as decided

                   by the '/usr/sbin/tcpd' server.

#

# The portmap line is redundant, but it is left to remind you that

# the new secure portmap uses hosts deny and hosts.allow, in particular

# you should know that NFS uses portmap!

sshd : ALL


_hosts.allow

:#

#

# hosts.allow    This file describes the names of the hosts which are

                   allowed to use the local INET services, as decided

                   by the '/usr/sbin/tcpd' server.

sshd : 222.222.222. :ALLOW -------->특정대역만 허용

sshd : 222.222.222.222 :ALLOW ---->특정 ip만 허용


profile

일요일은 짜빠게뤼~ 먹는날~^^

엮인글 :
http://adminplay.com/81383/230/trackback
List of Articles
번호 제목 글쓴이 날짜 조회 수sort

리눅스 로그파일 관리 [로그파일 삭제하는 방법]

kernel: nf_conntrack: table full, dropping packet.

리눅스에서 실수로 삭제한 파일을 복구

  • ADMIN
  • 2008-12-10
  • 조회 수 23637

[Linux]RedHat Enterprise Linux 5 계열 VNC Server 설정

DRBD(Distributed Replicated Block Device) 에 대해서

[Linux] too many files 에러가 날때

time.bora.net 시간 동기화후 dovecot 데몬이 죽는 현상 해결

젠투리눅스에서 잃어버린 암호를 다시 설정하기

리눅스 공유 메모리의 설정 (세마포어)

VI 에디터 유니코드(UTF-8)로 인코딩 전환

리눅스에서 특정 파일을 제외하고 삭제하기

  • ADMIN
  • 2008-11-03
  • 조회 수 24012

MRTG 소스 설치

하드웨어정보 확인(lshw) file

kernel panic 발생 시 자동으로 리부팅 설정

  • ADMIN
  • 2008-12-10
  • 조회 수 24127

로드밸런싱의 ‘꽃’, L4/L7 스위치 관심 집중

[Flash] 크로스 도메인 설정 방법

lighttpd와 Apache의 성능 차이 file [2]

  • l2zeo
  • 2012-03-08
  • 조회 수 24284

대용량 하드 디스크 파티셔닝 (GPT 파티션)

커널 컴파일 장애 처리 perl: warning: Please check that...

리눅스 Proxy Server[Squid] 설정법[RedHatLinux8.0]

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234