Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run coturn on private network on AWS #1432

Open
mrtux2024 opened this issue Feb 14, 2024 · 1 comment
Open

How to run coturn on private network on AWS #1432

mrtux2024 opened this issue Feb 14, 2024 · 1 comment

Comments

@mrtux2024
Copy link

I wonder if a structure like the one in the drawing will work, and if so, how? I've been working on it but I haven't reached a result. If the Turn Server has a public IP address, it works. But when it runs on a private network and accesses the internet via Nat Gateway, my WebRTC software does not work. There are no restrictions on Security Groups for testing.

I would appreciate it if you could help me figure out how to fix it.

304405772-acfbc980-c5bd-4a1d-808e-753349845615

@eakraly
Copy link
Collaborator

eakraly commented Feb 19, 2024

Hi @mrtux2024 - sorry but your diagram is not clear...

Maybe if you can configure your nat gateway to work in direct port mapping mode that can work.
Try to review if public/private IP mapping option of --external-ip which requires direct mapping (sorry I do not know enough about AWS NLB/NAT gateway to say if it is possible).

The idea is that NAT EXTERNAL_IP1 is mapped to internal private TURN_IP2 and traffic from client that comes to EXTERNAL_IP1:PORT1 goes to TURN_IP2:PORT1 (same port number). This should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants