Skip to content

how to force processes to use specific network interface

0

Hi,

Using CloudFormation, I design EC2 instances with two network interfaces, one for administration purpose and one for applications and web servers.

I would like to force applications and web servers to use the "applications network interface". I thought to use network namespace but it does not seem possible.

How to achieve my goal with EC2, VPC and CloudFormation ?

Thanks for any helps.

Bernard

1 Answer
0

You can find an example of a management network here. For outgoing communication initiated from EC2 instance process, the choice of network adapter is made by the destination IP and routing and not by configuration of the application (eventhough there might be some applications that gives you this choice). For incoming communication (e.g. in case of a web server) initiated from outside, you need to bind an IP address and port/protocol in your web server that determines the port of entry and hence the route for responding.

AWS
EXPERT
answered 3 years ago
  • Thanks for the answer.

    If there is no others options, i will do that but routing is not so simple because administrators may have to use wget, apt uses http, or htpps and so on.

    I feel that to use network namespace and to assign applications to this namespace would be safer.

    Sincerly

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.