2012년 2월 23일 목요일

개인 설정 파일 iptable


# Generated by iptables-save v1.4.5 on Thu Feb 23 16:56:04 2012
*nat
:PREROUTING ACCEPT [59:4335]
:POSTROUTING ACCEPT [10:807]
:OUTPUT ACCEPT [10:807]
-A OUTPUT -d 127.0.0.1/32 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080
-A OUTPUT -d 192.168.24.41/32 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 80
80
COMMIT
# Completed on Thu Feb 23 16:56:04 2012
# Generated by iptables-save v1.4.5 on Thu Feb 23 16:56:04 2012
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [947:105878]
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 3306 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 8080 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
# Completed on Thu Feb 23 16:56:04 2012

댓글 없음:

댓글 쓰기