Foxbox

From UmsWiki
Revision as of 14:43, 24 January 2019 by Mmh (talk | contribs)
Jump to navigation Jump to search

UMS SMS Modem.. ( Certificate is required for use of Modem )

Network Port Openings

TCP port openings from server to modem.

Port Usage
22 SSH access
80 HTTP access
443 HTTPS access
3306 Database access

TCP port openings from modem to server.

Port Usage
80 HTTP access
443 HTTPS access

Prepare Modem

Inside Foxbox
Insert sim cards (sim2 cardholder is on the backside of the board)

01 – Plug-in antenna connectors

02 – Plug-in Ethernet cable

03 – Plug-in power cable

04 – Optional serial cable

05 – Optional USB extention

System Login

Once the modem is prepared and booted (the modem will make a single beep when booted), open a browser and go to http://192.168.1.2 and click login in the upper right corner.

A login box will pop up. Login with username 'admin' and password 'admin'.

Main Page

After logging in, the system info page appears. This page shows status for the modem.

Click on to open the menu.

Network Configuration

Go to the menu and click 'Network Config'.

Change the IP settings and press 'Save Configuration'. Go to the 'inLogic Modem Settings' page and reboot the modem.

Modem Settings

Frontend and Hostname settings

Frontend

Open the menu and go to 'inLogic Modem Settings'.

Change the 'FrontEnd Address' to fit your configuration.

Scroll down and click 'Save'.

Hostname

Open the menu and go to 'inLogic Modem Settings'.

Set the modem hostname as 'FQDN'.

Scroll down and click 'Save'. The modem will restart.

User Settings

Open the menu and go to 'inLogic Modem Settings' and scroll down to 'User Settings'.

To change default admin user password (default 'admin'), write the new password in the Password box, just below admin username.

To change default sendsms user password (default 'sendsms'), write the new password in the Password box just below sendsms username.

Click 'Save' to confirm password change.

SIM Settings

Open the menu and go to 'inLogic Modem Settings' and scroll down to 'SIM Settings'.

Enable or disable PIN for modems and set PIN if needed.

Click 'Save' and click Reboot.

Control Panel

Open the menu and go to 'Control Panel'.

Here, you can see staus, as well as turn on and off, the SMS Engine.

SMS

Inbox

To see a log for incoming messages, open the menu and go to 'Inbox'.

Outbox

To see a log for outgoing messages, open the menu and go to 'Outbox'.

Write New

To write a new SMS, open the menu and go to 'Write New'.

Choose the modem you wish to send your message from in the drop down menu 'Outgoing channel'. If left blank, the system will choose the first available modem.

Enter the phone number you wish to send your SMS to in the 'To' field. Pleas note that international prefix is mandatory.

Write your message in the 'Message' field.

When you have finished, click 'Send'.

Time Zone Settings

Open the menu and go to 'Time Zone Settings'.

The NTP & Time Zone Settings is by default set to enable external NTP.

For internal NTP, uncheck the 'Enable External NTP' box and write a list of NTP servers separated by comma, in the 'Internal NTP' field.

To change your time zone, choose a time zone from the 'Time Zone' drop down menu.

Click 'Save' to change your settings.

Tools

Open the menu and go to 'Modem Settings'.

Shell

Use 'in browser' shell to change advanced settings.

Use with caution! Please note that if you make any changes without consulting us first, support will be charged accordingly with our hourly rate.

Reboot

In order to reboot the modem, click on the 'Reboot Modem' button.

Root Settings

Change of root password requires login to shell. Default root password is 'odroid'.

Login to shell, run password command and follow the instructions on screen.

Update certificate

Step one - creating a certificate.pem file

Make sure you have the certificate as a­ . crt or .pem file. You should have received a certificate with a private key from your provider. Some providers send two or more files containing this. To handle the certificate, we need to extract the information from the certificate and private key and combine these two into one certificate.

If you use notepad to open the certificate (recommended), you will see this:

-----BEGIN CERTIFICATE----- 
Lots of data here...
-----END CERTIFICATE-----

When you open the private key certificate, you should see this:

-----BEGIN RSA PRIVATE KEY----- 
Lots of data here...
-----END RSA PRIVATE KEY-----

Or this:

-----BEGIN PRIVATE KEY----- 
Lots of data here...
-----END PRIVATE KEY-----

Start by creating a new .txt file in a folder and then copy the content of the private key into the new .txt file.

Now, open the certificate file, copy the content and paste it in after the private key.

Your file should look like this:

-----BEGIN PRIVATE KEY-----
MIIEvQIBAD...
-----END PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
MIICsjCCAZqgAw...
-----END CERTIFICATE-----

Save the file by selecting all file types instead of .txt and name the file 'certificate.pem'.

Step two - installation

To install the certificate, you will need FTP software (you can freely select the FTP software you prefer).

Now, connect to the Foxbox using the server's IP address. This example uses 'FileZilla'.


When the client has connected, you will have the folder view where you can navigate to '/etc/sms/scripts'. You can use the folder view to navigate back to the path or you can simply paste the path into the remote site bar and press enter.

Now, you should be able to locate the certificate.pem file inside the folder.

Continue by navigating the local file view to the new certificate that we created in step 1 and upload it to the Foxbox.

Steep three

Open or download the SSH client program. This example uses 'putty'.

When you have the ssh client open, please connect using the Foxbox server's IP address.

When successfully connected, please use the root user to login, as it is the only user with permissions to restart the apache server.

In order to restart the apache server, please type:

/etc/init.d/apache2 restart

Press enter.

When the service is restarted successfully, 'OK' will appear in green text. If the service was unsuccessful, the error message will appear in red text.

After successfully restarting, open the Foxbox url and verify that the certificate has been changed and is valid.

Additional information

Additional information about the product, users, and programs used in the tutorial.

Usernames and passwords

A list of username and passwords
Username Password Description

SSH Clients

A list of SSH Clients
Program name URL
PuTTy https://www.putty.org/

Open source FTP Client

A list of FTP clients
Program name URL
WinSCP https://winscp.net/eng/index.php
FileZilla https://filezilla-project.org/