====== Information ====== * [[https://www.netgear.com/home/products/networking/wifi-routers/R6260.aspx|NETGEAR R6260]] * [[https://openwrt.org|OpenWrt]] * [[https://openwrt.org/toh/netgear/r6260|OpenWrt Device Page]] * [[https://openwrt.org/releases/snapshot|Snapshot]] ===== Notes ===== * 2021/04/28: Dropping invalid packets (firewall) causes an Oculus Quest 2 to not load it's own store/home page * 2021/06/14: Enabling ''Use broadcast flag'' causes WAN not to work (Comcast/Xfinity) * 2021/06/29: Enabling ''802.11w Management Frame Protection'' on 2.4GHz caused a NC200 to not be able to connect * Stock firmware reports ''d(149)+p(153)+d(157)+d(161)'' for 5GHz channels with ''153'' selected and ''11(P)+7(S)'' for 2.4GHz with ''11'' selected ====== Snapshot ====== ==== Links ==== * ''ramips/mt7621'' * [[https://downloads.openwrt.org/snapshots/targets/ramips/mt7621/openwrt-ramips-mt7621-netgear_r6260-squashfs-factory.img|factory.bin]] * [[https://downloads.openwrt.org/snapshots/targets/ramips/mt7621/openwrt-ramips-mt7621-netgear_r6260-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/ramips/mt7621/openwrt-ramips-mt7621-netgear_r6260-squashfs-sysupgrade.bin' rm -Rf ~/'.ssh' && ping '192.168.1.1' del %UserProfile%"\.ssh\known_hosts" && ping -t "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 ====== LuCI ====== * http://192.168.1.1 ===== DHCP ===== * Network -> Interfaces -> LAN -> DHCP Server -> Limit 48 ===== DNS ===== ==== Notes ==== * This advertises an upstream DNS server directly to clients instead of the router * https://1.1.1.1/dns/ * See [[notes:dns_servers|DNS servers]] for other DNS servers ==== IPv4 ==== * Network -> Interfaces -> LAN -> DHCP Server -> Advanced Settings -> DHCP-Options * :!: The ''6,'' is intentional (([[https://old.reddit.com/r/openwrt/comments/hr6xig/how_to_set_openwrt_to_use_1111_dns_for_example/fylsewz/?context=3|Reddit]], [[https://datatracker.ietf.org/doc/html/rfc2132#section-3.8|RFC 2132]])) 6,1.1.1.1,1.0.0.1 === IPs === 1.1.1.1 1.0.0.1 ==== IPv6 ==== * Network -> Interfaces -> LAN -> DHCP Server -> Advanced Settings -> IPv6 Settings -> Announced IPv6 DNS servers 2606:4700:4700::1111 2606:4700:4700::1001 ===== Wireless ===== ==== 2.4GHz ==== * Advanced Settings -> [x] Disable Inactivity Polling * Advanced Settings -> [ ] Disassociate On Low Acknowledgement * Country Code: US * Channel: 11 * Width: 20 MHz * Encryption: WPA2-PSK CCMP AES The Crossroads (2.4GHz) ==== 5GHz ==== * :!: Advanced Settings -> [x] Disable Inactivity Polling * :!: Advanced Settings -> [ ] Disassociate On Low Acknowledgement * :!: These seem to fix 5GHz instability with a Chromecast * Country Code: US * :!: Channel: 149 * Width: 80 MHz * Encryption: WPA2-PSK CCMP AES Highgate (5GHz) ===== Firewall ===== * See [[notes:port_forwards]] ====== Recovery ====== ===== nmrpflash ===== * https://github.com/jclehner/nmrpflash * Reason for the ''libpcap'' command: https://github.com/jclehner/nmrpflash/issues/27 * :!: If using an OpenWRT image, use the ''factory'' image sudo ln -sv 'libpcap.so.1' '/usr/lib64/libpcap.so.0.8' sudo ~/'Downloads/nmrpflash-0.9.16-linux/nmrpflash' -L sudo ~/'Downloads/nmrpflash-0.9.16-linux/nmrpflash' -i 'enp6s0' -f ~/'Downloads/openwrt-ramips-mt7621-netgear_r6260-squashfs-factory.img' sudo ~/'Downloads/nmrpflash-0.9.16-linux/nmrpflash' -i 'enp6s0' -f ~/'Downloads/R6260-V1.1.0.84_1.0.1/R6260-V1.1.0.84_1.0.1.img'