Hello,
I wanted to take advantage of show-client-config command to provide the config to my client from the "source of truth". The client was Android (Wireguard app). However, I have noticed that my connection did not work, there was some outgoing traffic and no incoming. After messing around I have found the reason: ListenPort set to some specific value in the [Interface] section. 51820 in my case. Seems to be the same value for all client configs. However, I never configured "client-listen-port" value for any of the peers. Even explicitly setting it to 0 does not change anything, it still generates 51820.
Turns out, Wireguard Android app does not support this value. And, in fact, it would be incorrect to set it because I am not in control of the port allocation on the client side. Wireguard documentation states that this value is optional.
Why does RouterOS generate ListenPort value when not needed?
Thanks!
P.S. RouterOS 7.15