Cannot Connect To CyberGhost VPN via OpenVPN

I set my OpenPVN configuration for CyberGhost as was suggested in this tutorial. Only using the individual ZIP file for my login credentials downloaded from CyberGhost gave me errors about a misformed ovpn file where key and certificate details were missing.

Now my GL AX1800 with firmware 4.4.6 gives me these error messages which make me think the issue lies not with the configuration file, but somewhere else as it complains about missing files an directories. This configuration file works on a different router with OpenWRT. Maybe someone has an idea how I can solve this problem, many thanks in advance


"Mon Nov 27 21:01:07 2023 daemon.notice netifd: ovpnclient (1599):    * Rule 'process_mark'\nMon Nov 27 21:01:07 2023 daemon.notice netifd: ovpnclient (1599):    * Rule 'wan_in_conn_mark'\nMon Nov 27 21:01:07 2023 daemon.notice netifd: ovpnclient (1599):    * Rule 'lan_in_conn_mark_restore'\nMon Nov 27 21:01:07 2023 daemon.notice netifd: ovpnclient (1599):    * Rule 'out_conn_mark_restore'\nMon Nov 27 21:01:07 2023 daemon.notice netifd: ovpnclient (1599):    * Zone 'lan'\nMon Nov 27 21:01:07 2023 daemon.notice netifd: ovpnclient (1599):    * Zone 'wan'\nMon Nov 27 21:01:07 2023 daemon.notice netifd: ovpnclient (1599):    * Zone 'guest'\nMon Nov 27 21:01:07 2023 daemon.notice netifd: ovpnclient (1599):    * Zone 'ovpnclient'\nMon Nov 27 21:01:07 2023 daemon.notice netifd: ovpnclient (1599):  * Set tcp_ecn to off\nMon Nov 27 21:01:07 2023 daemon.notice netifd: ovpnclient (1599):  * Set tcp_syncookies to on\nMon Nov 27 21:01:07 2023 daemon.notice netifd: ovpnclient (1599):  * Set tcp_window_scaling to on\nMon Nov 27 21:01:07 2023 daemon.notice netifd: ovpnclient (1599):  * Running script '/etc/firewall.nat6'\nMon Nov 27 21:01:07 2023 daemon.notice netifd: ovpnclient (1599):  * Running script '/etc/firewall.vpn_server_policy.sh'\nMon Nov 27 21:01:07 2023 daemon.notice netifd: ovpnclient (1599):  * Running script '/etc/firewall.swap_wan_in_conn_mark.sh'\nMon Nov 27 21:01:07 2023 daemon.notice netifd: ovpnclient (1599):  * Running script '/var/etc/gls2s.include'\nMon Nov 27 21:01:07 2023 daemon.notice netifd: ovpnclient (1599):    ! Skipping due to path error: No such file or directory\nMon Nov 27 21:01:07 2023 daemon.notice netifd: ovpnclient (1599):  * Running script '/usr/bin/gl_block.sh'\nMon Nov 27 21:01:07 2023 daemon.notice netifd: ovpnclient (1599): Failed to parse json data: unexpected character\nMon Nov 27 21:01:07 2023 daemon.notice netifd: ovpnclient (1599): uci: Entry not found\nMon Nov 27 21:01:07 2023 daemon.notice netifd: ovpnclient (1599): cat: can't open '/tmp/run/ovpn_resolved_ip': No such file or directory\n"

hi,
Can you run cat /etc/config/ovpnclient to check whether your configuration file has been applied? And try to ping that remote server.
image

Hi,

thanks for picking this us.

  1. I can ping the server you mentioned
  2. There is a configuration file under /etc/config/ovpnclient (VPN credentials replaced with ####)
config groups
        option group_id '80437'
        option group_type '2'
        option group_name 'CyberGhost'
        option auth_type '1'
        option askpass_exist '0'
        option username '######'
        option password '######'

config clients '80437_1'
        option group_id '80437'
        option client_id '1'
        option name 'openvpn'
        option mode 'tun'
        option proto 'udp'
        option path '/etc/openvpn/profiles/80437/openvpn.ovpn'
        list remote '87-1-al.cg-dialup.net:443'
        option random_remote '0'
        option verb '4'
        option cipher 'AES-256-CBC'
        option lzo '0'
        option hmac '1'
        option client_auth '2'
        option local_access '0'
        option masq '1'
        option default_metric '0'

I am not familiar enough with VPN & router setup to know whether the configuration file has some issues

There exists a configuration file under: /etc/openvpn/profiles/80437/openvpn.ovpn

Could you follow this document to generate configurations and try with it again?OpenVPN Client - GL.iNet Router Docs 4

Thanks once more for your support.

Not sure, what I did differently this time, but now works. Many thanks