# Managed lighthouses

Every new Managed Nebula network includes a **managed lighthouse** at no extra cost. A [lighthouse](/docs/glossary/lighthouse/) is the component that lets [hosts](/docs/glossary/host/) discover each other and establish connections. With a managed lighthouse, Defined Networking runs this infrastructure for you, so there's nothing to install, configure, or keep online.

## What you get automatically

When you create a network, a managed lighthouse is provisioned automatically. You can begin [enrolling hosts](/docs/get-started/quick-setup/) right away. Your network is ready to operate without standing up any servers of your own.

## Enabling the managed lighthouse

New networks are **IPv6-capable** and are assigned a managed lighthouse by default, so most networks need no action to turn it on.

The managed lighthouse is reachable at an IPv6 address, which is why the network needs IPv6 addressing. If your network already has IPv6 addressing, you can enable the managed lighthouse yourself:

1. In the admin panel, go to <kbd><samp>Settings</samp></kbd> → <kbd><samp>Networks</samp></kbd> and click your network's name to open the <kbd><samp>Edit network</samp></kbd> page.
2. Check the <kbd><samp>Use managed lighthouses</samp></kbd> box.
3. Save your changes.

To stop using the managed lighthouse, uncheck <kbd><samp>Use managed lighthouses</samp></kbd> on the same page and save. Only do this if your network has at least one [self-hosted lighthouse](/docs/get-started/enrolling-a-lighthouse/): a network with no reachable lighthouse cannot establish new connections between hosts. The admin panel warns you when a change would leave the network without lighthouse coverage, but it does not prevent you from saving it.

### Updating an IPv4-only network

Older networks that use IPv4 addressing only cannot use a managed lighthouse until they are updated to dual-stack (IPv6 + IPv4). The update keeps the network's hosts and IPv4 addresses. See [Updating an IPv4-only network to IPv6](/docs/guides/updating-a-network-to-ipv6/) for what it needs and how to run it, then enable the managed lighthouse as described above.

The managed lighthouse:

- Is highly available and maintained by Defined Networking
- Requires no public IP, open ports, or always-on server on your side
- Handles peer discovery for every host on your network

## What the managed lighthouse can and cannot see

The managed lighthouse learns the internet address where each of your hosts can currently be reached, which is what lets it answer discovery queries. It takes no part in the encrypted handshake between two hosts and holds none of their key material, so it cannot read or modify traffic between them. Its certificate is signed by your network's CA but carries no [role](/docs/glossary/role/) or [tag](/docs/glossary/tag/), so your firewall rules never grant it access to your hosts. Additionally, it is assigned an IP address outside of your network CIDR so that Nebula will refuse to exchange any Layer 3 traffic with the managed lighthouse.

Because peer discovery runs through it, the managed lighthouse is infrastructure your network depends on. Hosts that have already established tunnels keep communicating if it becomes unreachable, but a host cannot find a peer it isn't already talking to until discovery recovers. For added resiliency, you can host your own lighthouses in addition, or in lieu of, Defined's managed lighthouse.

## The managed lighthouse as a relay

By default, a network's lighthouses also act as [relays](/docs/glossary/relay/), forwarding traffic between two hosts that cannot establish a direct connection. This applies to the managed lighthouse just as it does to a lighthouse you run yourself, and can be disabled in the network's settings.

While it is enabled, some of your host-to-host traffic may travel through Defined Networking's infrastructure. That traffic stays encrypted end-to-end between the two hosts: a relay knows which hosts are talking and how much, but cannot read or alter what they send.

## When to run your own lighthouse

The managed lighthouse is the right choice for most networks. You may want to run your own lighthouse instead (or in addition) if you need:

- Full control over the infrastructure that handles peer discovery
- A lighthouse inside a specific network, region, or data center
- To keep all coordination infrastructure on hardware you operate

You can self-host one or more lighthouses alongside the managed lighthouse. See [Enrolling a lighthouse](/docs/get-started/enrolling-a-lighthouse/) for the step-by-step self-hosted setup.

:::info

A network can use the managed lighthouse, self-hosted lighthouses, or both at the same time. Adding your own lighthouse does not remove the managed one.

:::
