OpenWrt

Install on X86

https://openwrt.org/docs/guide-user/installation/openwrt_x86

run as Container

  • https://supes.top/docker%E7%89%88openwrt%E6%97%81%E8%B7%AF%E7%94%B1%E5%AE%89%E8%A3%85%E8%AE%BE%E7%BD%AE%E6%95%99%E7%A8%8B/

  • https://mlapp.cn/376.html

    ip link set vlan.10 promisc on docker network create -d macvlan --subnet=10.0.0.0/8 --gateway=10.0.0.1 -o parent=vlan.10 macnet docker network ls && docker network inspect macnet docker run --restart unless-stopped --name openwrt -d --network macnet --privileged sulinggg/openwrt:x86_64 /sbin/init # root/password

macvlan - access host

https://stackoverflow.com/questions/49600665/docker-macvlan-network-inside-container-is-not-reaching-to-its-own-host

macvlan/ipvlan: https://sreeninet.wordpress.com/2016/05/29/docker-macvlan-and-ipvlan-network-plugins/

ipvlan

https://docs.docker.com/network/ipvlan/#ipvlan-l2-mode-example-usage

run as VM

QEMU NIC

network

DSA

replace swconfig

Multiple networks (using VLANs): https://forum.openwrt.org/t/mini-tutorial-for-dsa-network-config/96998

/etc/config/

https://openwrt.org/docs/guide-user/network/network_configuration#example_configuration

H/W Router: wireless interfaces may be added to lan automatically via LUCI, create new for other bridges.

DHCP/DNS

/etc/config/dhcp

QoS

SQM

https://openwrt.org/docs/guide-user/network/traffic-shaping/start

https://openwrt.org/docs/guide-user/network/traffic-shaping/sqm

  • Interface name to your internet (WAN) link

  • Link Layer Adaptation: https://openwrt.org/docs/guide-user/network/traffic-shaping/sqm-details#sqmlink_layer_adaptation_tab

nftables

https://github.com/openwrt/packages/blob/master/net/nft-qos/files/nft-qos.config

Tailscale

  • https://github.com/adyanth/openwrt-tailscale-enabler

  • https://openwrt.org/docs/guide-user/services/vpn/tailscale/start

Mesh

bat-adv

https://cgomesu.com/blog/Mesh-networking-openwrt-batman/#initial-configuration

https://www.open-mesh.org/doc/batman-adv/Batman-adv-openwrt-config.html

Mode 802.11s

https://openwrt.org/docs/guide-user/network/wifi/mesh/80211s

Mode AP - 802.11r

./wireless.md#80211kvr

Switch Chip

https://openwrt.org/docs/techref/swconfig

https://openwrt.org/docs/guide-user/network/vlan/switch_configuration#vlan_explained_with_default_scenario_of_most_openwrt_routers

  • Each port untagged to exactly one VLAN ID

Bridged AP Setup

Web URI
Task

/luci/admin/network/vlan

+ vlan : all ports tagged

/luci/admin/network/iface_add

test new vlan IP ; lan : remove dhcp

Controller - OpenWISP

  • Install: https://github.com/openwisp/openwisp-controller#deploy-it-in-production

  • Features: https://openwisp.org/whatis.html

  • Config: https://openwisp.io/docs/user/configure-device.html#install-openwisp-config

Compile

https://hub.docker.com/r/p3terx/openwrt-build-env

https://openwrt.org/docs/guide-developer/toolchain/use-buildsystem

LuCI ---> Applications ---> luci-app-mtwifi #闭源Wi-Fi驱动 + kmod-mt76... Extra packages ---> ipv6helper

Version

Mi

  • AX3200 (RB01, international) = Redmi AX6S (RB03, Chinese)

    • https://openwrt.org/toh/xiaomi/ax3200

    • https://github.com/mikeeq/xiaomi_ax3200_openwrt

  • AX6 : https://github.com/InfinityTL/OpenWrt-Redmi-AX6

  • AX3000: https://github.com/shell-script/unlock-redmi-ax3000

  • RM2100: http://openwrt.ink:88/archives/s-breed

  • AX3000T / Win CMD: https://github.com/zc360/Xiaomi-ax3000t-openwrt

    • https://note.okhk.net/xiaomi-ax3000t-router-with-hanwckf-immortalwrt

    • back to stock: https://www.kaitaku.xyz/misc/ax3000t-openwrt/#%E6%81%A2%E5%A4%8D%E5%8E%9F%E5%8E%82-uboot

    • WR30U: https://zhuanlan.zhihu.com/p/659735701 | https://github.com/hanwckf/bl-mt798x

ImmortalWrt

  • https://github.com/immortalwrt/immortalwrt

  • https://firmware-selector.immortalwrt.org

Last updated

Was this helpful?