Questions tagged [aws-security-group]

Amazon EC2 Security Groups

Amazon EC2 Security Groups for EC2. A security group acts as a virtual firewall that controls the traffic for one or more instances. When you launch an instance, you associate one or more security groups with the instance.

See Amazon EC2 Security Groups

820 questions
0
votes
1 answer

Timeout accessing Amazon EC2 machine from outside even with security group allowing everything

how are you? I have a question regarding external access to my (dockerized or not) application. I have a simple ping-pong socket communication using socket.io with the following code files: server.js let Server = require('socket.io') const io = new…
0
votes
1 answer

Telnet to a specific port on my ec2 instance

I need to telnet to my ec2 instance on port 2222. I have included it in the security groups with source as Anywhere and Custom TCP Rule. It is a 64 bit Linux Machine. I am able to connect via port 22 but when I try with 2222, it shows telnet: Unable…
Harshit
  • 711
  • 1
  • 9
  • 29
0
votes
2 answers

Restrict the access to aws instance from specific IP

I want to set the security groups for the web server running in aws instance.My website should be accessible to through http/https. But file modification access to be set to particular IP address.I am currently connected to a Wifi router, and as I…
0
votes
1 answer

Cloudformation Security Group

I am trying to create a cluster of ElasticSearch servers on EC2. ElasticSearch uses a few defined ports to replicate and perform tasks like leader election. I want to create a security group in my CloudFormation‎ template that locks down these ports…
0
votes
2 answers

AWS security group that allows instances within VPC to connect doesn't work over public IP

I have a VPC set up in AWS and have a security group that allows inbound connections from the VPC's CIDR block and have assigned it to my instances. SSH and TCP work fine while using the private IP addresses. However when using public ip addresses…
0
votes
2 answers

Is there any way of altering the CidrIp value of AWS security group? I just want to change the CidrIp

How ever I tried and is generating error "The filter 'CidrIp' is invalid". aws ec2 describe-security-groups --filters Name=group-name,Values='*security_group_name*' Name=tag-key,Values=IpRanges Name=CidrIp,Values='0.0.0.0/0' --query…
Kc Bickey
  • 1,166
  • 12
  • 11
0
votes
2 answers

How to allow a specific to access EC2 instance at AWS?

I like to open ssh inbound rule only for an ip from another country. I have developer in Vietnam. I like to allow access to my instance for his ip in Vietnam. His ip is, for example, 192.108.0.14. So I set inbound rule SSH port 22 for ip address…
batuman
  • 7,066
  • 26
  • 107
  • 229
0
votes
1 answer

Security Group not working with ec2 which is not in vpc

I have an instance m3 large both the instance and the security group are outside vpc. I'm running a simple server application at port 5674. the port 5674 is open to all in the security group. still my client code is not able to reach the port when…
mehnaazm
  • 287
  • 1
  • 4
  • 14
0
votes
0 answers

Website does not load when https:// connection is requested

I have a website hosted on AWS [EC2 instance + nginx server]. I have generated SSL certificate using AWS Certificate manager. The certificate has been added to load balancer and an entry for HTTPS in it. The port 443 is also opened in security…
0
votes
1 answer

Connect Lots of servers from multiple cloud providers to AWS RDS

We have a centralized postgresql database hosted on AWS RDS, and also many applications deployed to both AWS and Azure that needs to connect to this database. For security reasons, our database is firewalled, and we use a security group with an…
0
votes
1 answer

Finding AWS security group duplicate entries

Is it possible to find duplications in the security groups in AWS? For example : Security group 1 has : 198.168.5.2/24 , 192.168.4.2/24 , 172.54.60.12/24 Security group 2 has : 192.168.4.2/24 , 172.54.60.12/24 , 52.43.56.98/32 As…
0
votes
1 answer

aws python boto3 is not returning the right number of security groups

I am using Python SDK boto3 in order to get all the security groups into the region but I am getting the wrong number. there is my code: ## Client connection ec2 = boto3.client( 'ec2', aws_access_key_id=aws_access_key, …
Robert
  • 10,403
  • 14
  • 67
  • 117
0
votes
0 answers

Unable to connect to RDS SQL Server with identical security

I've got 2 SQL Server databases hosted in Amazon's RDS system to power 2 copies of the same project. They've got identical database names, identical passwords, identical security groups applied and are configured in build process. Once built and…
Ben Ford
  • 1,354
  • 2
  • 14
  • 35
0
votes
1 answer

AWS Boto3 Security Groups management

I wish to find which security groups refers only to another security group and not to EC2 instance (for example). http://boto3.readthedocs.io/en/latest/reference/services/ec2.html#EC2.Client.describe_security_group_references is only for VPCs.
OLS
  • 155
  • 15
0
votes
3 answers

Dynamic ports and AWS Applocation Load balancer and ECS

Docker containers behind ELB get dynamic ports which are auto registered with ELB so that they can get traffic redirected to them. In order to make your web servers accessible to ELB you have to open all these ports 1024 - 65535 originating from…
David Dehghan
  • 22,159
  • 10
  • 107
  • 95