iptables 설정후 ftp접속이 안되네요..ㅡ.ㅡ?
작성자 정보
- 더라 작성
- 작성일
컨텐츠 정보
- 3,097 조회
- 2 댓글
- 0 추천
- 목록
본문
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 정지 시키면 접속되네영......
고수님 부탁드려요~~~~~~~
관련자료
-
이전
-
다음
홍보성님의 댓글
- 홍보성
- 작성일
변동엽님의 댓글
- 변동엽
- 작성일