Difference between revisions of "Domnev"
Line 24: | Line 24: | ||
---- | ---- | ||
====SMS Utilities configuration==== | ====SMS Utilities configuration==== | ||
− | + | The SMS Utilities section contains a list of rules that perform certain actions when they are activated by SMS messages. | |
+ | ---- | ||
* Log into Router 1 WebUI; | * Log into Router 1 WebUI; | ||
* Go to the '''Services → Mobile Utilities → SMS Utilities''' page; | * Go to the '''Services → Mobile Utilities → SMS Utilities''' page; | ||
Line 49: | Line 50: | ||
---- | ---- | ||
=====Actions tab===== | =====Actions tab===== | ||
+ | The Actions section is used to manage and create new Actions that can be executed by the I/O Juggler Rules. The figure below is an example of the Actions section, which is empty by default. You can learn more about it [[RUT955_Input/Output#Actions|here]]. | ||
---- | ---- | ||
Log into Router 2 WebUI and go to the '''Services → Input/Output → I/O Juggler''' page; Then navigate to '''Actions''' and '''create a new instance'''. | Log into Router 2 WebUI and go to the '''Services → Input/Output → I/O Juggler''' page; Then navigate to '''Actions''' and '''create a new instance'''. |
Revision as of 13:09, 10 November 2022
Summary
Inputs and outputs are used for monitoring and controlling a connected device or receiving signals from that device in order to trigger certain events.
Configuration overview and prerequisites
Before we begin, let's overview the configuration that we are attempting to achieve and the prerequisites that make it possible.
Prerequisites:
- Two RUT955 routers (one of them with an active data connection)
- An end device (PC, Laptop, Tablet, Smartphone)
- Router's LANs should be in different subnet
Router configuration
If you have familiarized yourself with the configuration scheme and have all of the devices in order, you can start configuring your routers using instructions provided in this section.
If you're having trouble finding this page or some of the parameters described here on your device's WebUI, you should >turn on "Advanced WebUI" mode. . You can do that by clicking the "Basic" button under "Mode", which is located at the top-right corner of the WebUI.
Via SMS
RUT 1
SMS Utilities configuration
The SMS Utilities section contains a list of rules that perform certain actions when they are activated by SMS messages.
- Log into Router 1 WebUI;
- Go to the Services → Mobile Utilities → SMS Utilities page;
- Enter desired SMS text command (1) and select action (2);
- Add new instance (3);
After this you should redirected to configuration page for that rule:
- Open General tab;
- Check Enable;
- Action - Change I/O state;
- State - High
- SMS text - Enter your desired SMS text;
- Save and apply changes;
Note: Not marked fields can be left as default.
RUT 2
I/O Juggler configuration
The I/O Juggler is a feature that provides the possibility to create automated rules that perform certain actions based on Input state changes and other conditions. You can learn more about it here.
Actions tab
The Actions section is used to manage and create new Actions that can be executed by the I/O Juggler Rules. The figure below is an example of the Actions section, which is empty by default. You can learn more about it here.
Log into Router 2 WebUI and go to the Services → Input/Output → I/O Juggler page; Then navigate to Actions and create a new instance.
- Enter the desired action instance name;
- Select desired type;
- Click add;
This will open a new configuration page:
- Type - SMS;
- Text message - enter your Router 2 password and the SMS rule that you have created;
- Recipient's phone number - enter Router 2 SIM cards number;
- Save and apply changes
Note: Not marked fields can be left as default.
General tab
- Open General tab (1) and enable it (2);
- Add new instance role (3);
- Click Add (4);
After that, you will be prompted to edit an instance:
- Check Enable;
- Trigger - Raising;
- Add actions - Select the action you have created;
Via Public IP
For this configuration you will need a Static or Dynamic Public IP address. You can read up more on this in our article on Private and Public IP Addresses.
RUT 1
Remote access
Navigate to System → Administration → Access Control:
- Open General tab (1) and locate the WebUI section;
- Enable remote HTTP (2) and HTTPS access (3);
- Save and apply changes (4);
Note: Not marked fields can be left as default.
SMS Gateway configuration
Go to the Services → Mobile Utilities → SMS Gateway page;
- Open Post/Get tab;
- Check enable;
- Enter desired username;
- Password;
- Confirm password;
- Save and apply changes;
RUT 2
Navigate to Services → Input/Output → I/O Juggler and create an Action instance.
- Type - Script;
- Specify path - you can choose between specifying the script path or uploading a script file directly;
- Script file - depending on what you have chosen in the field above, you will be asked to enter a script directory or upload a script file;
- Save and apply changes
Script example can be seen below:
#!/bin/sh curl -X GET "http://84.25.189.15/cgi-bin/sms_send?username=name&password=password&number=0037066081843&text=outputon" exit 0
You can learn more about curl -X syntax here.
Via RMS VPN
Results
If configured correctly all of your internet traffic now should go through VPN server.