Second config is clicked but connects to first config
Closed this issue · 6 comments
And I just had a instance where I selected the 1st config to connect, but in actual fact it connected me to the 2nd config.
Yes, this is probably because they both have the same management port in the OpenVPN config file. I just battled this same issue myself.
By "management port" I assume you mean "server listening port".
Our OpenVPN road-warrior server uses the same port number to listen on at every office. We picked a different server listening port number to the default, but used that at every office to make it easy to remember!
I will do some testing using a different server listening port number at each office - that would be a workaround. But it would be nice if the code new exactly which connection the user client had selected, and actually used the corresponding config file to make the connection.
Ah, sorry I wasn't clear. I'm not referring to anything on the server-side. There is a client config option, for example:
# open management channel
management 127.0.0.1 166
That "166" is the local port that the management interface will use. If all your client-side configs have the same port...disaster strikes. Change them all to be different.
Also, if you ever intend to start more than one connection at a time, you will also need to add the "nobind" config option on the client side.
Hope that helps.
OK - I see that line in the conf file generated by pfSense, exactly as you quoted. I will try and do some testing overnight, putting different numbers there in each config.