官术网_书友最值得收藏!

How to do it...

  1. Log in to your AWS account and open the VPC Dashboard as shown in the earlier recipe.
  2. Click on Security Group in the left menu bar under the Security menu. The default SG created with the default VPC and other VPCs that we created in Chapter 1, Getting Started with AWS Networking Components, appears on the screen. If you click on Inbound Rules and Outbound Rules, you will see that all traffic, with all protocols from all ports, is allowed. So effectively, the firewall is all open and traffic from any source, protocol, and port can connect to the resources in this SG:
 Default Security group
  1. Click on Create Security Group. The following window will open. Put in the required details and the  VPC with which you want to associate the SG. Click on Yes, Create:
 Security Group creation from console
  1. You can now see the new SG. However, there is one important difference from the default SGs: there are no Inbound Rules defined. This means no traffic is allowed inside this SG:
 Dashboard with created Security Group
  1. Click on the Edit button under Inbound Rules. You can select the traffic type from the options. For now, put SSH. In the Source, you can mention any valid CIDR range, such as your corporate DC CIDR range. For now, put 0.0.0.0/0. You can also mention the security groups in the same VPC. You can add any additional inbound rules by clicking Add another rule and add HTTP, as shown. Click on the Save button:
 Configure Security Group inbound rule
  1. You can see that the SG Inbound Rules has been saved successfully. Click on Outbound Rules. You can see that all outgoing traffic types to all ports and all destinations are allowed. For now, we are not modifying this. However, you can modify it if required:
 Security Group outbound rules
  1. You can delete a particular SG by selecting Delete Security Group from the security group actions:
 Delete Security Group
主站蜘蛛池模板: 吐鲁番市| 阜新市| 崇信县| 逊克县| 温泉县| 肇州县| 石城县| 墨竹工卡县| 万年县| 东平县| 渑池县| 宜丰县| 页游| 宁乡县| 永仁县| 梁山县| 赤峰市| 原阳县| 格尔木市| 昌黎县| 长汀县| 赤峰市| 灵丘县| 江西省| 二手房| 岳阳市| 景洪市| 富阳市| 新宁县| SHOW| 尼勒克县| 石家庄市| 蓬溪县| 上思县| 苗栗市| 江源县| 蕲春县| 洛宁县| 彭山县| 麻城市| 鄱阳县|