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

iptables 가 안먹혀요

작성자 정보

  • 정재진 작성
  • 작성일

컨텐츠 정보

본문

 

 

 iptables 에

iptables -A INPUT -s 111.111.111.111 -j DROP

이렇게 사무실 아이피 차단하고 웹이나 기타 등등으로 접속해도

차단이 안되는데 따로 설정하는 파일이 있나요?

 

아래는 iptables -L  리스트 입니다

Chain INPUT (policy ACCEPT)
target     prot opt source               destination
RH-Lokkit-0-50-INPUT  all  --  anywhere             anywhere
DROP       all  --  111.111.111.111      anywhere

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
RH-Lokkit-0-50-INPUT  all  --  anywhere             anywhere

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain RH-Lokkit-0-50-INPUT (2 references)
target     prot opt source               destination
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:ssh flags:SYN,RST,ACK/SYN
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:smtp flags:SYN,RST,ACK/SYN
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:http flags:SYN,RST,ACK/SYN
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:ftp flags:SYN,RST,ACK/SYN
ACCEPT     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere
REJECT     tcp  --  anywhere             anywhere           tcp flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT     udp  --  anywhere             anywhere           udp reject-with icmp-port-unreachable

*여기서 111.111.111.111 는 임으로 적엇습니다.

관련자료

댓글 3

이대영님의 댓글

  • 이대영
  • 작성일
/etc/sysctl.conf
에서 ipv4.forward ? 엿나 그 뒤에보면 0으로 되잇을겁니다. 1로 수정하시고
해보세요^^

홍보성님의 댓글

  • 홍보성
  • 작성일
iptables -I INPUT 1 -s 111.111.111.111 -j DROP
요로코롬 해보세요.
RH-Lokkit-0-50-INPUT Chain이 먼저 올라와 있어서 그러네요.

정재진님의 댓글

  • 정재진
  • 작성일
막히는지는 두고봐야 알것같구요 일단 답변감사헤요~

공지사항


뉴스광장


  • 현재 회원수 :  60,134 명
  • 현재 강좌수 :  36,188 개
  • 현재 접속자 :  252 명