OpenWrt
Luci
/etc/config/luci
ping/traceroute/nslookup: http://wrt.lan/cgi-bin/luci/admin/network/diagnostics
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 swconfigc
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.
QoS
SQM
https://openwrt.org/docs/guide-user/network/traffic-shaping/start
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
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
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
MTD
calc HEX -> DEC : 00400000 = 4MiB 06f00000 = 111MiB
uboot
https://github.com/hanwckf/bl-mt798x
Breed
breed -> openwrt initramfs -> /cgi-bin/luci/admin/system/flashops/sysupgrade
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
WR30U: https://zhuanlan.zhihu.com/p/659735701
Hardware
ImmortalWrt
https://github.com/immortalwrt/immortalwrt
https://firmware-selector.immortalwrt.org
Last updated