telnet 접속 문제(고수님께 부탁 !!!-일주일째 고생합니다.)

익명 사용자의 이미지

사무실 서버옆의 pc와 옆사무실 pc에서는 텔넷이 잘됩니다.
그런데 다른 지역 사무실 과 저희 집에서 텔넷접속이 안되네요.

환경 테스트 서버(레드헷7.2)
위의 모든 pc 윈98SE

그리고 이상한것은 서버 바로 옆의 제 pc에서는 웹브라우저상에서 접속이
되는데...

역시 서버 바로 옆의 pc에서는
210.110.68.144를 url에 입력하고 엔터를 치면 문서가 보입니다.
(물론 제 집에가서 해보면 그것이 안되요... 집pc(win98SE)의 dns를
210.110.68.144로 설정해도 안되요.)

그런데...
이상한 것은 DNS 설정 전에는 분명히 집에서 텔넷 접속이 되었었거든
요...

확실합니다. 서버를 포맷을 몇번 했거든요...

그리고 방화벽과는 관계가 없는 것 같았어요...
setup 에서 보안설정을 높게 잡았어도 텔넷이 잘되었거든요...
집에서도... 잘 되었죠

환경은 다음과 같습니다.
세부 설정중에 telenet, wu-ftp를 가능케 했거든요...

텔넷접속이 안되는 이유가 뭘까요?
dns 설정을 하면 집에서는 텔넷접속이 안되던데...

