8412 questions

9899 answers

15703 comments

14199 members

0 votes
90 views 0 comments
by
Does anyone know the Wireguard commands for Bringing up and bringing down the tunnel using SMS?

Thanks.

1 Answer

0 votes
by

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