0

We use aws ec2 instances with the 'AWS Linux AMI 2' image.

We have a script for security updates with this code: yum update -y --security.

I want to allow only security update in outbound rules - aws security group. Can someone tell me what is the port + ip? if it has a specific IP... I think the port is HTTP 80 since it works after I add it.

user2503775
  • 223
  • 3
  • 9
  • 2
    It's not possible(it think is complecate) you need know every domain or possible domain, but you can secure command using sudo for example to protect unauthorized user execute the yum command. – Roid May 09 '22 at 19:58
  • I talked about the security group (I will have to open the instanse with rule 80 to everyone!), the script itself is avaiable only with SUDO. – user2503775 May 10 '22 at 09:50

0 Answers0