Problem with my openvpn configuration - can't add openvpn instance from luci either

I had openvpn working fine and for some reason my router would not let me ssh to it (unrelated). After a lot of hassle, I decided to reinstall openwrt and upload my backup.
This was fine, but when recently editing my openvpn config file, I must have hosed it up because when I access the openvpn page in luci, I don't see my vpn instance. I cannot add one via the interface either.

Here is my openvpn configuration file:
config openvpn 'vpnserver'

    option proto 'udp'                                                      
    option port '1194'                                                      
    option dev_type 'tun'                                                   
    option dev 'ovpns0'                                                     
    option server ''                             
    option ca '/etc/openvpn/ca.crt'                                         
    option cert '/etc/openvpn/my-server.crt'                                
    option key '/etc/openvpn/my-server.key'                                 
    option dh '/etc/openvpn/dh2048.pem'                                     
    option tls_auth '/etc/openvpn/tls-auth.key 0'                           
    option tun_mtu '1500'                                                   
    option keepalive '10 120'                                               
    option tls_server '1'                                                   
    option topology 'subnet'                                                
    option log '/tmp/openvpn.log'                                           
    option client_to_client '1'                                             
    option persist_key '1'                                                  
    option persist_tun '1'                                                  
    list push 'route'                             
    list push dhcp-option dns                                   

Here are the device details:
Model: TP-Link Archer C2600
Architecture: ARMv7 Processor rev 0 (v7l)|
Firmware Version: OpenWrt 18.06.2 r7676-cddd7b4c77 / LuCI openwrt-18.06 branch (git-19.020.41695-6f6641d)
Kernel Version: 4.14.95

What does it output?
opkg list-installed | grep -i vpn

You will need to restore your certificate and key files to /etc/openvpn, that directory wouldn't be kept during an upgrade unless you specially configure.

Wrong syntax here.

1 Like

You are absolutely correct! Thank you

Yup, I had that configured to not overwrite my data. Vgaetera found my problem.

Thanks for your help everyone

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.