以下を参考に実施しました。
DD-WRTまとめwiki - Buffaloルータのデバッグモード
http://www34.atwiki.jp/ddwrt/pages/19.html
DD-WRTまとめwiki - ファームウェア・設定ファイルなどのバックアップ・書き込み
http://www34.atwiki.jp/ddwrt/pages/20.html
バックアップしたファームウェアは、バージョン 1.48 です。
ドライバーダウンロード WZR-G144NHシリーズ | BUFFALO バッファロー
http://buffalo.jp/download/driver/lan/wzr-g144nh_fw.html
デバッグモード画面へのアクセスとファームウェアのバックアップ
クライアントは Windows 7 の Firefox 26.0です。http://192.168.11.1/cgi-bin/cgi?req=frm&frm=py-db/55debug.html にアクセスすると、認証を求められました。Wikiによれば、
- ユーザー名:bufpy
- パスワード:otdpopy+ルートのパスワード
そうすると、---- UNDER CONSTRUCTION --- というメッセージが表示されました。クライアントブラウザによってはこの画面になってしまうとの事だったので、Internet Explorer 11 でアクセスするも、メッセージが変化しません。しかし、もう一度 Firefox でアクセスすると、無事デバッグモード画面にアクセスできました。もしかしたら、単にリロードすればよかったのかもしれません。
telnet して mtdblock をダンプ
telnet クライアントの putty から WZR-G144NH に telnetすると、BusyBox のプロンプトが出迎えてくれました。
BusyBox v1.00 (2008.02.15-04:32+0000) Built-in shell (msh)まず、mtdblock がどれだけあるのかを確認します。
Enter 'help' for a list of built-in commands.
# ls /dev/mtdblock
0 1 2 3
4つあることがわかったので、その数だけ dd コマンドでダンプします。
# dd if=/dev/mtdblock/0 of=/tmp/whr-g144nh-original1.48-0.bin
512+0 records in
512+0 records out
# dd if=/dev/mtdblock/1 of=/tmp/whr-g144nh-original1.48-1.bin
7424+0 records in
7424+0 records out
# dd if=/dev/mtdblock/2 of=/tmp/whr-g144nh-original1.48-2.bin
5938+0 records in
5938+0 records out
# dd if=/dev/mtdblock/3 of=/tmp/whr-g144nh-original1.48-3.bin
256+0 records in
256+0 records out
あとは、これらのファイルをブラウザからダウンロードします。
http://192.168.11.1/html/py-db/tmp/whr-g144nh-original1.48-0.bin
http://192.168.11.1/html/py-db/tmp/whr-g144nh-original1.48-1.bin
http://192.168.11.1/html/py-db/tmp/whr-g144nh-original1.48-2.bin
http://192.168.11.1/html/py-db/tmp/whr-g144nh-original1.48-3.bin
これで完了。
以下、各画面のメニューや表示項目を備忘のために書き留めておきます。
WZR-G144NH デバッグモード画面 メニュー
Ver1.48_1.02
build_info:2008/02/15 13:36:00 JST by vc03021 ( )@mkitec-xen :/data/old_snapshot/snapshot_WZR-G144N_1.42/1.48_1.02_2008-02-15-13-11-JST_WZR-G144NH
debug
telnetd
/var/log/messages
/var/log/messages.0
Filter Table(iptables -L -v -n)
Nat table(iptables -t nat -L -v -n)
Routing Table(wanctl pppoeroute show)
NFS Mount
Dhcp Relay
Wireless Status
command
sample
# grep XXX /var/log/messages
# mlc conlog on
# brctl show
# ifconfig eth1 # WAN
# ls /tmp/par
# cat /tmp/par/c_machine
# tar -czf /tmp/params.taz -C /tmp ./par
# iptables -t mangle -A PREROUTING -p all -i eth1 -j LOG --log-prefix PLOG
# portmap
# mount -t nfs 192.168.11.55:/opt/PYc/testbed/tmp/www-ath/ /www
# grep built /dev/mtd/1ro # show Redboot version & built date
command result goto page top
No file /tmp/debug.txt
goto page top
/var/log/messages
/var/log/messagesJan 1 00:00:01 2008 (none) syslog.info syslogd started: BusyBox v1.00 (2008.02.15-04:32+0000)
Jan 1 00:00:01 2008 (none) kern.notice : klogd started: BusyBox v1.00 (2008.02.15-04:32+0000)
Jan 1 00:00:01 2008 (none) kern.notice : BOOT: WZR-G144NH
Jan 1 00:00:01 2008 (none) kern.notice : PPPoE: PPP generic driver version 2.4.2
Jan 1 00:00:01 2008 (none) kern.notice : PPPoE: PPP Deflate Compression module registered
Jan 1 00:00:01 2008 (none) kern.notice : PPPoE: PPP BSD Compression module registered
Jan 1 00:00:02 2008 (none) kern.notice : NAT: ip_conntrack version 2.1 (256 buckets, 2048 max) - 344 bytes per conntrack
Jan 1 00:00:02 2008 (none) kern.notice : NAT: ipt_time loading
Jan 1 00:00:07 2008 (none) kern.notice : WIRELESS: wl0: Channel Select: 1
Jan 1 00:00:07 2008 (none) kern.info ap_servd[154]: startup daemon
Jan 1 00:00:07 2008 (none) kern.info ap_servd[154]: assigned intreface br0
Jan 1 00:00:07 2008 (none) kern.info ap_servd[154]: standalone mode
Jan 1 00:00:15 2008 (none) kern.info udhcpd: udhcpd (v0.9.9-pre) started
Jan 1 00:00:15 2008 (none) kern.err udhcpd: max_leases value (256) not sane, setting to 64 instead
Jan 1 00:00:15 2008 (none) kern.debug dnrd[209]: Read Configuration File
Jan 1 00:00:15 2008 (none) kern.debug dnrd[209]: /tmp/resolv.conf(default)
Jan 1 00:00:15 2008 (none) kern.debug dnrd[209]: /tmp/ppp/resolv_ppp0.conf(ppp0)
Jan 1 00:00:15 2008 (none) kern.debug dnrd[209]: /tmp/ppp/resolv_ppp1.conf(ppp1)
Jan 1 00:00:15 2008 (none) kern.debug dnrd[209]: /tmp/ppp/resolv_ppp2.conf(ppp2)
Jan 1 00:00:15 2008 (none) kern.debug dnrd[209]: /tmp/ppp/resolv_ppp3.conf(ppp3)
Jan 1 00:00:15 2008 (none) kern.debug dnrd[209]: /tmp/ppp/resolv_ppp4.conf(ppp4)
Jan 1 00:00:17 2008 (none) kern.notice : NAT: cleanup /proc/net/ip_conntrack
/var/log/messages.0
/var/log/messages.0No file /var/log/messages.o
Filter Table(iptables -L -v -n)
iptables -L -v -nChain INPUT (policy ACCEPT 22680 packets, 2603K bytes)
pkts bytes target prot opt in out source destination
0 0 DROP all -- vlan1 * 0.0.0.0/0 0.0.0.0/0 state INVALID
6178 515K ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
9482 962K SIMPLE-IDENT-REJECT all -- * * 0.0.0.0/0 0.0.0.0/0
9482 962K SIMPLE-ICMP all -- * * 0.0.0.0/0 0.0.0.0/0
9482 962K NAT-GROUP-INPUT-CHAIN all -- * * 0.0.0.0/0 0.0.0.0/0
0 0 DROP udp -- vlan1 * 0.0.0.0/0 0.0.0.0/0 udp dpt:520
2 120 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0 state NEW
0 0 DROP all -- vlan1 * 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 DROP all -- vlan1 * 0.0.0.0/0 0.0.0.0/0 state INVALID
0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
0 0 DROP udp -- vlan1 * 0.0.0.0/0 0.0.0.0/0 udp dpt:520
2718 141K NAT-GROUP-FORWARD-CHAIN all -- * * 0.0.0.0/0 0.0.0.0/0
2718 141K UPNP-FORWARD-CHAIN all -- * * 0.0.0.0/0 0.0.0.0/0
2718 141K ACCEPT all -- br0 * 0.0.0.0/0 0.0.0.0/0 state NEW
0 0 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0 state NEW
0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 21750 packets, 12M bytes)
pkts bytes target prot opt in out source destination
Chain NAT-GROUP-FORWARD-CHAIN (1 references)
pkts bytes target prot opt in out source destination
Chain NAT-GROUP-INPUT-CHAIN (1 references)
pkts bytes target prot opt in out source destination
Chain SIMPLE-ICMP (1 references)
pkts bytes target prot opt in out source destination
0 0 DROP icmp -- vlan1 * 0.0.0.0/0 0.0.0.0/0
Chain SIMPLE-IDENT-REJECT (1 references)
pkts bytes target prot opt in out source destination
0 0 REJECT tcp -- vlan1 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:113 reject-with tcp-reset
Chain UPNP-FORWARD-CHAIN (1 references)
pkts bytes target prot opt in out source destination
Chain USER-DEFINITION-CHAIN-FORWARD (0 references)
pkts bytes target prot opt in out source destination
Chain USER-DEFINITION-CHAIN-IPUNNUM (0 references)
pkts bytes target prot opt in out source destination
Nat table(iptables -t nat -L -v -n)
iptables -t nat -L -v -nChain PREROUTING (policy ACCEPT 5267 packets, 298K bytes)
pkts bytes target prot opt in out source destination
2617 148K UPNP-PREROUTING-CHAIN all -- * * 0.0.0.0/0 0.0.0.0/0
Chain POSTROUTING (policy ACCEPT 20 packets, 5817 bytes)
pkts bytes target prot opt in out source destination
1249 67984 MASQUERADE all -- * vlan1 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 23 packets, 6045 bytes)
pkts bytes target prot opt in out source destination
Chain UPNP-PREROUTING-CHAIN (1 references)
pkts bytes target prot opt in out source destination
Routing Table(wanctl pppoeroute show)
wanctl pppoeroute show----------------------------------------------
table dst gw dev
254 192.168.11.0/24 0.0.0.0 br0
254 239.0.0.0/ 8 0.0.0.0 br0
254 0.0.0.0/ 0 0.0.0.0 vlan1
255 127.255.255.255/32 0.0.0.0 lo
255 192.168.11.1/32 0.0.0.0 br0
255 192.168.11.0/32 0.0.0.0 br0
255 192.168.11.255/32 0.0.0.0 br0
255 127.0.0.0/32 0.0.0.0 lo
255 127.0.0.1/32 0.0.0.0 lo
255 127.0.0.0/ 8 0.0.0.0 lo
----------------------------------------------
priority from to table
0 0.0.0.0/ 0 0.0.0.0/ 0 -> 255
32766 0.0.0.0/ 0 0.0.0.0/ 0 -> 254
32767 0.0.0.0/ 0 0.0.0.0/ 0 -> 253
NFS Mount
NFS サーバ
ゲートウェイ
mount元ディレクトリ
mount先ディレクトリ
状態 NFS サーバ ゲートウェイ mount元ディレクトリ mount先ディレクトリ 操作
×
/www
HELP by shatake 2005/01/27
coLinux を使用している環境のような場合
次のような設定になります。
NFS サーバ
ゲートウェイ
mount元ディレクトリ
mount先ディレクトリ
また、NFSサーバ側(図ではcoLinux)では /etc/exports に
------------------------------
/opt/trunk/tmp/www 192.168.11.1(rw,sync)
------------------------------
と書いておくのを忘れないで下さい。
|
|
| WAN : 111.111.111.2
--------------
| |
| |
| AirStation |
| |
| /www |
-------------
| LAN : 192.168.11.1/24
|
|
| LAN : 192.168.11.10/24
-------------------------------------------------
| | |
| Local PC |
| | |
| |--------------| |
| | | TAP : 192.168.0.1 |
| | | |
| | | eth0 : 192.168.0.2 |
| | -------------------------- |
| | | coLinux | |
| | | | |
| | | /opt/trunk/tmp/www | |
| | -------------------------- |
-------------------------------------------------
|
| Intra : 10.20.9.xx
Dhcp Relay
DHCPリレー設定DHCPリレー機能を利用する場合は
アドレス変換 : 使用しない
DHCPサーバ機能 : 使用しない
として下さい
アドレス変換 使用する
DHCPサーバ機能 使用する
DHCPリレー機能 使用する
Wireless Status
Wireless Status機能:インターフェイス:
コマンド:
command eth1
ssid Current SSID: "00XXXXXXXXXX"
band auto
channel No scan in progress.
current mac channel 1
target channel 1
rateset [ 1(b) 2(b) 5.5(b) 6 9 11(b) 12 18 24 36 48 54 ]
frameburst 0
dtim 1
pwr_percent 100
gmode 54g Auto (1)
gmode_protection 0
mrate auto
wsec 4
keys
radio 0x0000
srl 7
lrl 4
txpwr pwr in mw 127
pwr in mw after override adj 127
1496
antdiv
txant 0
phytype 4
assoclist
bi 100
tci_fixprio
dot1q_filter
dot1q_mangle_tag
0 件のコメント :
コメントを投稿
コメントはお気軽にどうぞ。誤りの指摘なども歓迎します。コメントは管理者が確認してから公開されます。記事に関係のないコメントや、記事に相応しくないコメントは、公開されないことがあります。