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

iptables 세팅을 했는데...ㅜㅜ

작성자 정보

  • 이지훈 작성
  • 작성일

컨텐츠 정보

본문

커널은 2.4.18-14smp 이구여...

메일 서버로 쓸려고... 22 , 25 , 110 빼구 다 막았습니다.

iptables -A INPUT -p tcp -m tcp --dport 22 -j ACCEPT

iptables -A INPUT -p tcp -m tcp --dport 25 -j ACCEPT

iptables -A INPUT -p udp -m udp --dport 25 -j ACCEPT

iptables -A INPUT -p tcp -m tcp --dport 110 -j ACCEPT

iptables -A INPUT -p udp -m udp --dport 110 -j ACCEPT

iptables -A INPUT -p tcp -m tcp -j REJECT

iptables -A INPUT -p udp -m udp -j REJECT

iptables 저장하고.... restart...

iptables -L 결과는....

[root@xxx mail]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp
ACCEPT udp -- anywhere anywhere udp dpt:smtp
ACCEPT tcp -- anywhere anywhere tcp dpt:pop3
ACCEPT udp -- anywhere anywhere udp dpt:pop3
REJECT tcp -- anywhere anywhere tcp reject-with icmp-port-unreachable
REJECT udp -- anywhere anywhere udp reject-with icmp-port-unreachable

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

이렇게 세팅을 했는데... 메일 주고 받는게 안되네요....

로그파일을 확인하니...

May 13 15:14:08 xxxx sendmail[11534]: AUTH=server, relay=[211.97.131.197], authid=eager10, mech=LOGIN, bits=0
May 13 15:14:48 xxxxk sendmail[11534]: j4D6E8uu011534: from=<eager10@smtp.co.kr>, size=1264, class=0, nrcpts=2, msgid=<004a01c55783$119fe130$087ba8c0@hunhoon71>, proto=ESMTP, daemon=MTA, relay=[211.97.131.197]
May 13 15:14:48 xxxx sendmail[11534]: j4D6E8uu011534: to=<eager10@smtp.co.kr>, delay=00:00:20, mailer=local, pri=60477, dsn=4.4.3, stat=queued
May 13 15:14:48 xxxx sendmail[11534]: j4D6E8uu011534: to=<eager10@lycos.co.kr>, delay=00:00:20, mailer=esmtp, pri=60477, dsn=4.4.3, stat=queued

고수 분들...지도 부탁합니다...^^

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,138 명
  • 현재 강좌수 :  36,196 개
  • 현재 접속자 :  568 명