====== Information ====== * [[https://www.netgear.com/support/product/WNDR3800.aspx|NETGEAR WNDR3800]] * [[https://openwrt.org|OpenWrt]] * [[https://openwrt.org/toh/netgear/wndr3800|OpenWrt Device Page]] * [[https://openwrt.org/releases/snapshot|Snapshot]] ====== Snapshot ====== ==== Links ==== * ''ath79'' * [[https://downloads.openwrt.org/snapshots/targets/ath79/generic/openwrt-ath79-generic-netgear_wndr3800-squashfs-factory.img|factory.bin]] * [[https://downloads.openwrt.org/snapshots/targets/ath79/generic/openwrt-ath79-generic-netgear_wndr3800-squashfs-sysupgrade.bin|sysupgrade.bin]] ==== sysupgrade ==== * This downloads the latest ''sysupgrade.bin'' 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' rm -Rf ~/'.ssh' && ping '192.168.1.1' ===== Packages ===== * [[https://openwrt.org/docs/guide-user/luci/luci.essentials|LuCI]] ((snapshot images don't include LuCI, so it needs installed on **every** clean snapshot install)) ssh 'root'@'192.168.1.1' sync && passwd opkg update && opkg install luci && sync ====== Wireless AP Mode ====== * [[https://openwrt.org/docs/guide-user/network/wifi/dumbap|Wireless Access Point / Dumb Access Point / Dumb AP]] ===== Network ===== * [[https://openwrt.org/docs/guide-user/network/openwrt_as_routerdevice|OpenWrt as router device]] * Sets router IP to ''192.168.1.3'' * Sets router Gateway and DNS to ''192.168.1.1'' * Disables DHCPv6 uci set network.lan.ipaddr=192.168.1.3 && uci set network.lan.gateway=192.168.1.1 && uci set network.lan.dns=192.168.1.1 && uci set dhcp.lan.dhcpv6=disabled && uci set dhcp.lan.ra=disabled && uci commit && service network restart && sync ===== Services ===== * Disables ''dnsmasq'', ''firewall'', and ''odhcpd'' services /etc/init.d/dnsmasq disable && /etc/init.d/dnsmasq stop && /etc/init.d/firewall disable && /etc/init.d/firewall stop && /etc/init.d/odhcpd disable && /etc/init.d/odhcpd stop && /etc/init.d/network reload && sync ====== LuCI ====== * http://192.168.1.3 ===== Scheduled Reboot ===== * https://www.albertogonzalez.net/how-to-reboot-nightly-your-openwrt-router/ * https://openwrt.org/docs/guide-user/base-system/cron#periodic_reboot * http://192.168.1.3/cgi-bin/luci/admin/system/crontab # Restart 3:36 AM 36 3 * * * sleep 70 && touch /etc/banner && reboot ===== 1.1.1.1 DNS ===== * https://1.1.1.1/dns/ * See [[notes:dns_servers|DNS servers]] for other DNS servers 2606:4700:4700::1111 2606:4700:4700::1001 1.1.1.1 1.0.0.1 ===== Wireless ===== ==== 2.4GHz ==== * Country Code: US * Channel: 1 * Width: 40 MHz * Encryption: WPA2-PSK CCMP AES The Bridge Encampment (2.4GHz) ==== 5GHz ==== * Country Code: US * :!: Channel: Auto or 36 * Width: 40 MHz * Encryption: WPA2-PSK CCMP AES Overseer's Tower (5GHz) ====== 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'