====== OpenWrt ====== ===== Derivate ===== * [[LEDE]] * [[FreeWRT]] * [[Freifunk-Firmware]] * [[Gargoyle]] baut auf OpenWrt auf und ergänzt es um ein Webinterface mit vielen Funktionen * [[Tomato]] ===== Erweiterungen ===== * [[http://x-wrt.org/|X-Wrt]] Erweiterung für OpenWrt, liefert ein Webinterface für den Endbenutzer ===== Pakete installieren ===== opkg install PAKET Pakete auflisten: opkg list ===== Tips & Tricks ====== ==== Debrick ==== https://wiki.openwrt.org/doc/howto/generic.debrick **Beispiel: TP-Link Archer C50 v3** * https://wiki.openwrt.org/toh/tp-link/archer-c50#debricking * https://wiki.openwrt.org/toh/tp-link/tl-wdr4300#de-brick_or_oem_installation_using_the_tftp_recovery **Hintergrund:** The stock firware (3.13.33(130617)) features a TFTP recovery client in bootloader. To activate it press and hold WPS/Reset Button during powering on until WPS LED turns on. Connect computer to LAN1. Using [[tcpdump]], you should see ARP requests from router having address 192.168.0.86 looking for address 192.168.0.66. # tcpdump -ni eth0 arp ARP, Request who-has 192.168.0.66 tell 192.168.0.86, length 46 Set up your computer to address 192.168.0.66, netmask /24 (255.255.255.0). # ip addr add dev eth0 192.168.0.66/24 Using TCPdump, you should now see request for new firmware image: # tcpdump -npi eth0 udp IP 192.168.0.86.2195 > 192.168.0.66.69: 44 RRQ "wdr4300v1_tp_recovery.bin" octet timeout 5 **TFTP-Server** **Vorgehen:** Download Recovery: https://static.tp-link.com/Archer%20C50(EU)_V3_170608.zip Wichtig! Nach dem Entpacken das bin-File preparieren ("To prepare recovery file cut the first 0x200 (that is 512) Bytes from original firmware (This cut only header of firmware, Recovery need bootloader and firmware)") dd if=Archer_C50v3_EU_0.9.1_0.4_up_boot\[170608-rel35472\].bin of=tp_recovery.bin skip=1 bs=512 **Grundsätzliche Vorgehensweise:** - Setup your computer to 192.168.0.66 (SubnetMask /24 = 255.255.255.0) and connect it to LAN1. - Start TFTP server and provide recovery file with it. - To activate TFTP Recovery press and hold WPS/Reset Button during powering (8 sec.) on until WPS LED turns on. **TFTP-Server installieren** apt install atftpd Create directory where you want to put the image file mkdir /srv/tftp Put an image file into your directory cp ~/tp_recovery.bin /srv/tftp Change the ownership of the folder and the file in it chown nobody:nogroup -R /srv/tftp Run TFTP server atftpd --daemon /srv/tftp Check if your server is listening netstat -lunp|grep 69 Evtl. verhindert rlinetd das sraten, da er auf dem gleichen Port lauscht, dann hilft: /etc/init.d/rlinetd stop Check that you can in fact pull the file from your tftp server $ tftp 192.168.0.66 tftp> get tp_recovery.bin Received 8152633 bytes in 0.8 seconds tftp> quit ===== Siehe auch ===== * [[DD-WRT]] * [[Linksys WRT54GL]] ===== Weblinks ===== * [[wp>de:OpenWrt]] * http://openwrt.org