Warning: Your node should be accessible through built-in NAT hole punching capabilities. If that doesn't work, you can try the following.
For Raspberry PI nodes, the OpenVPN service port can be set directly under Settings page in the WebUI (http://[node_ip]:4449). Once that is done, hit save and it will be automatically adjusted in the configuration file.
For all other types of configuration, you will need to modify the
/etc/default/mysterium-node configuration file and change the service options (OpenVPN and WireGuard) there.
If you run a command line node, use the
service command options.
For example, if you'd like your OpenVPN service to run on port
1194 and WireGuard service to listen on
52820:53075 range of ports, then use the following flags:
Note! It is required to set ports needed for P2P communication too (range of P2P listen ports (e.g. 51820:52075)):
In the end it would look like this:
SERVICE_OPTS="--openvpn.port=1194 --wireguard.listen.ports=52820:53705 openvpn,wireguard"
IMPORTANT: Don't forget to set selected port forwarding on your router.