🛠 Configuring an Industrial Router with EdgeComp MS-U320
Objectives
This tutorial aims to transform the BIOSTAR EdgeComp MS-U320 into a robust industrial router or network gateway. Leveraging its two Intel I226-V and I226-LM Ethernet controllers, we will configure network segregation between an operational technology (OT) segment and an IT segment. The goal is to secure Programmable Logic Controller (PLC) data while enabling data upload to the cloud or a central server. We will use Ubuntu 24.04 LTS for its stability and native network tools.
Required Hardware
- BIOSTAR EdgeComp MS-U320 Mini PC (Core 5 320 version recommended for routing)
- Stable 12V-24V DC Power Supply
- Two Cat6 Ethernet cables
- Monitor and keyboard for initial setup
- Bootable USB drive with Ubuntu Server 24.04
Steps
- System Installation : Insert the USB drive and boot the MS-U320. Enter BIOS (Del key) to set USB boot priority. Install Ubuntu Server on the NVMe M.2 drive. During partitioning, create an LVM partition to facilitate future log management.
- Interface Identification : Once logged in, identify network interfaces. Ethernet ports are managed by Intel drivers. Use
ip link showto list interfaces. Note their names (e.g., eno1, eno2). The I226-V controller is often prioritized for management. - Netplan Configuration : The network configuration file is located in
/etc/netplan/. Edit it withsudo nano /etc/netplan/01-netcfg.yaml. Defineeno1as the WAN (IT) interface with DHCP, andeno2as the LAN (OT) interface with a static IP (e.g., 192.168.10.1/24). Ensure IPv4 routing is enabled. - Enable Routing : For the MS-U320 to forward packets between networks, enable forwarding. Create a file
/etc/sysctl.d/99-forward.confwith the linenet.ipv4.ip_forward=1. Apply withsudo sysctl -p. - Securing with UFW : Install the firewall
sudo apt install ufw. Allow SSH traffic from the IT network only:sudo ufw allow from 192.168.1.0/24 to any port 22. Deny all incoming traffic from the OT LAN to the WAN by default to isolate industrial machines. - Log Persistence : Configure
rsyslogto send network logs to a remote server if needed, or enablejournaldwith limited size to avoid saturating NVMe storage.
Verification
Test connectivity from a PC on the OT network (LAN) to an IP on the IT network (WAN) using the ping command. Verify routing tables are correct with ip route. Ensure the firewall blocks unauthorized access by attempting an SSH connection from the OT LAN to the WAN.
Going Further
Integrate the MS-U320 into a MQTT architecture for sensor data collection. Exploit the RS232/485 serial ports to connect legacy equipment via protocols like Modbus, using software gateways like Node-RED.