D-Link DIR-868L

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 02:25, 22 April 2024 (edit)
Kernel-panic69 (Talk | contribs)
(Known Issues - (fix typo, add reference))
← Previous diff
Revision as of 05:10, 22 April 2024 (edit) (undo)
Kernel-panic69 (Talk | contribs)
(Known Issues - (add original thread link reference))
Next diff →
Line 113: Line 113:
*'''DO NOT USE''' builds 30432 till 34311 (also applies to DIR-880L): see tickets [http://svn.dd-wrt.com/ticket/5518#comment:18 5518] and [http://svn.dd-wrt.com/ticket/5963#comment:13 5963] *'''DO NOT USE''' builds 30432 till 34311 (also applies to DIR-880L): see tickets [http://svn.dd-wrt.com/ticket/5518#comment:18 5518] and [http://svn.dd-wrt.com/ticket/5963#comment:13 5963]
*Except quarkysg [https://www.dd-wrt.com/phpBB2/viewtopic.php?t=312874 mod builds], which also [http://svn.dd-wrt.com/ticket/5986#comment:8 fixes] [[Policy_Based_Routing|Policy Based Routing]] with SFE accelerated NAT: issue [http://svn.dd-wrt.com/ticket/5900 5900] *Except quarkysg [https://www.dd-wrt.com/phpBB2/viewtopic.php?t=312874 mod builds], which also [http://svn.dd-wrt.com/ticket/5986#comment:8 fixes] [[Policy_Based_Routing|Policy Based Routing]] with SFE accelerated NAT: issue [http://svn.dd-wrt.com/ticket/5900 5900]
-*If flashing from the stock firmware to dd-wrt doesn't work, download a '''factory-to-ddwrt.bin''' firmware between [https://ftp.dd-wrt.com/dd-wrtv2/downloads/betas/2015/01-20-2015-r25974/dlink-dir868l/ 01-20-2015-r25974] and [https://ftp.dd-wrt.com/dd-wrtv2/downloads/betas/2015/05-28-2015-r27096/dlink-dir868l/ 05-28-2015-r27096]. Afterwards try to upgrade to the latest dd-wrt build. REF: [https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=326202 D-Link DIR-868L 5GHz missing]+*If flashing from the stock firmware to dd-wrt doesn't work, download a '''factory-to-ddwrt.bin''' firmware between [https://ftp.dd-wrt.com/dd-wrtv2/downloads/betas/2015/01-20-2015-r25974/dlink-dir868l/ 01-20-2015-r25974] and [https://ftp.dd-wrt.com/dd-wrtv2/downloads/betas/2015/05-28-2015-r27096/dlink-dir868l/ 05-28-2015-r27096]. Afterwards try to upgrade to the latest dd-wrt build. REF: [https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=326202 D-Link DIR-868L 5GHz missing], [https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=311128 Dlink DIR-868L RevA1 can't load firmware]
==Bad WiFi drivers== ==Bad WiFi drivers==

Revision as of 05:10, 22 April 2024


Contents


Hardware Specifications

(D-Link DIR-868L rev A1 - Wireless Cat):

CPU Broadcom BCM4708
RAM 256 MB
Flash 128 MB
Switch BCM4708
Radio (2.4 GHz) BCM4331
Radio (5 GHz) BCM4360
Antenna Type Internal (Dual Band)

Installation Instructions

 **CAUTION**:  Do not upgrade through wireless connection unless the router is limited to only a wireless connection.
 **WARNING**:  Turning off power during the upgrade process may cause permanent damage to the device.
 **WARNING**:  DO NOT PERFORM A 30/30/30 VIA RESET BUTTON ON ANY BROADCOM ARM ROUTERS, YOU WILL BRICK IT!!!
 **NOTE**:  SEE Where do I download firmware? for information on where to download firmware files.
 **NOTE**:  It is recommended to use a factory-to-ddwrt.bin firmware between 01-20-2015-r25974 and 05-28-2015-r27096 for initial flash.
 **NOTE**:  builds since 06-05-2015-r27240 contain different folders for REV A1, B1, and C1 models.

Download the prescribed factory-to-ddwrt.bin and current release dir868[a|b|c]-webflash.bin

Flash from OEM factory firmware

  1. Connect your PC via Ethernet cable to one of the LAN ports (Black) on the back of your router.
  2. Launch/open a web browser and enter http://dlinkrouter.local or http://192.168.0.1 in the address bar.
    • A login page will display. Default login is admin/no password. It is recommended to reset your router to defaults.
  3. After you login to your router's user interface, click on the Tools tab at the top of the page.
    • Click on Firmware from the menu on the left-hand side.
  4. Scroll down the page. Under Firmware Upgrade, click on the Browse button and select the previously downloaded factory-to-ddwrt.bin file and click Open.
  5. Click on Upload.
  6.  **CAUTION**:  After you start the firmware update, do not try to go online, turn off the router, or do anything else to the router until it finishes restarting.

  7. When the router has finished restarting, go to http://192.168.1.1 in your browser.
    • You should be greeted by the password change page of the DD-WRT webUI.
  8. Set username (optional, default username is root) and password (enter password twice, these *must* match and are case-sensitive).
    • You should be greeted by the System Info page of the DD-WRT webUI
  9. Click on Setup, then Wireless, then Basic Wireless Settings.
    • You will be required to enter username and password previously set.
    • You will want to set the regulatory domain under wireless settings and click Save at the bottom of the page.
  10. Click on Administration, then Firmware Upgrade
    • Leave Do Not Reset selected for After Flashing
  11. Click on Browse and select the appropriate previously downloaded dir868[rev a|b|c]-webflash.bin file specific to your router model version.
  12. Click Open
  13. Click Upgrade
    • The firmware update starts and the router restarts. The firmware update process takes about five minutes.

     **CAUTION**:  After you start the firmware update, do not try to go online, turn off the router, or do anything else to the router until it finishes restarting.

  14. If the webUI does not automatically go back to the Setup -> Basic Setup page, or does not stop at the progress bar page to allow you to click Continue after waiting at least five minutes (i.e. if you get a "Connection Reset" or other error page in your browser), enter http://192.168.1.1 (or whatever your router IP address is) manually or click and hold the "Back" button and select the appropriate history entry.
  15. Click on Setup to begin configuration to your needs.
    • You will be required to enter username and password previously set.
  16. Click Save on each page (unless otherwise noted in a specific tutorial).
  17. When finished, Click on Services or Administration tab and click Reboot.
  • Note: The router doesn't support hard reset (30/30/30), select Reset to default in webUI or Erase NVRAM via command line instead.
  • Note: The router's reset button works for resetting the DD-WRT settings, to do this, while DD-WRT is running, press and hold the reset button on the router's bottom for 15 seconds till the router reset and reboots. You will see the LEDs goes all off then the power LED starts flashing (indicates the router has went into recovery mode). Power off the router and power on again to access DD-WRT if recovery is not needed at the moment.

Upgrading (or Downgrading) DD-WRT

 **NOTE**:  Use the file named dir868[a|b|c]-webflash.bin.
 **WARNING**:  Do not use this file to go from Stock to DD-WRT.
 **NOTE**:  Reset to defaults is recommended if you are upgrading from a very old build (> 6 months).
 **NOTE**:  Do not restore a backup from one version to another version of DD-WRT, as nvram variable names may have changed.

  1. Connect your computer to your router with an Ethernet cable.
  2. Enter http://192.168.1.1 (or whatever you set your router IP to) into a web browser.
  3. Enter username and password as required.
  4. Go to Administration -> Firmware Upgrade
    • Leave Do Not Reset selected for After Flashing
  5. Click on Browse and select the appropriate previously downloaded tplink_archer-c7.bin file specific to your router model version.
  6. Click Open
  7. Click Upgrade
    • The firmware update starts and the router restarts. The firmware update process takes about five minutes.

     **CAUTION**:  After you start the firmware update, do not try to go online, turn off the router, or do anything else to the router until it finishes restarting.

  8. If the webUI does not automatically go back to the Setup -> Basic Setup page, or does not stop at the progress bar page to allow you to click Continue after waiting at least five minutes (i.e. if you get a "Connection Reset" or other error page in your browser), enter http://192.168.1.1 (or whatever your router IP address is) manually or click and hold the "Back" button and select the appropriate history entry.

How to restore to factory firmware

  1. Follow steps of Recovery Mode.
  2. When returned to factory firmware, navigate to Tools - System and select Restore Factory Settings.

Recovery Mode

When the Power LED keeps blinking on boot, the router has entered the recovery mode. This usually happens when flashing a firmware went wrong, or the configuration has been corrupted.

It is also possible to (force) boot into recovery mode to restore a (soft-)bricked router or flashing back to the factory firmware:

  1. Download the latest available firmware on the official D-Link website of the router revision.
  2. Unplug all cables (incl. power cable) from the router.
  3. Connect the router to the PC using one of the 4 switch ports.
  4. Set the PC TCP/IPv4 address to 192.168.0.2 and use 255.255.255.0 as the Subnet mask.
  5. Disable any running firewall(s), anti-virus, TCP/IPv6, etc.
  6. Power-on the router with a paperclip pushing the hidden reset button located on the bottom of the device for a few seconds, when the Power LED starts blinking, release the reset button.
  7. Open Mozilla FireFox (*other browsers doesn't seem to work correctly when trying to flash the firmware) and navigate to http://192.168.0.1.
  8. Upload the stock firmware, when completed the router should report to reboot.
  9. The router should now be running stock and accessible on the default address. (http://192.168.1.1).

Known Issues

Bad WiFi drivers

  • 5GHz band issue: this should be fixed in latest builds, however when the 5GHz band doesn't not pop up when you search for WiFi networks on your device or it will take a few seconds to show up (and disappear again), try to manually add the wireless network or change the Channel Width of the 5GHz interface to Wide HT40 instead of VHT80 (although this may affect performance).

OpenVPN

If using the inbuilt OpenVPN-server in tunnel-mode, you may need to use the following firewall rules:

iptables -A INPUT -i vlan2 -m state --state NEW -p udp --dport 1194 -j ACCEPT
iptables -A INPUT -i tun2 -j ACCEPT
iptables -A FORWARD -i tun2 -j ACCEPT
iptables -A FORWARD -i tun2 -o vlan2 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i vlan2 -o tun2 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o vlan2 -j MASQUERADE
  • Note 1: Verify that the interfaces are correct by running the ifconfig command
  • Note 2: You may need to adjust the above IP-address (& netmask)

The following Additional DNSMasq Options may also be needed, to stop DHCP(-service) on the tunnel-port:

interface=tun2 
no-dhcp-interface=tun2

D-Link DDNS

D-Link offers router owners a free dynamic DNS host name service (https://www.dlinkddns.com/). This service can also be enabled on the dd-wrt firmware:

DDNS Service DynDNS.org
Username Your username (no email-address)
Password Your Password
Hostname <hostname>.dlinkddns.com
Type Dynamic
IP Check Yes *only when needed

A working state should give verification messages, like this one:

Thu Jan 22 23:11:21 2015: INADYN: Started 'INADYN Advanced version 1.96-ADV' - dynamic DNS updater. 
Thu Jan 22 23:11:21 2015: INADYN: IP read from cache file is 'x.x.x.x'. No update required.