Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
19.1 Legacy Series
»
OpenVPN Client Management Port
« previous
next »
Print
Pages: [
1
]
Author
Topic: OpenVPN Client Management Port (Read 4030 times)
spider
Newbie
Posts: 43
Karma: 1
OpenVPN Client Management Port
«
on:
February 27, 2019, 11:18:40 am »
Hi
I would like to monitor the openvpn connections using openvpn monitor application. This application needs to access client management socket
AFAICS there is an option in the server configuration to allow the client management port to be set. However this does nothing.
So my questions are:
1) does this functionality work
2) am I doing something incorrectly
I asked a similar question for the 18.7 forum but got no replies and since then the firmware is updated to the latest version 19.1.1.
Thanks
Thanks.
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: OpenVPN Client Management Port
«
Reply #1 on:
February 28, 2019, 09:00:52 pm »
> AFAICS there is an option in the server configuration to allow the client management port to be set. However this does nothing.
Can you share the steps to reproduce?
Cheers,
Franco
Logged
spider
Newbie
Posts: 43
Karma: 1
Re: OpenVPN Client Management Port
«
Reply #2 on:
March 07, 2019, 08:25:26 am »
Quote from: franco on February 28, 2019, 09:00:52 pm
Can you share the steps to reproduce?
What I did is enable Client Management Port in the server configuration and select a port, the default is 166 so I entered 166.
Then in a shell I ran netstat -an and the port was not shown but /var/etc/openvpn/server6.sock is there.
So checking the config /var/etc/openvpn/server6.conf
management /var/etc/openvpn/server6.sock unix
What I'm expecting to see, or something like it (best if the socket was bound to the local lan address)
management 0.0.0.0 166
Thanks,
PS I'm not sure how to configure the forum to send a mail when a reply is posted.
Logged
bartjsmit
Hero Member
Posts: 2017
Karma: 194
Re: OpenVPN Client Management Port
«
Reply #3 on:
March 07, 2019, 08:45:45 am »
The OpenVPN server defaults to listening on a local socket for security. You need to add a line like:
management 127.0.0.1 166 /etc/vpncreds
Set the management password on the first line of the vpncreds file.
Bart...
Logged
spider
Newbie
Posts: 43
Karma: 1
Re: OpenVPN Client Management Port
«
Reply #4 on:
March 09, 2019, 01:19:23 pm »
Thanks for your suggestion. Unfortunately it does not work.
If the line is added to the conf file it is removed on the next restart
If the line is added to the advanced configuration options then the line is there but so is the management line for the unix socket, it looks like the unix socket is used instead of the tcp socket.
Thanks,
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
19.1 Legacy Series
»
OpenVPN Client Management Port