How to start OH before openvpn?

Try to configure OH2’s core.net.NetUtil parameter to bind to a specific IP Subnet:

set in /etc/openhab2/services/runtime.cfg the following:


org.eclipse.smarthome.network:primaryAddress = 10.1.10.100/24
org.eclipse.smarthome.core.net.NetUtil:primaryAddress=10.1.10.0/24

relevant threads:
a) Multiple Network Adapters
b) Parameter setting org.eclipse.smarthome.network

1 Like