Sau đây mình sẽ hướng dẫn các bạn cấu hình router sử dụng firmware openwrt (mình sử dụng router wzr-hp-ag300h) để tạo một server NAS đơn giản sử dụng 1 ổ cứng cắm ngoài (usb).
1. Đầu tiên các bạn làm theo hướng dẫn sau:
http://wiki.openwrt.org/doc/howto/usb.storage
a. Cái các package cần thiết để router có thể nhận được ổ cứng USB mà các bạn cắm vào (Basic USB Support) + file system mà ổ cứng của các bạn đang sử dụng (ext4, ntfs...).
b. Mount ổ cứng các bạn vừa cắm vào router (vd: /dev/sda1) vào 1 thư mục để có thể access vào các file trên ổ cứng qua thư mục đó (vd: /mnt/share)
2. Các bạn cần cài 1 file server để share các file ở local (trong thư mục ổ cứng các bạn đã mount ở trên) trên server ra để các máy khác có thể access vào được.
http://wiki.openwrt.org/doc/howto/cifs.server
Sau đó các bạn có thể làm theo hướng dẫn config từ console hoặc cài giao diện quản lý samba của luci và config từ giao diện: Services\Network Share
http://wiki.openwrt.org/doc/recipes/usb-storage-samba-webinterface
* Các bạn chú ý nếu sử dụng ổ đĩa NTFS thì cần phải làm theo hướng dẫn sau để có thể access và write được vào ổ (nếu không các bạn sẽ gặp lỗi access denied với ổ đĩa sử dụng NTFS):
http://wiki.openwrt.org/doc/howto/writable_ntfs
Chúc các bạn thành công.
Showing posts with label ROUTER. Show all posts
Showing posts with label ROUTER. Show all posts
Saturday, December 28, 2013
Sunday, December 22, 2013
Debrick, flash firmware for buffalo wzr-hp-ag300h router
Via TFTP on Linux (Ubuntu):
Please follow the instruction on openwrt's wiki site:
http://wiki.openwrt.org/toh/buffalo/wzr-hp-ag300h#installation.using.the.tftp.method
But please note the following:
- Use a hardware switch between your computer and your ag300h. From your computer plug an Ethernet cable directly to the port 1 of the switch. From the port 2 of the switch, connect it with the ag300h by Ethernet cable.
- For the ag300h you should only wait for 5s (instead of 10s) after power on the device to enter the tftp put command.
- If all settings are done but you still get the timeout error when put the file, close your terminal window, start a new one and try again.
- The ag300h for the Japan market has different region in u-boot so you can't install dd-wrt or other English stock firmware (come from buffalotech.com). You must unbox your router, use terminal console to change its region first. Please read carefully the instruction on the wiki above.
*If the bootloader of your router was broken and you can't use tftp to access via u-boot, you must use another way to recover it. You can use a serial console (TTL USB) to do so. The following instruction for the WZR-HP-G300NH but it maybe similar for the AG300H and it's a good reference for now.
http://scarygliders.net/2010/02/23/hacking-around-the-japanese-buffalo-wzr-hp-g300n/
Hopefully this helps some people.
Subscribe to:
Posts (Atom)