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

Clients working behind NAT #1640

Closed
sheerun opened this issue Aug 22, 2016 · 8 comments
Closed

Clients working behind NAT #1640

sheerun opened this issue Aug 22, 2016 · 8 comments

Comments

@sheerun
Copy link
Contributor

sheerun commented Aug 22, 2016

Last time I checked nomad had issues running worker nodes behind NAT.

My usecase: I'd like nomad servers to run in the cloud, but nomad clients to run on my machine and execute tasks. This is a model that new docker swarm model allows in docker 1.12, but I'd like to nomad without docker installed (many clouds don't allow it, e.g. because there's missing TUN interface, or cgroups is not available).

Is it currently possible to run worker nodes behind NAT?

Are there plans to support it?

@dadgar
Copy link
Contributor

dadgar commented Aug 23, 2016

Nomad clients dial the Servers and hold long lived TCP connections so I don't think it would be a problem. We can open if it is

@dadgar dadgar closed this as completed Aug 23, 2016
@sheerun
Copy link
Contributor Author

sheerun commented Dec 21, 2016

@dadgar Could you test and document network connectivity requirements on https://www.nomadproject.io/docs/cluster/requirements.html ?

@sheerun
Copy link
Contributor Author

sheerun commented Dec 21, 2016

@dadgar It seems client need public ip address for nomad logs command to work.. So they aren't working properly behind a NAT. Am I wrong? Could nomad implement something like https://github.com/fatedier/frp ?

@dadgar
Copy link
Contributor

dadgar commented Jan 3, 2017

@sheerun Nomad logs won't work because the CLI is dialing the agent but it is a NATed connection but the client should be able to run tasks just fine. I am going to re-open this issue and use this to track the use case of enabling proxying for the HTTP endpoints.

@sheerun
Copy link
Contributor Author

sheerun commented Jan 4, 2017

@dadgar What about RPC?

@dadgar
Copy link
Contributor

dadgar commented Jan 4, 2017

RPC should work because clients dial the servers not the other way.

@dadgar
Copy link
Contributor

dadgar commented Mar 12, 2018

Solved by #3892

@dadgar dadgar closed this as completed Mar 12, 2018
@github-actions
Copy link

github-actions bot commented Dec 3, 2022

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants