UniFi - How to Change the Controller Version on UDM v1.7+ via SSH
The command-line tool firewall-cmd is part of the firewalld application. It can be used to make permanent and non-permanent runtime changes.
Configure IP Address and routing using the ip command.