Skip to content

Hand out addresses on a segment

This guide lets a gateway asset run DHCP on its own network interface, so that devices plugged into that segment get their address, DNS servers and gateway from it and can be reached through XplicitTrust. For what a Managed Subnet is, see Gateway Assets.

Managed Subnet Managed Subnet

In short

On a Linux asset with a free second network interface, create a Managed Subnet with an interface IP, an address pool and a filter mode. Devices on that interface receive their configuration by DHCP, and a policy grants access to them.

Before you start

  • A Linux asset in Asset mode, Online, with an additional, dedicated network interface besides its uplink: a second Ethernet port or a VLAN interface. Assets without such an interface cannot be selected. See Linux asset.
  • The devices to manage are connected to that interface, directly or through a switch. No other DHCP server may answer on that segment.
  • A free address range for the segment that does not overlap your other networks.
  • A user group and a policy, see Reach a server.

Example topology

A gateway asset has two interfaces. eth0 is its uplink to the office network. eth1 is connected to a switch with a few cameras. The Managed Subnet uses eth1 with the interface IP 192.168.36.2/24 and hands out 192.168.36.100 to 192.168.36.200. The cameras get an address, the gateway 192.168.36.2 and DNS servers by DHCP. Users reach the cameras through the tunnel, and the cameras themselves cannot reach the internet.

1. Create the Managed Subnet

  1. Open Assets → Create → Managed Subnet.
  2. On the General tab, select the Gateway Asset (only assets that support DHCP are offered), enter a Name and choose the Filter Mode:
    • Internet + XplicitTrust Overlay: devices reach the internet (masqueraded by the gateway asset) and other XplicitTrust assets. This is the default.
    • XplicitTrust Overlay only: devices reach only XplicitTrust assets; the internet is blocked.
    • Incoming XplicitTrust Overlay only: devices can be reached from the overlay, all outgoing traffic is blocked. Use this for the cameras of the example.

2. Set up DHCP

On the DHCP tab:

  1. Choose the Managed Interface, the interface the DHCP server listens on. The uplink is not offered.
  2. Enter the Interface IP (CIDR), for example 192.168.36.2/24. The console then fills Gateway IP (the interface IP) and the pool (.100 to .200 for a network with 256 or more addresses). Change them if needed. Pool Start and Pool End must be inside the network.
  3. Check the DNS Servers handed to clients (default 9.9.9.9,149.112.112.112) and the Lease Time (default 86400 seconds).
  4. Optional: switch on Auto-create Hosts, with a Domain, to add every device that gets a lease as a host with a DNS name. If a name is taken, the last two bytes of the device's MAC address are appended.

3. Grant access

On the Access tab, select the Services and tick the policy under Policy Assignments, as for a Subnet. Choose Apply.

All fields are in Managed Subnets.

Verify

  1. Connect a device to the managed interface. It receives an address from the pool, and with Auto-create Hosts it appears under Hosts in the Managed Subnet's detail panel.
  2. From a client in the policy's group, connect and open the device by its address or name. See Home.

If it doesn't work

  • No asset is offered in the form. None has a free second network interface, or it is not a Linux asset.
  • Devices get no address. Check that they are on the managed interface and that no other DHCP server is on the segment. Check the pool is inside the interface's network.
  • A device gets an address but is not reachable. Check the policy and that the gateway asset is online. The Filter Mode only limits what the devices may reach: with Incoming XplicitTrust Overlay only they make no outgoing connections at all.
  • See Access Diagnostic.

Next

See also