EC2で指定したIPをアクセス制限しよう
# iptables -P INPUT ACCEPT # iptables -P FORWARD ACCEPT # iptables -P OUTPUT ACCEPT # iptables -t filter -I INPUT -p tcp -s 8.8.8.8 -j DROP # service iptables save # service iptables start
# iptables -P INPUT ACCEPT # iptables -P FORWARD ACCEPT # iptables -P OUTPUT ACCEPT # iptables -t filter -I INPUT -p tcp -s 8.8.8.8 -j DROP # service iptables save # service iptables start