amazon web services - AWS Security group - Do I need to open outbound port for accessing internet or using yum -


as read aws security groups, must open outbound ports initiate traffic within instance. if have access website or download packages (using yum) on http? need open specific ports this? understand http/https client uses random ports make socket connection in case should open ports?

in order make connections ec2 instance internet, must open outbound ports in security group.

the port number need open destination port, not source port(s).

some examples:

  • to allow http connections ec2 instance internet, need create rule 0.0.0.0/0 on port 80.
  • to allow https connections ec2 instance internet, need create rule 0.0.0.0/0 on port 443.

if web servers you're connecting listening on different ports (aside 80 or 443), need change or add more rules accordingly.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -