Hi@akhtar,
Inbound means incoming traffic coming to your EC2 instances. For that you have to add inbound rule. For web server generally we use port 80.
Outbound means outgoing traffic from your EC2 instances. To connect internet or any browser you have to add outbound rule.
Check out AWS solution architect certification Course today!
Thank You