Step 3 - Creating of Microsegmentation Policies
Creating Microsegmentation Policies
Under the Infrastructure in the App Switcher
Scroll down on the side bar to go to "Security Policies"
Click on "Create Security Policy"
Click on "Secure Applications (App Policy)"
Click "Create"
Input the following parameters
- Name : "LAB-FLOW"
- Purpose: LAB
- Secure Entties : Generic Policy
- Scope of Secured Entities : VLAN Subnets
- Policy Hitlogs : Enabled Click Next
There is 3 different sections: Inbounds, App Type and Outbounds
- Click on "Set Rules on App Tier, Instead"
- Add in the "Web" and "DB" Tier
Rules to be set for in and out of the app
- Allow only outbound communication from the Web Tier to any address (allow all ports)
- Allow only inbound connection from your PC IP address to the Web Tier and DB Tier VMs (allow all ports)
- Allow all Communications from the Web to DB VMs
A sample of the output is as per below

Click Next
Click on the Radio button "Enforce". Click Save and Enforce
Verification that the Rules are working
- Ping from your PC to the Web and DB VM is successful
- Ping from the Web to DB VMs are successful
- Ping from the Web VM to the PC is successful
- Ping between the Web VM fail (because we disallowed VMs in the same tier to communicate with each other)
- Ping from the DB to the Web VM should fail (because we did not allowed traffic originating from DB to the Web VM)
- PIng from the DB to the PC fail (because we did not allow traffic originating forom DB to the Web VM)
The external subnet can be shared by 1 or more VPCs in a real world scenario