질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

iptables 설정후 ftp접속이 안되네요..ㅡ.ㅡ?

작성자 정보

  • 더라 작성
  • 작성일

컨텐츠 정보

본문

iptables -F

 

iptables -I INPUT -i lo -j ACCEPT

IPTAB="iptables -A INPUT -i eth0"

# 기본 룰셋
$IPTAB -p icmp -j ACCEPT
$IPTAB -p tcp --dport 21   -j ACCEPT
$IPTAB -p tcp --dport 22   -j ACCEPT
$IPTAB -p tcp --dport 25   -j ACCEPT
$IPTAB -p tcp --dport 53   -j ACCEPT
$IPTAB -p tcp --sport 53   -j ACCEPT
$IPTAB -p tcp --dport 80   -j ACCEPT
$IPTAB -p tcp --dport 110  -j ACCEPT
$IPTAB -p tcp --dport 3306 -j ACCEPT

$IPTAB -p tcp --dport 1:1024 -j DROP

 

위 내용이 스크립트 내용입니다.

왜 안될까요? ㅡㅡㅋ

 

밑에꺼 iptables 리스트 결과구염


Chain INPUT (policy ACCEPT)
target     prot opt source               destination        
DROP       all  --  202.96.59.201        anywhere          
DROP       all  --  ANancy-153-1-72-56.w83-203.abo.wanadoo.fr  anywhere          
DROP       all  --  212.14.53.4          anywhere          
ACCEPT     all  --  anywhere             anywhere          
ACCEPT     icmp --  anywhere             anywhere          
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:ftp
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:ssh
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:smtp
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:domain
ACCEPT     tcp  --  anywhere             anywhere           tcp spt:domain
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:http
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:pop3
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:mysql
DROP       tcp  --  anywhere             anywhere           tcp dpts:tcpmux:1024

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination        

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination   

분명 열려있는데 안되는군요 ㅡㅡ;

/etc/hosts.allow , /etc/hosts.deny 와는 상관없구영.....

iptables 정지 시키면 접속되네영......

고수님 부탁드려요~~~~~~~

관련자료

댓글 2

홍보성님의 댓글

  • 홍보성
  • 작성일
20번도 오픈하셔야죵. ftp-data port

변동엽님의 댓글

  • 변동엽
  • 작성일
넹 감사. ㅋ

공지사항


뉴스광장


  • 현재 회원수 :  60,034 명
  • 현재 강좌수 :  35,787 개
  • 현재 접속자 :  226 명