User Tools

Site Tools


devices:wndr3800_openwrt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
devices:wndr3800_openwrt [2020/01/22 09:03] – Use nginx luci Sean Rhonedevices:wndr3800_openwrt [2021/02/06 05:40] Sean Rhone
Line 2: Line 2:
  
   * 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))
  
 ====== Notes ====== ====== Notes ======
  
-  * ''2019/07/17'' ''ath79'' snapshot had broken port forwarding +  * :!: Software flow offloading on OpenWRT consistently cause [[https://speedof.me/|SpeedOf.Me]] to stop mid-test as of 2021/02/06 
-  * :!: Using ''sysupgrade'' with ''factory'' images **will** soft-brick the router ((see [[#recovery|Recovery]] to fix))+ 
 +====== Snapshot ====== 
 + 
 +==== sysupgrade ==== 
 + 
 +  * This downloads the latest ''sysupgrade.bin'' directly and installs it 
 + 
 +  ssh 'root'@'192.168.1.1' 
 + 
 +  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' 
 + 
 +  ping '192.168.1.1' 
 + 
 +  ls ~/'Documents/'*'-ssh-keys.tar.gz&& rm -Rf ~/'.ssh&& tar -xvzf ~/'Documents/'*'-ssh-keys.tar.gz-C ~ '.ssh' && sync 
 + 
 +==== LuCI ==== 
 + 
 +  * https://openwrt.org/docs/guide-user/luci/luci.essentials 
 +  * :!: Snapshot images don't include LuCI, so it needs installed on **every** clean snapshot install 
 + 
 +  ssh 'root'@'192.168.1.1' 
 + 
 +  opkg update && opkg install 'luci' 
 + 
 +=== URL === 
 + 
 +  * http://192.168.1.1
  
 ====== Stable ====== ====== Stable ======
Line 13: Line 39:
 ===== Version Check ===== ===== Version Check =====
  
-  * Latest known version: ''18.06.4''+  * Latest known version: ''19.07.1''
  
   * https://downloads.openwrt.org/releases/   * https://downloads.openwrt.org/releases/
Line 19: Line 45:
 ===== Download ===== ===== Download =====
  
-  * ''18.06.4'' +  * ''19.07.1'' 
-  * :!: ''ar71xx'' ((ath79 isn't available yet, but should be used when available))+  * ''ath79'' 
 + 
 +  ssh 'root'@'192.168.1.1'
  
-  rm -f '/tmp/openwrt-stable-ar71xx-wndr3800-sysupgrade.bin' && wget -O '/tmp/openwrt-stable-ar71xx-wndr3800-sysupgrade.bin' 'https://downloads.openwrt.org/releases/18.06.4/targets/ar71xx/generic/openwrt-18.06.4-ar71xx-generic-wndr3800-squashfs-sysupgrade.bin'+  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'
  
 ===== Install ===== ===== Install =====
Line 32: Line 60:
   ssh 'root'@'192.168.1.1'   ssh 'root'@'192.168.1.1'
  
-  sysupgrade --force -n -v '/tmp/openwrt-stable-ar71xx-wndr3800-sysupgrade.bin'+  sysupgrade --force -n -v '/tmp/openwrt-stable-ath79-wndr3800-sysupgrade.bin'
  
 ===== Configure ===== ===== Configure =====
Line 38: Line 66:
   * https://192.168.1.1   * https://192.168.1.1
  
-  * https://blog.uncensoreddns.org/+==== 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 ====== ====== Snapshot ======
Line 86: Line 143:
 ====== Recovery ====== ====== Recovery ======
  
-===== Notes =====+===== TFTP ===== 
 + 
 +==== Notes ====
  
   * Can seemingly still use ''tftp'' even if you can't ping the router   * Can seemingly still use ''tftp'' even if you can't ping the router
  
-===== Image =====+==== Image ====
  
   * Pick one   * Pick one
   * :!: The stable image URL will need updated if there's a newer version available   * :!: The stable image URL will need updated if there's a newer version available
  
-  wget -O ~/'f.img' 'https://downloads.openwrt.org/releases/18.06.4/targets/ar71xx/generic/openwrt-18.06.4-ar71xx-generic-wndr3800-squashfs-factory.img'+  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'   wget -O ~/'f.img' 'https://downloads.openwrt.org/snapshots/targets/ath79/generic/openwrt-ath79-generic-netgear_wndr3800-squashfs-factory.img'
  
-===== TFTP =====+==== TFTP ====
  
   sudo dnf install 'tftp' -y && sync   sudo dnf install 'tftp' -y && sync
Line 118: Line 177:
  
   sudo dnf remove 'tftp' -y && sync   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'