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.  

25 thoughts on “Generating DIR-300’s board config

  • February 5, 2009 at 2:57 am

    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

  • February 5, 2009 at 3:38 am

    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?

  • February 5, 2009 at 9:47 am


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

  • February 5, 2009 at 12:27 pm

    Turns out my tftp is timeing out and aborting

    I am running PumpKIN and it aborts the transfer every time

  • February 5, 2009 at 2:00 pm


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

  • February 5, 2009 at 2:56 pm

    This Guide works or not Tell Me ?

  • February 6, 2009 at 10:43 am


    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.

  • February 6, 2009 at 3:45 pm

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

  • February 6, 2009 at 9:19 pm

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

  • February 6, 2009 at 10:04 pm


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

  • March 13, 2009 at 5:03 pm

    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.

  • April 24, 2013 at 3:08 pm

    Thanks for your CGI!

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

  • April 27, 2013 at 1:32 pm

    Hi Joe,

    Glad that this old set of web codes helped you.

  • December 1, 2013 at 1:49 am

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

  • December 1, 2013 at 1:50 am

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

  • December 2, 2013 at 1:09 am

    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.

  • December 2, 2013 at 7:55 pm


    It should work now.

  • December 22, 2014 at 8:40 am

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

  • December 23, 2014 at 10:52 am


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

  • December 23, 2014 at 5:42 pm

    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….

  • December 23, 2014 at 5:46 pm


    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. 🙂

  • December 25, 2014 at 11:49 am


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

  • December 26, 2014 at 5:01 am

    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,

  • January 29, 2017 at 4:02 am

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

Comments are closed.