A
A
Anton Keen2017-12-01 16:43:51
Amazon Web Services
Anton Keen, 2017-12-01 16:43:51

How do I set up a Windows "local" network on Amazon AWS?

I can’t figure out how to set up a security group within the same zone so that machines can be seen in the Windows “local network”
Given:
2 + “slave” instances
1 “master” instance with file storage
all are within the same zone (for example, us-east-1a)
It is necessary, respectively, that the slaves go and see the master network storage. And the MongoDB base on it (port 27100 it seems)
I guess that the problem lies in the incorrect setting of security groups, but there are not enough skills to understand what exactly to open.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2017-12-01
@yellowmew

First, check that your instances can basically see each other:
Open all ports using ingress rules from slaves with (conditionally) security group sg-slave to master with (conditionally) security group sg-master and vice versa.
Make sure everyone sees everything and access works.
Then we remove this rule and start opening specific ports.
1. In the egress rules, leave only allow 0.0.0.0\0 on all ports (if your instance needs to connect to Internet resources) or allow VPCCIDR on all ports (if your instance does not go to the Internet but lives only inside the VPC)
2. All rules we configure only through ingress. We need access from the slave to the master on port 27100 - in the ingress rules sg-master we doallow sg-slave access on 27100 port
3. Ports of services like monga are generally known. More difficult with windows system ports (which are required for many windows services, such as a file share)
Open ports immediately known to you at the prompt from here
Select services that should be provided to slave machines from the master and / or vice versa from the slave to the master.
4.
Opened everything to a minimum, what else is unclear to open, but nothing works? Enable flow logs (read the AWS documentation) on the subnets where you run your instances, granularity - access denied.
We look where your machines want to climb, check what kind of ports and open them if necessary, and so on until the victorious one, until everything works

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question