Generating DIR-300’s board config

After flashing back to original firmware from dd-wrt/open-wrt firmware. Users will notice that their wireless security (such as WPA2) don’t work as intended. This is due to the missing information found in the board config partition. This board config partition holds information such as:

  • MAC ID of WAN interface
  • MAC ID of LAN and WLAN interface
  • PIN CODE for WPS
  • Number of allowable wireless channels (11 or 13)

This guide aims to assist users in creating the board config file needed by their D-Link DIR-300. You would only need to do this if  wireless security (e.g. WPA2) is not working after restoring from dd-wrt for the DIR-300.

Locating the MAC ID and PIN

The MAC ID and PIN can be located on the sticker underneath the DIR-300. These 2 piece of information is important in the generating of the shadowandy_board_config.bin. Do ensure that you key in the information correctly later.

MAC ID consist of 12 characters.

PIN contains 8 digits.

Determining the number of allowable wireless channels

Most, if not all, countries have regulations on the use of the wireless spectrum. Therefore, it is important to determine the number of allowable wireless channels in your region. The wikipedia page on “List of WLAN channels” will give you a general idea of whether should you use choose 11  or 13 wireless channels. If you are not sure, it is safer to choose the 11 wireless channels option later on.

Generating the board config file

I have created a tool called DIR-300 board config generator which helps to generate the board config (shadowandy_board_config.bin) partition information using the 3 pieces of information (MAC ID, PIN, Number of allowable wireless channels). To generate your copy of board config, follow the instructions below

  1. Go to DIR-300 board config generator
  2. In the MAC ID textbox, fill in the 12 character MAC ID underneath the DIR-300
  3. In the PIN textbox, fill in the 8 digits PIN underneath the DIR-300
  4. Select the number of wireless channel allowed in your region
  5. Click on “Generate” button
  6. Save the file “shadowandy_board_config.bin” to Desktop. Ensure that the file is saved as .bin instead of .bin.html

For 13 wireless channel, I defaulted the country to UK. For 11 wireless channels, I defaulted to my country, Singapore!

With regards to the flashing of board config, it will be continued in Flashing DIR-300 back to original firmware.


Treat shadowandy!

If these step-by-step guides have been very helpful to you and saved you a lot of time, please consider treating shadowandy to a cup of Starbucks.  

  • Ben

    I am having trouble with the:
    Mini Flashing Guide for DIR-300

    I am able to get into redboot, and then
    load ap61.ram

    But after that i get nothing. The telnet window doesn’t close, and after i change my IP to, and move the LAN cable, i am unable to telnet to or even ping it

    Any thoughts?

    I have done the 30-30-30 reset and restored factory config on the router. PS, this is an airlink AR430W

  • zoix

    I only have one MAC address printed on the sticker, which is named MAC ID and it ends in 7B. Supposing this is for LAN, the WAN address is the same, except ending in 7C? Or viceversa? Or something else entirely?

  • shadowandy


    I’ve updated the guide and the tool. Do try it out and feedback.

  • Ben

    Turns out my tftp is timeing out and aborting

    I am running PumpKIN and it aborts the transfer every time

  • shadowandy


    Sorry I am not sure about AR430W. Perhaps you can check pumpkin’s help?

  • Noiz

    This Guide works or not Tell Me ?

  • shadowandy


    I am not sure as I’ve yet to have time to flash the generated bin. But the addresses are inserted at the correct address in the binary.

  • Noiz

    Ok i Understand. I already created the *. bin file but I’m afraid to flash :> :F

  • zoix

    You can flash the generated file with no problem, although you need to change the country code manually if you really want to.

  • shadowandy


    I’ve allowed users to select 11 or 13 wireless channels now. 🙂

  • Lucas

    I own a DIR-300 and would like to be completly assured that i won’t manage to brick it in the process of flashing to DD-WRT. Is there something that can do it for me, as i just bought it, for a rich price and do not want to screw it. Please send any idea’s to Thanks a tonne.

  • Joe

    Thanks for your CGI!

    After flashing generated nvram, my linux boots, so I can continue hacking my SMC WEBT-G.

  • shadowandy

    Hi Joe,

    Glad that this old set of web codes helped you.

  • Dmitry

    My router is die, i don’t generate board config, pleace update URL only board config.
    Thanks oly 🙂

  • Dmitry

    I don’t generate board config, pleace update URL only board config.
    Thanks oly 🙂

  • Arkadiy

    DIR-300 board config generator does not work. I am entered my MAC and pin, but generator resume me on this page without error messages, and any result. Excuse me for my english.

  • shadowandy


    It should work now.

  • bcnuked

    Hi, the link to the generator is broken. Can you repair it?

  • shadowandy


    I just accessed the link from this post and it is working. I managed to generate the board config as well.

  • bcnuked

    mmmh. I always get a 302 Found which sends me back to this post.

    XXXX:~$ nc 80
    GET /dir300generator/ HTTP/1.1

    HTTP/1.1 302 Found
    Date: Tue, 23 Dec 2014 09:36:20 GMT
    Server: LiteSpeed
    Connection: Keep-Alive
    Keep-Alive: timeout=5, max=100
    Cache-Control: no-cache, no-store, must-revalidate, max-age=0
    Vary: User-Agent
    Content-Type: text/html
    Content-Length: 1148

    […some html fallback page…]

    I tested this from 2 different ip’s (with and without IPv6) to exclude a configuration issue on my side.

    I appreciate your help. The boardconfig is the only way to make the router alive again….

  • shadowandy


    The referrer for that web app needs to be from Otherwise, it will be redirected back to this post.

    Did this because I received a fair bit of email on how to use the board configuration file. They generated the configuration without reading the instructions. So to prevent future occurrences, did a redirect to this post. 🙂

  • shadowandy


    I guess you managed to get to the DIR-300 board config generator page via this page?

  • bcnuked

    Hi shadowandy,
    Yes it worked. I seem to have disabled the referrer in my browsers permanently. Altering this setting worked 🙂

    I wish you a merry christmas and a happy new year,

  • Александр Тумашенко

    Generator doen’t work…(( redirecting to this page