Managing the Network

The VPN is set up manually by our IT, and therefore not managed in terraform projects. If you want to make changes for it, open a ticket and mention the “iot network”. All traffic is being firewalled, and therefore some ports are forwarded.

Architecture

The basic architecture looks as follows:

Basic VPN setup

Each location is connected to a zentral Azure VPN with a site-to-site connection. On the locations side, Ubiquity is used to manage the local network and configure the VPN.

Remote users can connect to the Azure VPN via a direct connection, have a look here: Accessing the VPN The VPN is configured as split tunnel, and all the traffic is being firewalled. Allowed ports are listed here.

DNS

Devices can be reached easily via DNS entries under *.lab.enpal.io. They get managed in our Azure DNS zone.

Example: An IoT in a testbench always gets the same IP if configured correctly. By providing a custom DNS entry in our Azure DNS zone, we can resolve the IP.

Azure VPN entry Resolving Testbench 15

Make sure that the local LAN is set up correctly and that the resolving devices uses the Azure DNS for resolving.

Resources

Creating testbench network

  1. Create a New Virtual Network in Unifi for Customer LAN

    1. Select a Free IP Range according to your location

    2. Add the choosen IPs to the IoT VPN overview Excel list

    3. Access Unifi Site Portal

      Go to the Unifi Site Portal: Unify portal and log in. If you do not have access, reach out to our :ref:`l-team.

    4. Switch to the Testbench Location

      Unify overview, select location
    5. Create a New Virtual Network

      Go to Settings (gear icon), then Networks, and create a new virtual network (New Virtual Network).

    6. Naming the Network

      Name the network according to the convention “(TBx) Kunden LAN” where x is the testbench number.

    7. Disable Autoscale Network

      Disable the Autoscale Network option.

    8. Enter the IP Range

      Input the IP range from the table, incremented by one, with the netmask /28. Ensure it shows “16 usable Hosts.”

      Unify define ip range
    9. Advanced Settings

      Select “Manual” in the Advanced settings

    10. Disable Auto DNS Server

      Disable the Auto DNS Server option.

    11. Enter DNS Servers

      Enter the DNS servers: 10.253.0.132 and 1.1.1.1.

      Unify set DNS for sub network
  2. Create a New Virtual Network in Unifi for Enpal LAN

    1. Naming the Network

      Name the network according to the convention “(TBx) Enpal LAN” where x is the testbench number.

    2. Select Third-party Gateway

      Choose “Third-party Gateway” as the router.

    3. Select a Free VLAN

      Choose a free VLAN for the network:

      Unify set VLAN
  3. Connect the New Switch of the Bench to the Distribution Switch

    1. Preliminary Step

      Ensure the network components of the bench are not yet connected to the switch.

    2. Adopt the Switch

      Adopt the switch in the Unifi Portal.

    3. Naming the Switch

      Name the switch according to the convention “Testbench x Switch.”

  4. Configure the Ports of the Switch in the Port Manager

    1. Port layout

    Port number

    Port name

    Device

    VLAN

    Tagged VLAN

    1

    Testbench x (Up Link)

    Main Distribution Switch

    Default

    Allow All

    2

    (TBx) IOT Kunden LAN

    IOT (Customer LAN Port)

    (TBx) Kunden LAN

    Block All

    3

    (TBx) Testbrain

    Testbrain

    (TBx) Kunden LAN

    Block All

    4

    (TBx) IOT Enpal LAN

    IOT (Enpal LAN Port)

    (TBx) Enpal LAN

    Block All

    5

    (TBx) Inverter

    Inverter

    (TBx) Enpal LAN

    Block All

    1. Uplink Port (Port 1)

      Name the port “Testbench x (Up Link).”

      Configure the network settings:

      • Native VLAN: Default

      • Tagged VLAN Management: Allow All

      Unify set Ports
    2. Customer LAN Ports

      Configure the network settings:

      • Native VLAN: (TBx) Customer LAN

      • Tagged VLAN Management: Block all

      Unify set Ports for customer LAN
    3. Enpal LAN Ports

      Configure the network settings:

      • Native VLAN: (TBx) Enpal LAN

      • Tagged VLAN Management: Block all

      Unify set Ports for Enpal LAN
  5. Connect all devices to the switch

    Connect all the devices to the configured switch according to the port layout defined above.

  6. Make a DNS entry in our Azure DNS zone for the IoT/Testbrain