# Getting started

Defined Networking's Managed Nebula makes it easy to set up a secure, high performance Nebula network in a few steps. This guide will walk you through the process of creating your Managed Nebula account, configuring your network, and getting your devices ([hosts](/docs/glossary/host/)) communicating with each other.

## 1. Create an account

To create your free account with support for up to 100 hosts, visit [admin.defined.net/signup](https://admin.defined.net/signup) and provide an email address. This email address will be the primary login for the account. You can add additional admins by their email addresses or [set up SSO](/docs/guides/setting-up-sso/) to grant access through your company's identity provider.

<figure>
  <Image
    src={signup}
    alt="The 'Get started for free' signup form, with 'you@example.com' in the email address field, 'Search engine' selected under 'How did you hear about us?', and a Create account button."
    class="screenshot-shadow"
  />
</figure>

When you submit the signup form you'll receive an email with a "magic link" which will take you to the next step of registration: registering a two-factor authentication device. If your device does not support passkeys, you will need an authenticator app which supports time-based OTP such as Duo Mobile, Authy, or Google Authenticator.

After clicking the magic link in the email, register a passkey by following the browser prompts or scan the QR code with your authenticator app and enter the 6-digit code from the app to verify your registration. Note that you can register additional authenticators as backups in your account settings after logging in. See [securing your admin sign-in](/docs/guides/securing-your-admin-sign-in/) for how to add, rename, and remove passkeys and authenticator apps.

<figure>
  <Image
    src={registerMfa}
    alt="The 'Protect your account' screen, asking you to choose how to secure your account, with a 'Use a passkey' button and a 'Use an authenticator app' button."
    class="screenshot-shadow"
  />
</figure>

## 2. Choose a network range

Before you can add hosts to your Managed Nebula account, you'll need to set up the private network that they will communicate on. Every Managed Nebula network is automatically assigned a unique IPv6 prefix. You may optionally add an IPv4 network range for the network. Hosts will be assigned IP addresses within your IPv4 and IPv6 network ranges.

The first time you sign in, you land on the **Define your network** screen. To add an IPv4 range, click **Add an IPv4 range**, enter it in CIDR notation, and click **Add range**. Then click **Create network**. If you click **Skip to admin panel** instead, you can create a network later under **Settings → Networks**.

<figure>
  <Image
    src={defineNetwork}
    alt="Step 1 of 4, 'Define your network'. Under 'Address space', the IPv6 row reads 'Unique IPv6 prefix, Assigned automatically' and the IPv4 row reads '100.100.0.0/22' with a Remove link. A Create network button sits below."
    class="screenshot-shadow"
  />
</figure>

After an IPv4 network range has been configured, it cannot be changed, and there are some important factors to consider when deciding which range to use. If you're not ready to choose an IPv4 range just yet, that's OK. Start with the auto-assigned IPv6 prefix now and add an IPv4 network range later by editing the network under **Settings → Networks**.

See [Choosing a CIDR](/docs/get-started/choosing-a-cidr/) for more details and guidance.

## 3. Create and enroll hosts

You're ready to add hosts to your network. After you create the network, the setup flow walks you through your first two hosts. Choose the machine's operating system, and the screen shows the command to install [DNClient](/docs/glossary/dnclient/) and enroll the host, with the enrollment code already filled in. Run it on the machine, and the screen updates when the host connects. Once both hosts are connected, the last step shows you how to ping one host from the other.

<figure>
  <Image
    src={installFirstHost}
    alt="Step 2 of 4, 'Add your first host'. Linux is selected, the install method is 'Debian, Ubuntu & derivatives (apt)', and under 'Run the enroll command' a command block installs dnclient and ends with 'sudo dnclient enroll -code' followed by the enrollment code. Below it, a spinner reads 'Waiting for first host to connect'."
    class="screenshot-shadow"
  />
</figure>

To add more hosts later, navigate to the **Hosts** tab in the admin panel and click **Add host**. Enter the host details and click **Save**, then follow the on-screen instructions to install and enroll DNClient on the target machine. For phones and tablets, see [Installing Mobile Nebula](/docs/get-started/mobile-nebula/). [Managing hosts and enrollment codes](/docs/guides/managing-hosts/) covers how enrollment codes work and how to re-enroll, edit, or delete a host later.

<figure>
  <Image
    src={addHost}
    alt="The Hosts / Add form. The Name field contains 'web-01', the Role dropdown reads 'Select a role…', and the IPv6 address and IPv4 address fields both read 'Auto assigned'. A bar at the bottom reads 'You have unsaved changes' with Cancel and Save buttons."
    class="screenshot-shadow"
  />
</figure>

## 4. Configure access between hosts (optional)

Host-to-host access is controlled by [roles](/docs/glossary/role/) and [tags](/docs/glossary/tag/). By default, roles allow hosts to ping each other but block all other traffic. If your hosts need to communicate beyond ping:

- Edit the role assigned to the host
- Add firewall rules to allow traffic from all hosts or specific roles

The setup flow gave each of your first hosts its own role, named `<host name>-role`, with a single rule that allows ping from all hosts. To allow more, such as SSH, open that role from the **Roles** tab, click **Add firewall rule**, choose the protocol and port, pick which hosts the traffic may come from, and click **Add rule**.

<figure>
  <Image
    src={addFirewallRule}
    alt="The 'Add inbound firewall rule' dialog on a role's page. The description reads 'Allow SSH from all hosts', the protocol is TCP, the port is 22, and under 'From hosts matching' the role is 'All hosts' and the Tags field is empty. Cancel and Add rule buttons sit at the bottom."
    class="screenshot-shadow"
  />
</figure>

For more advanced access control, see [Creating firewalls using roles and tags](/docs/guides/creating-firewalls-using-roles/).

## 5. Add a self-hosted lighthouse (optional)

A [lighthouse](/docs/glossary/lighthouse/) is a special type of host that allows hosts in your Managed Nebula network to discover each other. Every network needs at least one, so a [managed lighthouse](/docs/get-started/managed-lighthouses/) is provisioned for you automatically when creating a network. You don't have to do a thing.

If you wish to enroll your own lighthouse instead of (or alongside) the managed one, see [Enrolling a Lighthouse](/docs/get-started/enrolling-a-lighthouse/) for step-by-step instructions.

## Further steps

Your Managed Nebula network is now up and running. Going forward, to ensure your network runs at peak performance and to gain access to new features as we release them, be sure to [keep your DNClient updated](/docs/get-started/upgrade/) and keep an eye on our [blog](/blog/) for announcements.

Managed Nebula includes a powerful API that can be used to automate host creation, manage roles, access audit logs, and more. See the full [API reference](/docs/api/) for more information.

Lastly, we would love to hear from you! What problems is Managed Nebula solving for you? Are there features that you would like us to build? Do you need any help? Use our [contact form](/contact/) to get in touch!
