subscribe to our Youtube


14146 questions

16798 answers


54022 members

0 votes
533 views 14 comments
Can I send an SMS message to a remote RUT950 to change OpenVPN interface from TAP to TUN?
As I have already told you, we have UCI via SMS disabled as part of the security baseline. I need to be able to send an SMS that has the content of the RUT950 to RUT950 message. I can't use UCI in this instance. Please read the thread comments above.

So I enabled UCI on a new RUT950 I deployed today and the results are disappointing. Whilst the commands that are sent work, there are issues. The device seems to accept the first SMS and then goes into some timeout mode where it wont accept any more SMS messages for up to 5mins. It will then accept the next message and go into the timeout mode again.

SMS sent:

Causes timeout - you can see the gsmctl command works to display a text message on the device, after I send the next command the device goes into some sort of timeout mode and the next SMS that I send doesn't do anything. If I wait 5mins or so the next SMS that I send does make a change on the device:

So in summary, I can send the first UCI command SMS and it works. If I follow it up with the next SMS straight away it does nothing, it is not visible in the SMS statistics on the device or from the command line gsmctl which shows the timeout message for approx 5mins. Once it comes back online I can send the next message and the same happens again. I certainly cannot send three SMS's in succession and get the three commands to apply.

The commands I was testing with were:

<password> uci set system.system.hostname='MCY_RUT950.local'
<password> uci commit system
<password> luci-reload

1 Answer

0 votes


Yes, this is possible with UCI API option in the sms utilities section.

You can send a command uci show open vpn then you would get a reply with configurations , something like this:

openvpn.server_123.keepalive='10 120'                                                         
openvpn.server_123.cipher='BF-CBC'                                                   'tap'      

Then you can reply back with :

1 )<Password of router here> uci set'tun_s_123' 

2)<Password of router here> uci commit openvpn 

3)<Password of router here> luci-reload 

Example: Admin123 uci set'tun_s_123' 

After this it would be changed to the Tap.

I hope it would help.

Thank you.

Have a good day.

For security reasons the UCI API is turned off on our routers when they are sent to the remote sites however Remote Configuration (as shown in screenshot above) is enabled.

I am checking with the team .

Thank you.

Could you please refer to the following:

I hope it helps.

Thank you.
"RUT routers can be configured via SMS from another RUT router."

I have already looked at this page and unfortunately it won't work because our other RUT950 devices don't have SIM cards that allow outbound SMS, they can only receive SMS messages. I can't use another RUT950 to send the required config.

I need to know the format of the message that would be sent so that I can send it manually to change the TUN/TAP setting.

Surely there is documentation on the syntax / format of the SMS that needs to be sent.

You can use UCI command to change the TUN/TAP . 

Like i tried changing the Encryption from AES 256 CBC to AES 128 i followed the following :

<Password> uci set openvpn .server_Server.cipher=AES-128-CBC

Admin123 uci set openvpn .server_Server.cipher=AES-128-CBC

Admin123 uci commit openvpn

Admin123 Reboot (to apply changes) 

For changing TAP/TUN use:

Admin123 uci set'tun_s_Server' (For changing to tunnel)

Admin123 uci set'tap' (For changing to TAP)

Thank you.