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
423 views 2 comments
by anonymous

Hi

I have TRB140 and I setup openvpn client.

I have lan IP 192.168.0.1 amd VPN IP 172.16.2.1.

I have access via ssh on IP 172.16.2.1 and I can login to panel web gui.

I can send sms from another linux computer and use command

curl -X GET http://192.168.0.1/cgi-bin/sms_send?username=XXX&password=XXX&number=0061400000000&text=messageContentTextValue

and working but if I use 

curl -X GET http://17216.2.1/cgi-bin/sms_send?username=XXX&password=XXX&number=0061400000000&text=messageContentTextValue

sms not sent only answer on CLI bad request.  This linux computer has the same VPN

Thanks for help

1 Answer

0 votes
by anonymous
Hi,

cURL, unfortunately, does not support any VPN protocols, so you will not be able to send curl commands through OpenVPN.

EB.
by anonymous
Any different option how to use TRB like gateway
by anonymous
Instead of curl you can use HTTP post/get URLs which will do the same thing as curl, but will allow you to execute commands through the VPN interface.

Just to be sure it works I've tested it with LT2P over IPSec.

https://wiki.teltonika-networks.com/view/TRB140_Mobile_Utilities#Post.2FGet