Beckhoff RT Linux®

Initializing the TwinCAT HMI Server

1. Use the CLI directly on your device. Alternatively, you can also connect via SSH.
2. Log in as an administrator.
3. Initialize the server.
sudo TcHmiSrv --initialize --password=<Passwort>
4. You can also pass the following parameters
--endpoint=http://127.0.0.1:2010 / Creates a local endpoint for http on port 2010
--name=MyProject / Creates the server instance with the corresponding name
Beckhoff RT Linux® 1:
The server has been initialized.
To display further settings, use the command
TcHmiSrv –help

Firewall

1. Create a configuration file in the /etc/nftables.conf.d/  directory with the name 20-hmi.conf, for example
sudo nano /etc/nftables.conf.d/20-hmi.conf
2. Insert the following content and adjust the values to your network requirements:
table inet filter {
  chain input {
    # accept TcHmi
    tcp dport 2020 accept
  }
}
3. Save and close the configuration file.
4. Load the new rule with the command
sudo systemctl reload nftables
5. Check the settings and make sure that the configuration has been applied correctly.
Port 2020 has been released for the HMI server.
sudo nft list ruleset