- 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
推薦閱讀
- Embedded Linux Projects Using Yocto Project Cookbook
- 移動UI設(shè)計(jì)(微課版)
- Python數(shù)據(jù)分析基礎(chǔ)
- vSphere High Performance Cookbook
- Unity Virtual Reality Projects
- 數(shù)據(jù)結(jié)構(gòu)與算法JavaScript描述
- C#程序設(shè)計(jì)教程
- jQuery從入門到精通 (軟件開發(fā)視頻大講堂)
- Hands-On JavaScript High Performance
- UI智能化與前端智能化:工程技術(shù)、實(shí)現(xiàn)方法與編程思想
- 小程序,巧運(yùn)營:微信小程序運(yùn)營招式大全
- Python面向?qū)ο缶幊蹋簶?gòu)建游戲和GUI
- Linux C編程:一站式學(xué)習(xí)
- 響應(yīng)式Web設(shè)計(jì):HTML5和CSS3實(shí)戰(zhàn)(第2版)
- Developing RESTful Web Services with Jersey 2.0