RUT Router Provisioning Automation

オープン
#34 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
shell

調査の方向性

要求された router/.env.example と router/provision.sh のワークフローから開始し、その後 Router Setup コマンドをメインの README に追加します。SSH の失敗処理、パスワードとオプションの SIM PIN の設定、LAN アクセスを妨げないカメラの WAN ブロック、永続化、reload または reboot の動作、および記載されたプロビジョニング後のチェックを検証します。

索引モデルが issue の本文から書いたものです。

説明

Goal

Provide a simple, repeatable way to provision Teltonika RUT routers using a single shell script and environment variables.

The goal is to replace manual web UI configuration with a minimal SSH-based setup process.

Scope

This automation covers:

  • Initial admin password setup/change
  • SIM PIN configuration (if required)
  • Firewall rules to block Internet access for camera devices

No additional features are included.

User Workflow (suggested)

cp router/.env.example router/.env
# edit values
nano router/.env
# run the script
./router/provision.sh

Steps:

  1. Connect router to local network
  2. Ensure router is reachable via SSH
  3. Insert SIM card
  4. Fill .env
  5. Run provisioning script
  6. Wait for completion (may include reboot)
  7. Run post-provisioning connectivity check (admin access + WAN/internet via mobile)

Configuration Variables

Required
ROUTER_IP=192.168.1.1
DEFAULT_ADMIN_PASSWORD=password_written_on_device
ADMIN_PASSWORD=your_admin_password
Optional
SIM_PIN=1234
CAMERA_IPS=192.168.1.50,192.168.1.51,192.168.1.52

Provisioning Tasks

The provision.sh script must:

  • Connect to router via SSH
  • Change or enforce administrator password
  • Configure SIM PIN if provided
  • Apply firewall rules to block Internet access for camera IPs (if provided)
  • Persist configuration changes
  • Reload firewall and/or network services
  • Reboot router if required to apply changes safely
  • Run checks

Firewall Behavior

If CAMERA_IPS is defined:

  • Each IP must be blocked from accessing WAN (Internet)
  • LAN-to-LAN communication must remain unaffected
  • Internal access from trusted devices must remain possible

Implementation Notes

  • SSH access is assumed to be available on first provisioning
  • Configuration should use standard OpenWrt/RutOS mechanisms (e.g. uci)
  • Script should be idempotent when possible but this is not a strict requirement
  • Fail fast on SSH connection or authentication errors

Documentation Requirement

The main README must include a short section:

Router Setup
cp router/.env.example router/.env
vim router/.env
./router/provision.sh

No additional explanation required in the main README.


Non-Goals

  • No web UI automation
  • No cloud or remote management platform
  • No fleet orchestration system
  • No VLAN / network redesign
  • No long-term configuration management

Future Improvements (optional)

  • DHCP reservation for camera devices
  • Support for multiple router models
  • Validation of connectivity after provisioning
主要言語
Python
スター
1
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pyronear/pyro-sys-setup のほかの issue

pyronear/pyro-sys-setup の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。