A couple of things before we get started....
What is DD-WRT ?
There is a reset button on Buffalo routers, please look in the manual or check the website at Buffalo Technology if you don't know how to use it.
This guide is using firmware version DD-WRT v24 RC-3 (09/13/07) std
This guide is using Buffalo WHR HP G54
The DD-WRT part of this tutorial should work on any router with the DD-WRT firmware installed, the Buffalo part of this guide is specifically for the Buffalo router. (The method to flash the firmware on other routers may be similar, but not exactly the same, so please check with your manufacturers support/manual before flashing any other router.)
Part One - Flashing the Firmware
There are a number of slightly different versions of DD-WRT for Broadcom chip based routers such as Buffalo, Linksys, Dlink and board based routers. You can check to see if your device is supported here. Please make sure you download the correct firmware version for your router. This tutorial assumes you have already located this information for yourself.
YOU MUST USE A WIRED CONNECTION TO FLASH YOUR FIRMWARE. After you have flashed your firmware you can make Admin changes over a wireless connection.
Open up your favorite web browser and navigate to "http://192.168.11.1"
Enter root as User name and leave the password blank.
(If this does not work, check your manual for the correct ip address and password)
Navigate to Admin Config > Firmware Update (See image below)
Click on the browse button and select the previously downloaded DD-WRT firmware file for your router.
Cick the Firmware Update button to update firmware.
Firmware Update may take several minutes to complete. Do not power down the router until Firmware Update is finished and the diag light on the front of the router has stopped blinking.
After you have installed DD-WRT you can access the firmware at the NEW ip address of "http://192.168.1.1"
Starting with DD-WRT v23 SP1, the default username is root and the default password is admin.
Congratulations, if all is well you should now be accessing your DD-WRT firmware.
Part Two - Static IP
Although you can setup a static ip from your OS Networking connection, this guide explains how to do this via DD-WRT firmware settings.
First you will need your MAC Address.
If you know the host name of the computer - Navigate here in DD-WRT
at the bottom of the page look for the Mac Address of the computer ip you are making static.
or in windows.... open up a DOS/CMD window and type
and look for this.
Find the host name for your computer if you don't already know it. You can find it at the top of the ipconfig Information here.
When you know the Mac Address and Host Name - In DD-WRT navigate to this page
Look for this section - DHCP Server - Static leases
Click on Add
1. In the Mac Address - put in the Mac Address you located
2. Put in the Host name of your computer you loacted
3. Choose a static IP address here.
This address must be outside the range of your automatic DHCP address range, and must be different from any other network hardware device you may have, such as a modem or VOIP device.
To check your automatic DHCPrange in DD-WRT look here.
Navigate here
Check automatic DHCP address range settings here
If in this case the Start address is "192.168.1.100" and there are a maximum of 50 users - Then the automatic DHCP range is "192.168.1.100 to 192.168.1.149"
So an acceptable ip address choice is 192.168.1.(0-49) or 192.168.1.(150-255)
Here is an example of mine
YOU MUST FILL OUT ALL THE INFORMATION, OR THIS WILL NOT WORK... IF YOU LOOSE ACCESS TO YOUR ROUTER JUST USE THE RESET BUTTON ON THE ROUTER TO SET TO DEFAULTS AND TRY AGAIN.
As you can see my ip address is now static. (You can find this info under Status>Lan)
When finished Save and then apply.
Part Three - Port Forwarding
I will cover Port forwarding NOT Port Triggering in this section.
In many programs and Gaming, and especially in P2P programs, you need to open up the ports directly to the Internet. Since the internal/private ip address is hidden behind the router (public ip address) and inaccessible to anyone trying to connect from the internet, it is necessary to forward the incoming requests on a particular port, to the correct computer and the correct port.
This is done through Port Forwarding, and in it's simplicity it does exactly what it's name implies. It forwards a port request (WAN - Internet) to the appropriate ip address/computer and port (LAN - Internal), as designated by the settings you input.
This should be used in conjunction with a Static ip address so that you can always forward to the correct ip address.
Navigate to this page
Click on add
1. Here you can name the app or Game you are using... anything you want is ok here.
2.This should be the port you have either been automatically assigned by your app/game/p2p program or the one you have setup yourself. Check the settings for your specific app/game/p2p program
You cannot use a random changing port number in your app or game, this must be consistently the same.
3. Protocol - you should set this to both.
4. Input the static ip address you setup earlier in the guide.
5. Duuhhhh
Lastly save then apply
I would also suggest that you make sure that UPnP is enabled, you can find the settings here.
This allows applications to automatically setup port forwarding if they are able to utilize this feature, you need to have "both" selected under Protocol in step 3. of the Port Forwarding settings.
When you have finished this guide in it's entirety, it wouldn't do any harm to reboot the router to make sure all settings are in place.
IF YOU LOOSE ACCESS TO YOUR ROUTER JUST USE THE RESET BUTTON ON THE ROUTER TO SET TO DEFAULTS AND TRY AGAIN.
Lastly DD-WRT has a great help section/Wiki/FAQ etc.... located here
What is DD-WRT ?
The Disclaimer..... I do not and will not except any responsibility if you don't pay attention or otherwise manage to hose your router... so please read everything carefully and do not skim.DD-WRT is a third party developed firmware released under the terms of the GPL for many 802.11g wireless routers based on a Broadcom chip reference design. For a list of supported devices, please see the Supported Devices page.
The firmware is maintained by BrainSlayer and is hosted at dd-wrt.com. The first versions of DD-WRT were based on the Alchemy Firmware from Sveasoft Inc, which is in turn based on the original GPL'd Linksys firmware and a number of other open source projects. DD-WRT was created directly from Sveasoft's software decision to start charging for their firmware, closing the door to opensource.
There is a reset button on Buffalo routers, please look in the manual or check the website at Buffalo Technology if you don't know how to use it.
This guide is using firmware version DD-WRT v24 RC-3 (09/13/07) std
This guide is using Buffalo WHR HP G54
The DD-WRT part of this tutorial should work on any router with the DD-WRT firmware installed, the Buffalo part of this guide is specifically for the Buffalo router. (The method to flash the firmware on other routers may be similar, but not exactly the same, so please check with your manufacturers support/manual before flashing any other router.)
Part One - Flashing the Firmware
There are a number of slightly different versions of DD-WRT for Broadcom chip based routers such as Buffalo, Linksys, Dlink and board based routers. You can check to see if your device is supported here. Please make sure you download the correct firmware version for your router. This tutorial assumes you have already located this information for yourself.
YOU MUST USE A WIRED CONNECTION TO FLASH YOUR FIRMWARE. After you have flashed your firmware you can make Admin changes over a wireless connection.
Open up your favorite web browser and navigate to "http://192.168.11.1"
Enter root as User name and leave the password blank.
(If this does not work, check your manual for the correct ip address and password)
Navigate to Admin Config > Firmware Update (See image below)
Click on the browse button and select the previously downloaded DD-WRT firmware file for your router.
Cick the Firmware Update button to update firmware.
Firmware Update may take several minutes to complete. Do not power down the router until Firmware Update is finished and the diag light on the front of the router has stopped blinking.
After you have installed DD-WRT you can access the firmware at the NEW ip address of "http://192.168.1.1"
Starting with DD-WRT v23 SP1, the default username is root and the default password is admin.
Congratulations, if all is well you should now be accessing your DD-WRT firmware.
Part Two - Static IP
Although you can setup a static ip from your OS Networking connection, this guide explains how to do this via DD-WRT firmware settings.
First you will need your MAC Address.
If you know the host name of the computer - Navigate here in DD-WRT
at the bottom of the page look for the Mac Address of the computer ip you are making static.
or in windows.... open up a DOS/CMD window and type
Code:
ipconfig /all
Find the host name for your computer if you don't already know it. You can find it at the top of the ipconfig Information here.
When you know the Mac Address and Host Name - In DD-WRT navigate to this page
Look for this section - DHCP Server - Static leases
Click on Add
1. In the Mac Address - put in the Mac Address you located
2. Put in the Host name of your computer you loacted
3. Choose a static IP address here.
This address must be outside the range of your automatic DHCP address range, and must be different from any other network hardware device you may have, such as a modem or VOIP device.
To check your automatic DHCPrange in DD-WRT look here.
Navigate here
Check automatic DHCP address range settings here
If in this case the Start address is "192.168.1.100" and there are a maximum of 50 users - Then the automatic DHCP range is "192.168.1.100 to 192.168.1.149"
So an acceptable ip address choice is 192.168.1.(0-49) or 192.168.1.(150-255)
Here is an example of mine
YOU MUST FILL OUT ALL THE INFORMATION, OR THIS WILL NOT WORK... IF YOU LOOSE ACCESS TO YOUR ROUTER JUST USE THE RESET BUTTON ON THE ROUTER TO SET TO DEFAULTS AND TRY AGAIN.
As you can see my ip address is now static. (You can find this info under Status>Lan)
When finished Save and then apply.
Part Three - Port Forwarding
I will cover Port forwarding NOT Port Triggering in this section.
In many programs and Gaming, and especially in P2P programs, you need to open up the ports directly to the Internet. Since the internal/private ip address is hidden behind the router (public ip address) and inaccessible to anyone trying to connect from the internet, it is necessary to forward the incoming requests on a particular port, to the correct computer and the correct port.
This is done through Port Forwarding, and in it's simplicity it does exactly what it's name implies. It forwards a port request (WAN - Internet) to the appropriate ip address/computer and port (LAN - Internal), as designated by the settings you input.
This should be used in conjunction with a Static ip address so that you can always forward to the correct ip address.
Navigate to this page
Click on add
1. Here you can name the app or Game you are using... anything you want is ok here.
2.This should be the port you have either been automatically assigned by your app/game/p2p program or the one you have setup yourself. Check the settings for your specific app/game/p2p program
You cannot use a random changing port number in your app or game, this must be consistently the same.
3. Protocol - you should set this to both.
4. Input the static ip address you setup earlier in the guide.
5. Duuhhhh
Lastly save then apply
I would also suggest that you make sure that UPnP is enabled, you can find the settings here.
This allows applications to automatically setup port forwarding if they are able to utilize this feature, you need to have "both" selected under Protocol in step 3. of the Port Forwarding settings.
When you have finished this guide in it's entirety, it wouldn't do any harm to reboot the router to make sure all settings are in place.
IF YOU LOOSE ACCESS TO YOUR ROUTER JUST USE THE RESET BUTTON ON THE ROUTER TO SET TO DEFAULTS AND TRY AGAIN.
Lastly DD-WRT has a great help section/Wiki/FAQ etc.... located here