Read ovpn file via SMS api

Hi, we are trying to read remotely via SMS the content of a vpn configuration file on a TRB245.

Currently we are able to read the path of the file but not the file itself.

If we send this SMS “password uci show openvpn” we get the following SMS in response:

openvpn.pippo=openvpn
openvpn.pippo.config=/etc/vuci-uploads/cbid.openvpn.pippo.configtlgw50.ovpn
openvpn.pippo.name=instance1
openvpn.pippo.configuration=custom
openvpn.pippo.type=client
openvpn.pippo.dev=tun_c_pippo
openvpn.pippo.config_parsed=2
openvpn.pippo.enable=1

Do you have any idea on how to read the content of /etc/vuci-uploads/cbid.openvpn.pippo.configtlgw50.ovpn ?

hi, i dont think this would be possible out of the box, the config file contains keys and certificates, sms character limit is 160, you would need a script that splits the file into multiple sms, you can then create a new sms rule to execute that script

1 Like

Thanks, that was also my conclusion. It’s still possible to receive long responses from the SMS api via concatenated SMS, but probably a whole file is a little too much.

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