-------------------------------------------------------------
제 서버 옆의 pc에서 텔넷(바로 옆의 pc 는 텔넷이 됩니다) host를 해봣
습니다.
참고 서버의 명을 ns.besttop10.co.kr 도메인을 besttop10.co.kr 로 설

]0; Neo@ns /home/Neo[ root@ns Neo]# host besttop10.co.kr
besttop10.co.kr. has address 210.110.68.144
]0; Neo@ns /home/Neo[ root@ns Neo]# host ns.besttop10.co.kr
ns.besttop10.co.kr. has address 210.110.68.144

]0; Neo@ns /home/Neo[ root@ns Neo]# host yahoo.com
;; connection timed out; no servers could be reached

]0; Neo@ns /home/Neo[ root@ns Neo]# nslookup
Note nslookup is deprecated and may be removed from future
releases.
Consider using the `dig' or `host' programs instead. Run nslookup
with
the `-sil[ent]' option to prevent this message from appearing.
> besttop10.co.kr
Server 210.110.68.144
Address 210.110.68.144#53
Name besttop10.co.kr
Address 210.110.68.144
> yahoo.com
;; connection timed out; no servers could be reached
>

야후를 nslookup에서 해보면 안됩니다.

제 서버 옆의 pc에서 텔넷(바로 옆의 pc 는 텔넷이 됩니다) host를 해봣
습니다.

-------------------------------------------------------------

외부에서 telnet으로 접속이 되지 않는 원인.
1. telnet 데몬이 올라가 있지 않다. -> ntsysv 명령으로 확인
===========================================================
telnet, wu-ftpd 데몬 올라와있습니다.

2. hosts.deny, hosts.allow 파일에서 외부의 접근을 deny 시켜 두었는가


===========================================================
주석으로 막혀있는 글만 있음다.

3. dns 설정이 잘못 되었다. -> dns 다시 설정해 보고 외부에서 nslookup
명령
으로 확인. 이 문제가 가장 큽니다.
============================================================
바로 옆의 컴에서 nslookup을 하고
besttop10.co.kr 하면 정상으로 나옵니다.

4. 방화벽 설정이 telnet 을 막았다. -> setup 에서 방화벽 해제
=============================================================
많이 살펴본 항목이므로 문제 없음다.

5. password 파일에서 bash 지정을 막아 두었다. -> 특별한 경우이므로 가
능성
이 없습니다.
=====================================================================
====
===========
이것은 모르는 것인데...

해결 방법 찾기
1. 서버에서 직접 nslookup 또는 host 명령으로 질의
====================================================
서버에서 host yahoo.com 하면 안나옴
host besttop10.co.kr은 잘 나옴

2. 정상적으로 나오면 외부 컴퓨터에서 nslokup 또는 ping 명령으로 질
의. IP
Address 로도 해보고 도메인 네임으로도 해서 둘다 나와야 합니다.
======================================================
옆의 pc에서 해본 것을 보여드리면...

> besttop10.co.kr <= 도메인으로 로 해봅니다 !!!
Server 210.110.68.144
Address 210.110.68.144#53
Name besttop10.co.kr
Address 210.110.68.144
>
>
> 210.110.68.144 <= ip 로 해봅니다 !!!
Server 210.110.68.144
Address 210.110.68.144#53
144.68.110.210.in-addr.arpa name = ns.besttop10.co.kr.

옆의 pc에서 ping 테스트
===============================
]0; Neo@ns /home/Neo[ root@ns Neo]# ping -c4 210.110.68.144

PING 210.110.68.144 (210.110.68.144) from 210.110.68.144 56(84)
bytes
of data.
Warning time of day goes back, taking countermeasures.
64 bytes from 210.110.68.144 icmp_seq=0 ttl=255 time=255 usec
64 bytes from 210.110.68.144 icmp_seq=1 ttl=255 time=74 usec
64 bytes from 210.110.68.144 icmp_seq=2 ttl=255 time=68 usec
64 bytes from 210.110.68.144 icmp_seq=3 ttl=255 time=82 usec
--- 210.110.68.144 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/mdev = 0.068/0.119/0.255/0.079 ms

3. 2.번이 되지 않으면 서버에서 # nmap 210.110.68.144 명령으로 포트를
스캐
닝.
DNS, telnet 등의 포트가 스캐닝되지 않으면 설치가 잘못된 것입니다.
=====================================================================
===

]0; Neo@ns /home/Neo[ root@ns Neo]# nmap 210.110.68.144
Starting nmap V. 2.54BETA22 ( www.insecure.org/nmap/ )
Interesting ports on ns.besttop10.co.kr (210.110.68.144)
(The 1534 ports scanned but not shown below are in state closed)
Port State Service
21/tcp open ftp
22/tcp open ssh
23/tcp open telnet
53/tcp open domain
80/tcp open http
111/tcp open sunrpc
1024/tcp open kdm
3306/tcp open mysql
Nmap run completed -- 1 IP address (1 host up) scanned in 1 second

************
집에서 텔넷이 왜 안될까요???
************
메일로 file 보내드립니다.

-------------------------------------------------------------

제 서버 옆의 pc(윈98SE)의 DNS 설정을 제 서버(210.110.68.144)로 설정해


재부팅을 하니... 인터넷이 안되는 현상 발견했습니다.

그러나 그상태에서 pc의 도스 에서 제 서버로 ping을 하니
제대로 수신하더군요...

C\WINDOWS>ping besttop10.co.kr
C\WINDOWS>ping www.besttop10.co.kr
C\WINDOWS>ping mail.besttop10.co.kr
C\WINDOWS>ping 210.110.68.144

모두 제대로 수신되요...

익명 사용자의 이미지

글쓴것으로 봐서는 별 문제가 없는것 같습니다. 단,
DNS를 운용을 하시는데 윈도우의 DNS 설정이나 resolv.conf의 설정은 국
내 대형DNS(ex. kns.kornet.net)를 사용하시는 것이 좋습니다.

named.conf의 recursion=no로 하시는 편이 좋을겁니다.

서버가 정보가 맞다면 서울여대에 있는것 같은데 보통 전산담당 직원이 라
우터 관리를 잘 하지않을 가능성이 제일 큽니다.
학교 전산망은 엉성하기 짝이 없지요. 서버 바로 옆의 PC에서 된다면 문제
는 라우터문제 밖에 달리 없습니다.
(윈도우의 DNS를 문제의 그 서버로 설정해놓으면 당연히 접속이 되질 않
죠.)

익명 사용자의 이미지

감사합니다.

님의 답변에 감사드립니다.
알아본결과 subnet을 잘못 설정했습니다.
255.255.255.0 => 255.255.255.128로 설정하니... 됩니다^^

감사합니다.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.