- AWS Networking Cookbook
- Satyajit Das Jhalak Modi
- 355字
- 2021-07-02 19:41:36
How to do it...
- Log in to your AWS account and open the VPC Dashboard as shown in the earlier recipe.
- 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
- 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
- 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
- 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
- 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
- You can delete a particular SG by selecting Delete Security Group from the security group actions:

Delete Security Group
推薦閱讀
- iOS面試一戰(zhàn)到底
- Vue.js快速入門(mén)與深入實(shí)戰(zhàn)
- Network Automation Cookbook
- 數(shù)據(jù)結(jié)構(gòu)習(xí)題精解(C語(yǔ)言實(shí)現(xiàn)+微課視頻)
- Learning SQLite for iOS
- jQuery開(kāi)發(fā)基礎(chǔ)教程
- Scala for Machine Learning(Second Edition)
- R用戶(hù)Python學(xué)習(xí)指南:數(shù)據(jù)科學(xué)方法
- Learning Nessus for Penetration Testing
- App Inventor 2 Essentials
- Practical Maya Programming with Python
- Mastering Leap Motion
- Learning Gerrit Code Review
- Instant JRebel
- Kudu:構(gòu)建高性能實(shí)時(shí)數(shù)據(jù)分析存儲(chǔ)系統(tǒng)