UDMG Web Transfer Client for Linux Installation
Requirements
Linux x64 (kernel 3.10 and later, glibc 2.17-78 and later)
UDMG 1.3 with the modules:
UDMG Admin UI
UDMG Authentication Proxy
UDMG Server
Installing UDMG Web Transfer Client
Create a directory under
/opt/udmg/etc:
# mkdir -p /opt/udmg/etc/udmg/web-transfer
Create a configuration file for the service:
# vi /opt/udmg/etc/udmg/web-transfer/config.toml
[settings]##################################### Web Transfer Client ###################################### Network interface, default "0.0.0.0"inet = "0.0.0.0"## Port, default "5050"port = "5050"## Working directoryworkdir = "/home/udmg"## SSL certificate, uncomment to enable HTTPS#ssl_cert = "path_to_file.crt"#ssl_cert_key = "path_to_file.key"############################################## Fine-tuning parameters ############################################### Enable recover on panic, default true, should be true for production environmentrecover = true
## Enable Cross-Origin Resource Sharing (CORS), should be true for production environmentcors = true## Enable Cross-Site Request Forgery (CSRF) token, should be true for production environmentcsrf = true## Enable Request Track ID, default truetracker = true## Enable Request Logger, default truelogger = true## Enable Prometheus Metric /metricsmetrics = true## Enable Rate limit limit = 50## Update Interval, number of seconds before to send a upload to the local auth serviceupdate_interval = 60
############################################## Web Transfer Client Authentication Server# This is defined in the UDMG Server#############################################[secrets]## URL of the Web Client Authentication server APIendpoint = "http://<LOCAL-AUTH-ADRESS>:<LOCAL-AUTH-PORT>"## API Key to authenticate to the Web Client Authentication serverapikey = "<API_KEY>"
The placeholders LOCAL-AUTH-ADRESS, LOCAL-AUTH-PORT and API _KEY must be set to the values from the local authentication server that is configured on the UDMG Admin UI, see Tutorial - Create Authentication Server for UDMG Web Transfer Client.
Install the binary under
/usr/local/bin:
# install -m 755 udmg-web-transfer /usr/local/bin
Setup the Systemd Services
UDMG Web Transfer Client
Create a new service definition:
# vi /etc/systemd/system/udmg-web-transfer.service
[Unit]Description=UDMG Web Transfer
[Service]Type=simpleUser=udmgGroup=udmgWorkingDirectory=/home/udmgEnvironment=UDMG_WEB_TRANSFER=/opt/udmg/etc/udmg/web-transfer/config.tomlExecStart=/bin/sh -c 'exec /usr/local/bin/udmg-web-transfer'Restart=on-failure
[Install]WantedBy=multi-user.target
Enable the new service:
# systemctl enable udmg-web-transfer.serviceCreated symlink /etc/systemd/system/multi-user.target.wants/udmg-web-transfer.service → /etc/systemd/system/udmg-web-transfer.service.
Start the service and check the status:
# systemctl start udmg-web-transfer# systemctl status udmg-web-transfer