How do I allow certain IPs and block all other connection in iptables on AMAZON EC2?
You can accomplish this using
UFW and set default incoming to deny:
$ sudo ufw enable && sudo ufw default deny incoming
Then you can allow specific IP's with:
$ sudo ufw allow from 192.168.1.10 to any
This will allow IP-address
192.168.1.10 to any port on your firewall.