포트 포워딩 공부하다가 갑자기 방화벽에서
텔넷, 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 이상없이
됩니다. 제가 통 허접이라 .... 여기 게시판에 관련 글이
없어 이렇게 적었습니다.