VPN died, help, how to fix, reboot not help

Phones were working fine, now just disconnected cannot HOST UNREACHABLE, vpn dead. How to fix? I rebooted the server, it did not START vpn

[[email protected] mike]# systemctl status [email protected]
[email protected] - OpenVPN service for pbx.XXX.biz
Loaded: loaded (/usr/lib/systemd/system/[email protected]; disabled; vendor preset: disabled)
Active: inactive (dead)
Docs: man:openvpn(8)
https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage
https://community.openvpn.net/openvpn/wiki/HOWTO

I cannot locate this file? pbx.XXX.biz.conf, if it matters

[[email protected] /]# find . -name pbx.XXX.biz.conf -type f

Id o see this: sysadmin_server1.conf

I copied it to pbx.XXX.biz.conf, to no avail

Anyway, could use some help, thanks

find . -name pbx.XXX.biz.conf -type f

depends where you run that from

try

find / -name pbx.XXX.biz.conf -type f

or better yet

updatedb
locate pbx.XXX.biz.conf

I ran it from root, could not be found. I did find sysadmin_server1.conf, so I copied that to pbx.XXX.biz.conf, but it did not help.

Do you think I should still run as root in Putty:

updatedb
locate pbx.XXX.biz.conf

no, if find cant find it, locate wont find it a lot quicker

right :slight_smile:
Any other thoughts, it was working fine until about 2 hours ago.

Please post your code with tripple back-ticks surrounding it

what code are you talking about, the commands I ran?

systemctl start [email protected]

systemctl status [email protected]

no, all the characters that you copied and pasted without using 'preformattedtext" to enclose it

I am not sure why this is now showing up: “In [CMD-LINE]:1: Error opening configuration file: sysadmin_server1.conf.conf”

