RUT955 install package through SSH

Hello,

I use a RUT955 in an industrial appilcation. The modem is automatically provisioned with firmware and configuration through SSH.

I am interesseted to use the Web Filter feature, therefore I neet to install the corresponding package. Is there any possibility to automize this installation through SSH?

Thanks in advance

Hello,

Yes, you can install the Web Filter package through SSH by connecting to the router’s CLI. Use the following command to install the package:

opkg update && opkg install web_filter

Best regards,

Thanks for the information, I tried “opkg update” through putty and it worked.

When I try to automate this by a python script I get the following results:
“Downloading http://opkg.teltonika-networks.com/81981cdc1e8cdc7570bcab1402ca9cf318a9cc4e5745873e2db732d09a7ab685/Packages.gz\n*** Failed to download the package list from http://opkg.teltonika-networks.com/81981cdc1e8cdc7570bcab1402ca9cf318a9cc4e5745873e2db732d09a7ab685/Packages.gz\n\n’”

and a corresponding error message “Collected errors:\n * opkg_download: Failed to download …, wget returned 4.\n * opkg_download: Check your network settings and connectivity”

Any ideas why it works with putty and not with a python script? The python ssh client I am using was succesfully tested for firmware updates and configuration uploading.

Finally I figured out what the problem is. I use the webfilter to block unwanted URLs. Once installed and activated the webfilter blocks the URL to the package repository :smirk:

Any idea how to solve this? Easiest way should be to add the package repository to the whitelist - Which URL(s) need to be unblocked for that? Is http://opkg.teltonika-netwoks.com sufficient?

Another idea is to download the wanted packages and upload them manually - Can you offer an example how to do that through SSH?

Thanks in advance

Hello,

To resolve the issue with the web filter, you can whitelist the package manager’s URL and IP address from the following page: Teltonika FOTA and Opkg IP Addresses.

Alternatively, if you want to install the packages manually via SSH, follow these steps:

  1. Download the desired package from the official repository:
    RUT955 Package Downloads.
  2. Extract the package and locate all .ipk files.
  3. Transfer the .ipk files to the router’s /tmp directory using WinSCP or any other method.
  4. Log in to the router via SSH, navigate to the /tmp directory with cd /tmp
  5. Install the .ipk files by running opkg install <full-ipk-filename>.ipk for each file.

Best Regards,

This topic was automatically closed after 15 days. New replies are no longer allowed.