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

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
主站蜘蛛池模板: 思茅市| 赤水市| 彰化县| 吕梁市| 普安县| 凤冈县| 缙云县| 钦州市| 上高县| 彩票| 仁寿县| 肥西县| 东方市| 徐汇区| 栾川县| 平泉县| 武鸣县| 芜湖县| 定安县| 永年县| 蓬安县| 曲周县| 松滋市| 浪卡子县| 鹤山市| 南投市| 台东市| 台中市| 弋阳县| 洞口县| 德昌县| 大竹县| 英德市| 嘉祥县| 阿荣旗| 北宁市| 正镶白旗| 临泽县| 关岭| 西充县| 普陀区|