iptables 가 안먹혀요
작성자 정보
- 정재진 작성
- 작성일
컨텐츠 정보
- 2,670 조회
- 3 댓글
- 0 추천
- 목록
본문
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 는 임으로 적엇습니다.
관련자료
-
이전
-
다음
이대영님의 댓글
- 이대영
- 작성일
에서 ipv4.forward ? 엿나 그 뒤에보면 0으로 되잇을겁니다. 1로 수정하시고
해보세요^^
홍보성님의 댓글
- 홍보성
- 작성일
요로코롬 해보세요.
RH-Lokkit-0-50-INPUT Chain이 먼저 올라와 있어서 그러네요.
정재진님의 댓글
- 정재진
- 작성일