Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
devices:wndr3800_openwrt [2019/06/28 09:00] – Sean Rhone | devices:wndr3800_openwrt [2021/02/06 05:40] – Sean Rhone |
---|
| |
* NETGEAR WNDR3800 ((https://www.netgear.com/support/product/WNDR3800.aspx)) | * NETGEAR WNDR3800 ((https://www.netgear.com/support/product/WNDR3800.aspx)) |
* OpenWrt ((https://openwrt.org)) | * OpenWrt ((https://openwrt.org)) ((https://openwrt.org/toh/netgear/wndr3800)) |
* Uses ''ath79'' instead of the ''ar71xx'' target ((apparently ''ar71xx'' is to be deprecated in the future)) | |
| |
====== Flash ====== | ====== Notes ====== |
| |
===== DNS ===== | * :!: Software flow offloading on OpenWRT consistently cause [[https://speedof.me/|SpeedOf.Me]] to stop mid-test as of 2021/02/06 |
| |
* https://blog.uncensoreddns.org/ | ====== Snapshot ====== |
| |
===== Date Check ===== | ==== sysupgrade ==== |
| |
* https://downloads.openwrt.org/snapshots/targets/ath79/generic/ | * This downloads the latest ''sysupgrade.bin'' directly and installs it |
| |
===== SSH ===== | ssh 'root'@'192.168.1.1' |
| |
===== Upgrade ===== | rm -f '/tmp/sysupgrade.img' && sync && sysupgrade --force -n -v 'https://downloads.openwrt.org/snapshots/targets/ath79/generic/openwrt-ath79-generic-netgear_wndr3800-squashfs-sysupgrade.bin' |
| |
* From OpenWRT to an updated snapshot of OpenWRT | ping '192.168.1.1' |
| |
==== Download ==== | ls ~/'Documents/'*'-ssh-keys.tar.gz' && rm -Rf ~/'.ssh' && tar -xvzf ~/'Documents/'*'-ssh-keys.tar.gz' -C ~ '.ssh' && sync |
| |
**** | ==== LuCI ==== |
| |
rm -f '/tmp/openwrt-snapshot-ath79-wndr3800-sysupgrade.bin' && wget -O '/tmp/openwrt-snapshot-ath79-wndr3800-sysupgrade.bin' 'https://downloads.openwrt.org/snapshots/targets/ath79/generic/openwrt-ath79-generic-netgear_wndr3800-squashfs-sysupgrade.bin' | * https://openwrt.org/docs/guide-user/luci/luci.essentials |
| * :!: Snapshot images don't include LuCI, so it needs installed on **every** clean snapshot install |
| |
==== Update ==== | ssh 'root'@'192.168.1.1' |
| |
* :!: This will flash instantly, without confirmation or verification, erase all settings, and reboot | opkg update && opkg install 'luci' |
* :!: Remove ''-n'' to save config between flashes | |
| |
sysupgrade -n --force -v '/tmp/openwrt-snapshot-ath79-wndr3800-sysupgrade.bin' | === URL === |
| |
===== Factory ===== | * http://192.168.1.1 |
| |
* From LibreCMC or another variant to OpenWRT | ====== Stable ====== |
* :!: TODO: This didn't work and needed TFTP to fix when going from LibreCMC | |
| |
==== Download ==== | ===== Version Check ===== |
| |
**** | * Latest known version: ''19.07.1'' |
| |
rm -f '/tmp/openwrt-snapshot-ath79-wndr3800-factory.bin' && wget -O '/tmp/openwrt-snapshot-ath79-wndr3800-factory.bin' 'https://downloads.openwrt.org/snapshots/targets/ath79/generic/openwrt-ath79-generic-netgear_wndr3800-squashfs-factory.img' | * https://downloads.openwrt.org/releases/ |
| |
==== Update ==== | ===== Download ===== |
| |
* :!: This will flash instantly, without confirmation or verification, erase all settings, and reboot | * ''19.07.1'' |
| * ''ath79'' |
| |
sysupgrade -n --force -v '/tmp/openwrt-snapshot-ath79-wndr3800-factory.bin' | ssh 'root'@'192.168.1.1' |
| |
====== LuCI Web Interface ====== | rm -f '/tmp/openwrt-stable-ath79-wndr3800-sysupgrade.bin' && wget -O '/tmp/openwrt-stable-ath79-wndr3800-sysupgrade.bin' 'https://downloads.openwrt.org/releases/19.07.1/targets/ath79/generic/openwrt-19.07.1-ath79-generic-netgear_wndr3800-squashfs-sysupgrade.bin' |
| |
===== Information ===== | ===== Install ===== |
| |
* https://openwrt.org/docs/guide-user/luci/luci.essentials | * ''-n'' doesn't save old config |
* :!: Snapshot images don't include LuCI, and need it to be installed after installation | * ''--force'' forces the flash |
| * ''-v'' more verbose |
| |
===== Install ===== | ssh 'root'@'192.168.1.1' |
| |
==== SSH ==== | sysupgrade --force -n -v '/tmp/openwrt-stable-ath79-wndr3800-sysupgrade.bin' |
| |
**** | ===== Configure ===== |
| |
| * https://192.168.1.1 |
| |
| ==== DNS ==== |
| |
| * https://my.nextdns.io |
| |
| ==== Blocks ==== |
| |
| * http://192.168.1.1/cgi-bin/luci/admin/network/firewall/rules |
| * Network -> Firewall -> Traffic Rules |
| |
| === Google DNS === |
| |
| * Some devices hard-code Google DNS, and this bypasses NextDNS and the blocklists set there |
| * So the solution to this is to block any requests to Google DNS |
| |
| * Name: Google DNS |
| * Protocol: Any |
| * Source zone: lan |
| * Source address: -- Add IP -- (leave at default) |
| * Destination zone: wan wan6 |
| * Action: reject |
| |
| * Destination address |
| |
| 8.8.8.8 |
| |
| 8.8.4.4 |
| |
| 2001:4860:4860::8888 |
| |
| 2001:4860:4860::8844 |
| |
| ====== Snapshot ====== |
| |
| ===== Date Check ===== |
| |
| * https://downloads.openwrt.org/snapshots/targets/ath79/generic/ |
| |
| ===== Download ===== |
| |
| * ''ath79'' |
| |
| rm -f '/tmp/openwrt-snapshot-ath79-wndr3800-sysupgrade.bin' && wget -O '/tmp/openwrt-snapshot-ath79-wndr3800-sysupgrade.bin' 'https://downloads.openwrt.org/snapshots/targets/ath79/generic/openwrt-ath79-generic-netgear_wndr3800-squashfs-sysupgrade.bin' |
| |
| ==== non-HTTPS ==== |
| |
| * ''ath79'' |
| * May be necessary if ''wget'' complains about lack-of SSL support |
| |
| rm -f '/tmp/openwrt-snapshot-ath79-wndr3800-sysupgrade.bin' && wget -O '/tmp/openwrt-snapshot-ath79-wndr3800-sysupgrade.bin' 'http://downloads.openwrt.org/snapshots/targets/ath79/generic/openwrt-ath79-generic-netgear_wndr3800-squashfs-sysupgrade.bin' |
| |
| ===== Install ===== |
| |
| * ''-n'' doesn't save old config |
| * ''--force'' forces the flash |
| * ''-v'' more verbose |
| |
ssh 'root'@'192.168.1.1' | ssh 'root'@'192.168.1.1' |
| |
==== Install ==== | sysupgrade --force -n -v '/tmp/openwrt-snapshot-ath79-wndr3800-sysupgrade.bin' |
| |
**** | ===== LuCI ===== |
| |
opkg update && opkg install 'luci' && opkg install 'luci-ssl-openssl' | * https://openwrt.org/docs/guide-user/luci/luci.essentials |
| * :!: Snapshot images don't include LuCI, and need it to be installed seemingly after every snapshot install/update |
| |
==== URL ==== | ssh 'root'@'192.168.1.1' |
| |
| opkg update && opkg install 'luci' && opkg install 'luci-ssl-nginx' |
| |
| ===== Configure ===== |
| |
* https://192.168.1.1 | * https://192.168.1.1 |
| |
| * https://blog.uncensoreddns.org/ |
| |
| ====== Recovery ====== |
| |
| ===== TFTP ===== |
| |
| ==== Notes ==== |
| |
| * Can seemingly still use ''tftp'' even if you can't ping the router |
| |
| ==== Image ==== |
| |
| * Pick one |
| * :!: The stable image URL will need updated if there's a newer version available |
| |
| wget -O ~/'f.img' 'https://downloads.openwrt.org/releases/19.07.6/targets/ath79/generic/openwrt-19.07.6-ath79-generic-netgear_wndr3800-squashfs-factory.img' |
| |
| wget -O ~/'f.img' 'https://downloads.openwrt.org/snapshots/targets/ath79/generic/openwrt-ath79-generic-netgear_wndr3800-squashfs-factory.img' |
| |
| ==== TFTP ==== |
| |
| sudo dnf install 'tftp' -y && sync |
| |
| tftp |
| |
| verbose |
| |
| trace |
| |
| rexmt 1 |
| |
| binary |
| |
| connect 192.168.1.1 |
| |
| put f.img |
| |
| sudo dnf remove 'tftp' -y && sync |
| |
| ===== nmrpflash ===== |
| |
| ==== Images ==== |
| |
| * :!: If using an OpenWRT image, use the ''factory'' image |
| |
| * [[https://downloads.openwrt.org/snapshots/targets/ath79/generic/openwrt-ath79-generic-netgear_wndr3800-squashfs-factory.img|OpenWRT Snapshot]] |
| * [[https://downloads.openwrt.org/releases/19.07.6/targets/ath79/generic/openwrt-19.07.6-ath79-generic-netgear_wndr3800-squashfs-factory.img|OpenWRT 19.07.6]] |
| * [[https://www.netgear.com/support/product/WNDR3800.aspx#download|NETGEAR Stock Firmware]] |
| |
| ==== nmrpflash ==== |
| |
| * [[https://github.com/jclehner/nmrpflash|jclehner/nmrpflash GitHub]] |
| * Reason for the ''libpcap'' command: https://github.com/jclehner/nmrpflash/issues/27 |
| |
| sudo ln -sv 'libpcap.so.1' '/usr/lib64/libpcap.so.0.8' |
| |
| sudo ~/'Downloads/nmrpflash-0.9.15-linux/nmrpflash' -L |
| |
| sudo ~/'Downloads/nmrpflash-0.9.15-linux/nmrpflash' -i 'enp5s0' -f ~/'Downloads/openwrt-ath79-generic-netgear_wndr3800-squashfs-factory.img' |
| |
| sudo ~/'Downloads/nmrpflash-0.9.15-linux/nmrpflash' -i 'enp5s0' -f ~/'Downloads/openwrt-19.07.6-ath79-generic-netgear_wndr3800-squashfs-factory.img' |
| |
| sudo ~/'Downloads/nmrpflash-0.9.15-linux/nmrpflash' -i 'enp5s0' -f ~/'Downloads/WNDR3800-V1.0.0.52/WNDR3800-V1.0.0.52.img' |
| |