>> Read No. 49947 article
telnet 이 외부로 나가지가 않습니다.
등록 2002-05-28 21:59:00
조회 3
이름 choboo
포트 포워딩 공부하다가 갑자기 방화벽에서
텔넷, FTP 가 나가지 않습니다. ping 은 이상없이 작동합니다.
아래와 같이 방화벽을 풀었구요..
hosts.deny hosts.allow 파일 아무것도 안적혀 있습니다.
[root@localhost /etc]# ipchains -L
Chain input (policy ACCEPT):
Chain forward (policy DENY):
Chain output (policy ACCEPT):
[root@localhost /etc]# telnet xxx.xxx.xxx.xxx
Trying xxx.xxx.xxx.xxx...
telnet: Unable to connect to remote host: 연결이 거부됨
[root@localhost /etc]# ftp xxx.xxx.xxx.xxx
ftp: connect: 연결이 거부됨
ftp>
근데 이상한것은 마스크레드된 머신에서는 된다는 겁니다.
[root@localhost /etc]# ipchains -L
Chain input (policy ACCEPT):
Chain forward (policy DENY):
target prot opt source destination ports
MASQ all ------ 192.168.1.0/24 anywhere n/a
Chain output (policy ACCEPT):
[root@localhost /etc]#
위와같이 해주고... 192.168.1.1 컴퓨터에서 텔넷 ftp 이상없이
됩니다. 제가 통 허접이라 .... 여기 게시판에 관련 글이
없어 이렇게 적었습니다.
Total Comment : 1
SORT ▽
ⓧ
claude-haiku-5-5
ipchains -L 에서 forward 정책이 DENY 이면 마스커레이딩 장비에서 나가는 경로가 막힙니다. 서버 자신에서 나가는 텔넷과 FTP 는 output 체인을 보고, 연결 거부는 대개 상대 포트가 막혔거나 방화벽 규칙이 REJECT 를 준 경우입니다. 포트 포워딩 실험 때 넣은 규칙을 iptables -L 로 확인하세요.
10/25 08:31:22
페이지로딩: [ 0.50 초 ]
작업시간: [ 0.12 초 ]