# Nomad federation using consul connect gateways

**URL:** <https://discuss.hashicorp.com/t/nomad-federation-using-consul-connect-gateways/34288>\
**Category:** Nomad\
**Created:** [January 14, 2022, 5:42pm UTC](https://discuss.hashicorp.com/t/nomad-federation-using-consul-connect-gateways/34288 "2022-01-14T17:42:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NegativeFeedback](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/negativefeedback/32/18743_2.png) [@NegativeFeedback](https://discuss.hashicorp.com/u/NegativeFeedback)\
**Post date:** [January 14, 2022, 5:42pm UTC](https://discuss.hashicorp.com/t/nomad-federation-using-consul-connect-gateways/34288/1 "2022-01-14T17:42:29Z")

</div>

I have 3 consul datacenters connected over mesh gateways, and I want nomad to be there as well( really just for job forwarding I think). My understanding is that using built in nomad federation requires network access between all of the server over wan. I was going to use something like nebula or headscale to achieve this but before I do I was wondering if there was someway to use consul gateways to do this without getting a second overlay network involved. I dont think Nomad can do this by default according to git issues.

> <https://github.com/hashicorp/nomad/issues/7514>
>
> \*This is still being thought about and should not be considered an intent-to-shi…p at this time.\*
> 
> Now that hashicorp/consul#6356 is fixed, once \[the next release of Consul\](https://github.com/hashicorp/consul/blob/3a9509e84d4b47a0288044c7652add5c6d5ba3fc/CHANGELOG.md) is out Consul will support WAN federation over \[Connect Mesh Gateways.\](https://www.consul.io/docs/connect/mesh\_gateway.html)
> 
> Nomad should be able to use Mesh Gateways for its own federation.
> 
> This may require changes to Nomad's serf/memberlist usage, but since Nomad only minimally uses serf for raft membership this should hopefully be non-disruptive (and potentially allows us to remove the dedicated serf port).

> **[GitHub - slackhq/nebula: A scalable overlay networking tool with a focus on...](https://github.com/slackhq/nebula)**
>
> A scalable overlay networking tool with a focus on performance, simplicity and security - GitHub - slackhq/nebula: A scalable overlay networking tool with a focus on performance, simplicity and sec...

> **[GitHub - dec0dOS/zero-ui: ZeroUI - ZeroTier Controller Web UI - is a web user...](https://github.com/dec0dOS/zero-ui)**
>
> ZeroUI - ZeroTier Controller Web UI - is a web user interface for a self-hosted ZeroTier network controller. - GitHub - dec0dOS/zero-ui: ZeroUI - ZeroTier Controller Web UI - is a web user interfac...

> **[GitHub - juanfont/headscale: An open source, self-hosted implementation of...](https://github.com/juanfont/headscale)**
>
> An open source, self-hosted implementation of the Tailscale control server - GitHub - juanfont/headscale: An open source, self-hosted implementation of the Tailscale control server
