It is recommended to use firewalld - see the example for SSH service
For remote management of the edge device - cockpit is recommended.