FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
413 views 0 comments
by anonymous
Does anyone know the Wireguard commands for Bringing up and bringing down the tunnel using SMS?

Thanks.

1 Answer

0 votes
by anonymous

Hello, 

Regarding the bringing up and down of the Wireguard network you there is no exact SMS Utility command for that the best thing to do this is using the SMS UCI API commands. Where it should be like this: 

Admin123 uci set network.Test.disabled='0'   -> Enable Wireguard
Admin123 uci set network.Test.disabled='1'  ->  Disable Wireguard

where: 
Test is the Wireguard Config Name. And Admin123 is the router password

Admin123 uci commit network    -> Execute this one after 1 min 
Admin123 reboot                        -> Device reboot is needed to apply the changes

I hope it helps

Regards,
Mellow