Hi there, I have updated my ipfire box to core89. Now all the vpn connections in the
Connection Status and -Control screen
always show the status:disconnected
even when there is a connection active.
What could be the reason? How to fix?
thanks robert
Hi Robert,
Do you have access to the command line? I so, edit /var/ipfire/ovpn/server.conf
and look for the line which says status /var/log/ovpnserver.log 30
If it says /var/log, change that to status /var/run/ovpnserver.log 30
(ovpnserver.log was moved from /var/log to /var/run)
Now, restart the OpenVPN Server.
Let us know if that fixes it.
Rod
On 04/27/2015 06:19 AM, robert wrote:
Hi there, I have updated my ipfire box to core89. Now all the vpn connections in the
Connection Status and -Control screen
always show the status:disconnected
even when there is a connection active.
What could be the reason? How to fix?
thanks robert _______________________________________________ Development mailing list Development@lists.ipfire.org http://lists.ipfire.org/mailman/listinfo/development
Thanks Rod On 27.04.2015 17:40, Rod Rodolico wrote:
Hi Robert,
Do you have access to the command line? I so, edit /var/ipfire/ovpn/server.conf
and look for the line which says status /var/log/ovpnserver.log 30
If it says /var/log, change that to status /var/run/ovpnserver.log 30
i had seen that email of yours allreadi. And did change that line before.
(ovpnserver.log was moved from /var/log to /var/run)
Now, restart the OpenVPN Server.
Let us know if that fixes it.
unfortunately no
any more ideas? thanks robert
Rod
On 04/27/2015 06:19 AM, robert wrote:
Hi there, I have updated my ipfire box to core89. Now all the vpn connections in the
Connection Status and -Control screen
always show the status:disconnected
even when there is a connection active.
What could be the reason? How to fix?
thanks robert _______________________________________________ Development mailing list Development@lists.ipfire.org http://lists.ipfire.org/mailman/listinfo/development
Following are the steps I took to overcome the problem. Unfortunately, I can not tell you exactly which one was the solution.
# stop all vpn logins, ie close down all client access # now, do the following cat /var/run/ovpnserver.log cat /var/var/ovpnserver.log # one of these is likely an empty file openvpnctrl -k # kill the openvpn service rm /var/run/ovpnserver.log rm /var/var/ovpnserver.log # make sure the configuration option is correct grep ovpnserver.log /var/ipfire/ovpn/server.conf openvpnctrl -s # start the openvpn service cat /var/run/ovpnserver.log cat /var/var/ovpnserver.log # one of the above should have the headers in it, hopefully /var/run # if /var/run/ovpnserver.log has the headers, you should be good # now, make a vpn connection, let it get established, then cat /var/run/ovpnserver.log # you should see the new vpn connection. If you do, stats and connection # will show.
An empty ovpnserver.log file looks as follows. This is with no connections to it. This appears to be the file that all stats and displays come from.
---------------------------------------------------------------- OpenVPN CLIENT LIST Updated,Mon Apr 27 14:15:56 2015 Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since ROUTING TABLE Virtual Address,Common Name,Real Address,Last Ref GLOBAL STATS Max bcast/mcast queue length,0 END ----------------------------------------------------------------
Rod
On 04/27/2015 11:37 AM, robert wrote:
Thanks Rod On 27.04.2015 17:40, Rod Rodolico wrote:
Hi Robert,
Do you have access to the command line? I so, edit /var/ipfire/ovpn/server.conf
and look for the line which says status /var/log/ovpnserver.log 30
If it says /var/log, change that to status /var/run/ovpnserver.log 30
i had seen that email of yours allreadi. And did change that line before.
(ovpnserver.log was moved from /var/log to /var/run)
Now, restart the OpenVPN Server.
Let us know if that fixes it.
unfortunately no
any more ideas? thanks robert
Rod
On 04/27/2015 06:19 AM, robert wrote:
Hi there, I have updated my ipfire box to core89. Now all the vpn connections in the
Connection Status and -Control screen
always show the status:disconnected
even when there is a connection active.
What could be the reason? How to fix?
thanks robert _______________________________________________ Development mailing list Development@lists.ipfire.org http://lists.ipfire.org/mailman/listinfo/development
thanks rod
up a sudden it does work again and show the connections
No idea why robert
On 27.04.2015 21:18, Rod Rodolico wrote:
Following are the steps I took to overcome the problem. Unfortunately, I can not tell you exactly which one was the solution.
# stop all vpn logins, ie close down all client access # now, do the following cat /var/run/ovpnserver.log cat /var/var/ovpnserver.log # one of these is likely an empty file openvpnctrl -k # kill the openvpn service rm /var/run/ovpnserver.log rm /var/var/ovpnserver.log # make sure the configuration option is correct grep ovpnserver.log /var/ipfire/ovpn/server.conf openvpnctrl -s # start the openvpn service cat /var/run/ovpnserver.log cat /var/var/ovpnserver.log # one of the above should have the headers in it, hopefully /var/run # if /var/run/ovpnserver.log has the headers, you should be good # now, make a vpn connection, let it get established, then cat /var/run/ovpnserver.log # you should see the new vpn connection. If you do, stats and connection # will show.
An empty ovpnserver.log file looks as follows. This is with no connections to it. This appears to be the file that all stats and displays come from.
OpenVPN CLIENT LIST Updated,Mon Apr 27 14:15:56 2015 Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since ROUTING TABLE Virtual Address,Common Name,Real Address,Last Ref GLOBAL STATS Max bcast/mcast queue length,0 END
Rod
On 04/27/2015 11:37 AM, robert wrote:
Thanks Rod On 27.04.2015 17:40, Rod Rodolico wrote:
Hi Robert,
Do you have access to the command line? I so, edit /var/ipfire/ovpn/server.conf
and look for the line which says status /var/log/ovpnserver.log 30
If it says /var/log, change that to status /var/run/ovpnserver.log 30
i had seen that email of yours allreadi. And did change that line before.
(ovpnserver.log was moved from /var/log to /var/run)
Now, restart the OpenVPN Server.
Let us know if that fixes it.
unfortunately no
any more ideas? thanks robert
Rod
On 04/27/2015 06:19 AM, robert wrote:
Hi there, I have updated my ipfire box to core89. Now all the vpn connections in the
Connection Status and -Control screen
always show the status:disconnected
even when there is a connection active.
What could be the reason? How to fix?
thanks robert _______________________________________________ Development mailing list Development@lists.ipfire.org http://lists.ipfire.org/mailman/listinfo/development
I'd like to know why also. Question: when you made the modifications the first time, did you disconnect all VPN connections prior to restarting OpenVPN?
I have several more of these to upgrade. I'll try to find a recipe to follow if I can.
Rod
On 04/27/2015 11:32 PM, robert rottermann wrote:
thanks rod
up a sudden it does work again and show the connections
No idea why robert
On 27.04.2015 21:18, Rod Rodolico wrote:
Following are the steps I took to overcome the problem. Unfortunately, I can not tell you exactly which one was the solution.
# stop all vpn logins, ie close down all client access # now, do the following cat /var/run/ovpnserver.log cat /var/var/ovpnserver.log # one of these is likely an empty file openvpnctrl -k # kill the openvpn service rm /var/run/ovpnserver.log rm /var/var/ovpnserver.log # make sure the configuration option is correct grep ovpnserver.log /var/ipfire/ovpn/server.conf openvpnctrl -s # start the openvpn service cat /var/run/ovpnserver.log cat /var/var/ovpnserver.log # one of the above should have the headers in it, hopefully /var/run # if /var/run/ovpnserver.log has the headers, you should be good # now, make a vpn connection, let it get established, then cat /var/run/ovpnserver.log # you should see the new vpn connection. If you do, stats and connection # will show.
An empty ovpnserver.log file looks as follows. This is with no connections to it. This appears to be the file that all stats and displays come from.
OpenVPN CLIENT LIST Updated,Mon Apr 27 14:15:56 2015 Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since ROUTING TABLE Virtual Address,Common Name,Real Address,Last Ref GLOBAL STATS Max bcast/mcast queue length,0 END
Rod
On 04/27/2015 11:37 AM, robert wrote:
Thanks Rod On 27.04.2015 17:40, Rod Rodolico wrote:
Hi Robert,
Do you have access to the command line? I so, edit /var/ipfire/ovpn/server.conf
and look for the line which says status /var/log/ovpnserver.log 30
If it says /var/log, change that to status /var/run/ovpnserver.log 30
i had seen that email of yours allreadi. And did change that line before.
(ovpnserver.log was moved from /var/log to /var/run)
Now, restart the OpenVPN Server.
Let us know if that fixes it.
unfortunately no
any more ideas? thanks robert
Rod
On 04/27/2015 06:19 AM, robert wrote:
Hi there, I have updated my ipfire box to core89. Now all the vpn connections in the
Connection Status and -Control screen
always show the status:disconnected
even when there is a connection active.
What could be the reason? How to fix?
thanks robert _______________________________________________ Development mailing list Development@lists.ipfire.org http://lists.ipfire.org/mailman/listinfo/development
Finally figured it out. ovpnserver.log updates every minute. I'm assuming it does that to get the traffic statistics, so it is probably not generated by openvpn daemon itself, but some cron job or something.
So, the problem (with both of us) is that we were too impatient. When you restart the openvpn server, wait 60 seconds, refresh the stats page, and you should be good.
For anyone who wants the "final answer", here are the steps.
1. Perform upgrade 2. edit /var/ipfire/ovpn/server.conf, change /var/log/ovpnserver.log to /var/run/ovpnserver.log in the stats line. 3. restart the openvpn service (either via gui or "openvpnctrl -r" from the cli 5. Wait 60 seconds, then you should see stats
OR (not tested)
1. edit /var/ipfire/ovpn/server.conf, change /var/log/ovpnserver.log to /var/run/ovpnserver.log in the stats line. 2. Perform upgrade
Me, personally, I prefer to delete the ovpnserver.log file from /var/log. Also, I will shut down ovpn sessions and re-connect them, but I doubt that will make a difference.
Rod
On 04/27/2015 11:32 PM, robert rottermann wrote:
thanks rod
up a sudden it does work again and show the connections
No idea why robert
On 27.04.2015 21:18, Rod Rodolico wrote:
Following are the steps I took to overcome the problem. Unfortunately, I can not tell you exactly which one was the solution.
# stop all vpn logins, ie close down all client access # now, do the following cat /var/run/ovpnserver.log cat /var/var/ovpnserver.log # one of these is likely an empty file openvpnctrl -k # kill the openvpn service rm /var/run/ovpnserver.log rm /var/var/ovpnserver.log # make sure the configuration option is correct grep ovpnserver.log /var/ipfire/ovpn/server.conf openvpnctrl -s # start the openvpn service cat /var/run/ovpnserver.log cat /var/var/ovpnserver.log # one of the above should have the headers in it, hopefully /var/run # if /var/run/ovpnserver.log has the headers, you should be good # now, make a vpn connection, let it get established, then cat /var/run/ovpnserver.log # you should see the new vpn connection. If you do, stats and connection # will show.
An empty ovpnserver.log file looks as follows. This is with no connections to it. This appears to be the file that all stats and displays come from.
OpenVPN CLIENT LIST Updated,Mon Apr 27 14:15:56 2015 Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since ROUTING TABLE Virtual Address,Common Name,Real Address,Last Ref GLOBAL STATS Max bcast/mcast queue length,0 END
Rod
On 04/27/2015 11:37 AM, robert wrote:
Thanks Rod On 27.04.2015 17:40, Rod Rodolico wrote:
Hi Robert,
Do you have access to the command line? I so, edit /var/ipfire/ovpn/server.conf
and look for the line which says status /var/log/ovpnserver.log 30
If it says /var/log, change that to status /var/run/ovpnserver.log 30
i had seen that email of yours allreadi. And did change that line before.
(ovpnserver.log was moved from /var/log to /var/run)
Now, restart the OpenVPN Server.
Let us know if that fixes it.
unfortunately no
any more ideas? thanks robert
Rod
On 04/27/2015 06:19 AM, robert wrote:
Hi there, I have updated my ipfire box to core89. Now all the vpn connections in the
Connection Status and -Control screen
always show the status:disconnected
even when there is a connection active.
What could be the reason? How to fix?
thanks robert _______________________________________________ Development mailing list Development@lists.ipfire.org http://lists.ipfire.org/mailman/listinfo/development