--
-- Unit [email protected]_server1.service has begun starting up.
Jan 29 17:46:59 pbx.XXX.biz systemd[1]: Starting OpenVPN service for sysadmin_server1.conf...
-- Subject: Unit [email protected]_server1.conf.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit [email protected]_server1.conf.service has begun starting up.
Jan 29 17:46:59 pbx.XXX.biz openvpn[22106]: Options error: --client-config-dir fails with 'ccd': No such file or directory (errno=2)
Jan 29 17:46:59 pbx.XXX.biz openvpn[22107]: Options error: In [CMD-LINE]:1: Error opening configuration file: sysadmin_server1.conf.conf
Jan 29 17:46:59 pbx.XXX.biz openvpn[22107]: Use --help for more information.
Jan 29 17:46:59 pbx.XXX.biz openvpn[22106]: Options error: Please correct these errors.
Jan 29 17:46:59 pbx.XXX.biz openvpn[22106]: Use --help for more information.
Jan 29 17:46:59 pbx.XXX.biz systemd[1]: [email protected]_server1.service: main process exited, code=exited, status=1/FAILURE
Jan 29 17:46:59 pbx.XXX.biz systemd[1]: Failed to start OpenVPN service for sysadmin_server1.
-- Subject: Unit [email protected]_server1.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit [email protected]_server1.service has failed.
--
-- The result is failed.
Jan 29 17:46:59 pbx.XXX.biz systemd[1]: Unit [email protected]_server1.service entered failed state.
Jan 29 17:46:59 pbx.XXX.biz systemd[1]: [email protected]_server1.service failed.
Jan 29 17:46:59 pbx.XXX.biz systemd[1]: [email protected]_server1.conf.service: main process exited, code=exited, status=1/FAILURE
Jan 29 17:46:59 pbx.XXX.biz systemd[1]: Failed to start OpenVPN service for sysadmin_server1.conf.
-- Subject: Unit [email protected]_server1.conf.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit [email protected]_server1.conf.service has failed.
--
-- The result is failed.
Jan 29 17:46:59 pbx.XXX.biz systemd[1]: Unit [email protected]_server1.conf.service entered failed state.
Jan 29 17:46:59 pbx.XXX.biz systemd[1]: [email protected]_server1.conf.service failed.
Jan 29 17:47:01 pbx.XXX.biz CROND[22120]: (asterisk) CMD (/var/lib/asterisk/bin/pagepro-scheduler.php 2>&1 >/dev/null)
Jan 29 17:47:01 pbx.XXX.biz CROND[22122]: (asterisk) CMD (/usr/sbin/fwconsole pms wu_alert > /dev/null 2>&1)
Jan 29 17:47:01 pbx.XXX.biz CROND[22123]: (asterisk) CMD (php /var/lib/asterisk/bin/vqplus_generate_periodical_events.php > /dev/null 2>&1)
Jan 29 17:47:01 pbx.XXX.biz CROND[22121]: (asterisk) CMD ([ -x /var/lib/asterisk/bin/schedtc.php ] && /var/lib/asterisk/bin/schedtc.php)
Jan 29 17:47:01 pbx.XXX.biz CROND[22124]: (asterisk) CMD (/usr/sbin/fwconsole calendar --sync 2>&1 > /dev/null)
Jan 29 17:47:01 pbx.XXX.biz CROND[22125]: (asterisk) CMD ([ -x /var/www/html/admin/modules/dashboard/scheduler.php ] && /var/www/html/admin/modules/dashboard/scheduler.php > /dev/null 2>&1)
Jan 29 17:47:01 pbx.XXX.biz systemd[1]: openvpn-[email protected] holdoff time over, scheduling restart.
Jan 29 17:47:01 pbx.XXX.biz systemd[1]: Starting OpenVPN service for pbx.XXX.biz...
-- Subject: Unit [email protected] has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit [email protected] has begun starting up.
Jan 29 17:47:01 pbx.XXX.biz openvpn[22134]: Options error: --client-config-dir fails with 'ccd': No such file or directory (errno=2)
Jan 29 17:47:01 pbx.XXX.biz openvpn[22134]: Options error: Please correct these errors.
Jan 29 17:47:01 pbx.XXX.biz openvpn[22134]: Use --help for more information.
Jan 29 17:47:02 pbx.XXX.biz systemd[1]: [email protected]: main process exited, code=exited, status=1/FAILURE
Jan 29 17:47:02 pbx.XXX.biz systemd[1]: Failed to start OpenVPN service for pbx.XXX.biz.
-- Subject: Unit [email protected] has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit [email protected] has failed.
--
-- The result is failed.
Jan 29 17:47:02 pbx.XXX.biz systemd[1]: Unit [email protected] entered failed state.
Jan 29 17:47:02 pbx.XXX.biz systemd[1]: [email protected] failed.```

Probably because sysadmin_server1.conf.conf doesn’t exist maybe sysadmin_server1.conf does but sysadmin is closed source , which I don’t use, so I can’t provide any more useful input

Does this ring any bells?

Options error: --client-config-dir fails with ‘ccd’: No such file or directory (errno=2)

No, please read my last post :wink:

I don’t really need VPN on freepbx, no idea why I set it up that way but its been wokring for several years. Anyone know the relevant doc off-hand that I could read to remove it and re-config the phones to work w/o VPN enabled?

So I went into EPM, and took off the vpn from one extension, then rebuilt configs, and applied, now I get this:

You have 1 tampered files

Module: “Digium Phones Config”, File: “/var/www/html/admin/modules/digium_phones/etc/res_digium_phone.conf altered”

Any ideas how to fix, and why I got it after rebuilding in EPM?

Dicko - Now I seem totally hosed, do you think a restore would help? If so, I have a full backup form last night. If so, would I do a full restore?

So I set ftp as an option in sys_admin, but getting lot of config errors in EPM.

And I get this if I try to rebuild all configs:

Provisioning protocol ‘ftp’ associated with template[ ‘t54s-46g-vpn’ ] is not enabled. Please enable ‘ftp’ in the System Administration module or change the protocol being used in the template Please re-ensure that the selected provisioning protocol is highlighted in the template. If not please select the protocol and re-save the template. COPY

Click Here Report this to the PBX bug tracker

Stack frames (5)

4

Exception

/

var

/

www

/

html

/

admin

/

modules

/

endpoint

No sorry, I don’t use the ‘distro’ or the EPM.

Are you saying you do not think a restore would help, or are you saying you don’t know if it would help?

" do you think a restore would help"

No. I’m not, try it :wink: , but AGAIN , I can’t help with the ‘Distro’ (you posted here in “General Help”)

Restored but no luck, let me start anew thread on this:

Module: “Digium Phones Config”, File: “/var/www/html/admin/modules/digium_phones/etc/res_digium_phone.conf altered”