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 Verify ISO files)

6.2. Manual Sysupgrade

On the firmware selector page under About this build click on the folder icon for a list of the files checksum

  1. Go to the firmware selector
  2. Copy the corresponding firmware file URL
  3. Run this script to download and verify the download integrity, e.g. ./download_verify_openwrt <url>
  4. Login via LuCi (the web interface of OpenWrt)
  5. Click System > Backup / Flash Firmware > Flash image... to upload the firmware

7. Home network basics

8. Supported releases

9. References