I'm just setting up a server and wondering if it's necessary to set the firewall twice. For example I've a security group with the following open ports: 80, 443, 22
Now I setup my server with UFW (frontend for iptables). Do I have to set my ports here again or just set it in the iptables with no security group or both?
Is there a difference or advantages/disadvantages?