OpenWrt

Table of Contents

1. Description

General notes about OpenWrt

2. Installation

First time installation is called factory install

3. Bridge mode

Main router with DMZ mode turned ON and its WiFi OFF, OpenWrt ethernet cable is the only one plugged on the main router

4. Dropbear does not recognize key type ed25519, only rsa

root@OpenWrt:~# dropbearkey -t ed25519 -f ~/.ssh/openwrt_id_ed25519
Unknown key type 'ed25519'
Usage: dropbearkey -t <type> -f <filename> [-s bits]
-t type Type of key to generate. One of:
                rsa
[..]

5. LuCI web interface

LuCI is the configuration interface of OpenWrt

5.1. uHTTPd web server configuration

The /etc/config/uhttpd configuration is provided by the uhttpd package

5.1.1. Bind uHTTPd to LAN port only

Print OpenWrt LAN IP

uci get network.lan.ipaddr

Change listen_http and listen_https options to OpenWrt LAN IP, by default uHTTPd is bind to 0.0.0.0 which includes the WAN port

config uhttpd 'main'
        list listen_http '192.168.0.1:80'
#       list listen_http '[::]:80'
        list listen_https '192.168.0.1:443'
#       list listen_https '[::]:443'

Reload the service with an init.d call (run the command without arguments for help)

/etc/init.d/uhttpd reload

6. Upgrade OpenWrt

6.1. Attended Sysupgrade (not supported between major releases)

  1. Make a backup Go to System > Backup / Flash Firmware. Click Generate archive (Just do it. Every time…)
  2. Go to System > Attended Sysupgrade
  3. Click Search for firmware upgrade
  4. Click Request Sysupgrade (use the default firmware version given)
  5. The sha256sums is unique to the requested file, its checksum can be verified locally (see notes:verify-iso-files)

6.2. Manual Sysupgrade

For a list of files checksum, click on the folder icon 📁 under About this build in the firmware selector page.

  1. Make a backup: System > Backup / Flash Firmware > Generate archive
  2. Download the corresponding Sysupgrade image
  3. Verify the download
  4. Upload the firmware via LuCi: System > Backup / Flash Firmware > Flash image...

7. Home network basics

8. Supported releases

9. References