Controller Firewall
To address security concerns, the Lenze c5xx controller series includes a firewall to restrict communication with the surrounding network. Per default the firewall is disabled, yet can be enabled using the »PLC Designer«.
The firewall status and settings can be configured within the »PLC Designer« using the Tab Device and the options "SettingsWCommunicationWFirewall".
To change the settings the »PLC Designer« must be connected to the PLC.
Within the Firewall setting, rules for ports (UDP & TCP) can be configured to either allow, reject or drop packages. As an OPC UA client creates an outbound connection the following must be configured.
Handling of outbound connections
The controller firewall focuses on incoming and not outgoing connections. However, if an outgoing connection is established, in most cases a response is made, which in turn must be taken into account in the firewall. As an example, the OPC-UA connection is considered here. If a connection is established from controller A with an OPC UA client to controller B with an OPC UA server, four steps in the respective firewalls of the controllers are relevant:
-
Controller A with OPC UA Client and an outgoing connection
-
The OPC UA client communicates via a randomly selected dynamic port (from the range 32,768 – 60,999). Outgoing ports are generally not blocked by the firewall.
-
-
Controller B with OPC UA Server and an incoming connection
-
In this example, the incoming connection takes place on the OPC UA server port 4840, which must be enabled in the firewall.
-
-
Controller B with OPC UA Server and an outgoing connection
-
The OPC UA server responds via port 4840 and creates an outgoing connection. Outgoing ports are generally not blocked by the firewall.
-
-
Controller A with OPC UA Client and an incoming connection
-
The OPC UA Client receives the response on the same randomly selected dynamic port. This must be opened in the firewall. Since the port is chosen randomly, the dynamic range in the controller firewall must be specified as the application port range.
-
A controller firewall rule for the Controller a might look like this:
-
Protocol name: e.g. ‘Open dynamic ports’
-
Port Range Start: 32768
-
Port Range End: 60999
-
Protocol-Type : TCP
-
Activation: Allow
-
Client IP Range: Any