Buffalo WZR-HP-G300NH
From DD-WRT Wiki
Revision as of 14:45, 25 November 2010 (edit) PhillipPlascencia (Talk | contribs) ← Previous diff |
Revision as of 13:52, 1 December 2010 (edit) (undo) Peterrossy (Talk | contribs) (→Setup DD-WRT as Windows Name Server) Next diff → |
||
Line 161: | Line 161: | ||
[http://www.thesiswritingservice.com/ thesis writing] | [http://www.thesiswritingservice.com/ thesis writing] | ||
+ | |||
+ | A team of world-class writers, who provide You with high-quality [http://www.bookwormlab.com/ essay writing] service and [http://www.bestessayhelp.com/ essay help]. |
Revision as of 13:52, 1 December 2010
Contents |
Specifications: Buffalo WZR-HP-G300NH
CPU Model: Atheros AR9132 rev 2 (0xb9) CPU Clock: 400 MHz RAM: 64 MB FLASH: 32 MB
DD-WRT on Buffalo WZR-HP-G300NH
Buffalo provides a re-branded version of DD-WRT specifically for this router. It can be flashed from the GUI and is available on the Buffalo website:
http://www.buffalotech.com/support/getfile/wzrhpg300nh-pro-v24sp2-14998.zip
Read Me Documentation for Buffalo delivered DD-WRT firmware: http://www.buffalotech.com/support/getfile/wzrhpg300nh-pro-v24sp2-14998.txt
As of Feb 2010, the WZR-HP-G300NH can be flashed with DD-WRT directly from the Buffalo web GUI. To do this, go to http://www.dd-wrt.com/site/support/router-database, look up Buffalo WZR-HP-G300NH, and download the firmware file you need (just one file).
- The buffalo to ddwrt webflash file is a full build. It's for flashing from the original Buffalo firmware to DD-WRT.
- The webupgrade file is to upgrade from an older version of DD-WRT. Use this to upgrade from an old version of DD-WRT.
- To revert from DD-WRT back to stock firmware, go to http://www.dd-wrt.com/phpBB2/download.php?id=13418, and download the file. Flash using upgrade on the DD-WRT web GUI. This is the 1.6 stock firmware. You can then upgrade to the latest Buffalo firmware.
See the forums for details. Register and log in to see and download files.
- http://www.dd-wrt.com/phpBB2/viewtopic.php?t=63820&postdays=0&postorder=asc&highlight=13977&start=90.
- http://www.dd-wrt.com/phpBB2/viewtopic.php?t=66494&postdays=0&postorder=asc&start=30. Details on reverting the firmware.
DD-WRT on Buffalo WZR-HP-G300NH (Japanese version)
The official DD-WRT release cannot be pushed by web upload onto the Japanese WZR-HP-G300NH original Buffalo firmware. Buffalo Japan added a "safeguard" that checks for Japanese firmware and rejects western firmware. For people with a Japanese router, see the following two sites for details.
- http://www.dd-wrt.com/phpBB2/viewtopic.php?t=63820&postdays=0&postorder=asc&highlight=13977&start=90
- http://www.dd-wrt.com/phpBB2/viewtopic.php?t=66494&postdays=0&postorder=asc&start=30
Samba Configuration
The DD-WRT already included a build-in samba, but missing ui configuration, while waiting the ui configuration, I write a simple instruction to setup samba.
The instructions here is base on http://g300nh.blogspot.com/2010/06/samba-sharing-in-dd-wrt.html, but have some modify to easy setup with user not family with linux, all setup can be done with dd-wrt interface, and don't need to use shell of dd-wrt.
Pre Requirements
DD-WRT don't have any tools to format you hdd, so you must have a hdd in the format dd-wrt can understand (fat32, ext3...)
Goto Services/USB section in dd-wrt, Change the setting as below:
Core USB Support: Enable USB 2.0 Support: Enable USB Storage Support: Enable ext2 / ext3 File System Support: Enable FAT File System Support: Enable Automatic Drive Mount: Enable Disk Mount Point: /mnt
After apply the change, if you already plugin you hdd, you should see the information of hdd in dd-wrt
Anonymous Sharing Setup
This setup will share you disk you already mounted to /mnt folder, It will share for everyone on your network and don't request username/password to login
To setup, Goto Administrators/Commands section in DD-WRT, copy below script to textbox then choose Save Startup
# Stop samba service killall smbd killall nmbd sleep 2 # Configure samba mkdir -p /tmp/etc/samba echo " [global] netbios name = DD-WRT workgroup = WORKGROUP server string = DD-WRT syslog = 10 obey pam restrictions = yes socket options = TCP_NODELAY preferred master = no os level = 20 security = share guest account = nobody invalid users = root, mail, deamon, reboot null passwords = yes guest only = yes map to guest = Bad User private dir = /tmp/etc/samba/ lock directory = /var/lock/ pid directory = /var/run/ unix charset = UTF-8 dos charset = UTF-8 map archive = No map hidden = No map system = No [Share] path = /mnt/ read only = no create mask = 0700 directory mask = 0700 " > /tmp/etc/samba/smb.conf # Add user for samba # guest user grep -q nobody /etc/passwd || echo 'nobody:x:65534:65534:nobody:/mnt:/bin/false' >> /etc/passwd # Start samba service SMBOPTIONS="-s /tmp/etc/samba/smb.conf" /usr/sbin/smbd $SMBOPTIONS /usr/sbin/nmbd $SMBOPTIONS
Setup Sharing with Username/Password
Because smbpasswd
program build-in DD-WRT alway treat /etc/samba/smbpasswd as the samba password file, and /etc is readonly file system, should we must temporary bind /tmp/etc to /etc during add user. Change # Add user for samba
section like below:
# Add user for samba mount -o bind /tmp/etc /etc # clear samba user if exists echo "" > /tmp/etc/samba/smbpasswd # guest user grep -q nobody /etc/passwd || echo 'nobody:x:65534:65534:nobody:/mnt:/bin/false' >> /etc/passwd # add user: username=share, password=sharepassword grep -q share /etc/passwd || echo 'share:x:65534:65534:nobody:/mnt/:/bin/false' >> /etc/passwd smbpasswd share sharepassword umount /etc
If you need add more user, you can repeat these lines with your username and password
# add user: username=share, password=sharepassword grep -q share /etc/passwd || echo 'share:x:65534:65534:nobody:/mnt/:/bin/false' >> /etc/passwd smbpasswd share sharepassword
In [global] section of samba configuration, change some config value as below (add if the config does not exists before):
encrypt passwords = true passdb backend = smbpasswd security = user null passwords = no guest only = no smb passwd file = /tmp/etc/samba/smbpasswd
Configuration Share Folder
add later
Setup DD-WRT as Windows Name Server
If your network has more than subnet, you might need to setup a Windows Name Server (WINS server), You can make you router become a WINS server even if you don't have a usb hdd or you don't need a sharing setup. Just user script like Anonymous Sharing Setup
but change some setting in [global]
section:
wins support = yes
Goto Setup/Basic section in dd-wrt and set WINS server in DHCP group to your lan ip address (ex: 192.168.11.1)
If in your network have any device use static IP, find the Wins section and point to dd-wrt lan ip address
(If you use windows, choose properties of you adapter, click Advance, goto WINS tag, If your use linux, add wins server = xxx.xxx.xxx.xxx
in [global]
section of samba)
A team of world-class writers, who provide You with high-quality essay writing service and essay help.