iptables學習04
[plain]
iptables -A INPUT -i lo -j ACCEPT
iptables -A -p tcp -m multiport 22,80 -j ACCEPT
iptables -A INPUT -m state --state RELATED, ESTABLISHED -j ACCEPT
iptables -P INPUT DROP
[plain]
iptables -F
iptables -X
iptables -Z
iptables -P INPUT DROP
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -i eht0 -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -i eht0 -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -i eht0 -p tcp --dport 3128 -j ACCEPT
[plain]
service iptables save