02 May, 2010

Huawei B970b (Smartone Vodafone Wifi Router)

Before I subscribe the Smartone Vodafone Home Broadband service, I've serviously try to seek some official answer the following questions:
1. Will the router get a public IP address?
2. Does the bundled WIFI router allow me to configure port forwarding?

And the official answer is NO!

But the fact is, YES! The router is Huawei B970b, as there is not much information on the Net at this moment, I'd share information gathered so far. Before is a summary followed with command line output capture (Yes, I can get the shell  access on the router easily)!

Below is summary of import points
1. I do get a public IP!
2. The default router admin software (web-based) allow you to configure port forward
3. In addition, you can also configure DMZ server, MAC filter, DynDNS setting.
4. Telnet port (23) is opened by default (login with the admin account and you get a busybox)
5. It use dnsmasq and iptables

The following is the information I gathered after I gain root access:

# cat /proc/version
Linux version 2.4.20 (bcm@localhost.localdomain) (gcc version 3.2.3 with Broadcom modifications) #2 Tue Feb 2 18:23:23 CST 2010



# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
/dev/mtdblock/3 on /tmp/var/custom type squashfs (ro)



# free 
              total         used         free       shared      buffers
  Mem:        30520        13552        16968            0         1520
 Swap:            0            0            0
Total:        30520        13552        16968





# cat /proc/kmsg
<4>Kernel addr reboot flag = 0xa1fff000, reboot_number = 0xa1fff004
<4>Kernel physical_mem =0x2000000 reboot flag = 0x12345678, reboot_number = 0x0
<4>CPU ProcId is: 0x00029029, options: 0x0000014d
<4>Primary instruction cache 16kb, linesize 16 bytes (4 ways)
<4>Primary data cache 16kb, linesize 16 bytes (2 ways)
<4>Linux version 2.4.20 (bcm@localhost.localdomain) (gcc version 3.2.3 with Broadcom modifications) #2 Tue Feb 2 18:23:23 CST 2010
<4>Setting the PFC to its default value
<4>Determined physical RAM map:
<4> memory: 01fff000 @ 00000000 (usable)
<4>On node 0 totalpages: 8191
<4>zone(0): 8191 pages.
<4>zone(1): 0 pages.
<4>zone(2): 0 pages.
<4>Kernel command line: root=/dev/mtdblock2 noinitrd console=ttyS0,115200
<4>CPU: BCM5354 rev 3 at 240 MHz
<4>Calibrating delay loop... 239.20 BogoMIPS
<6>Memory: 30452k/32764k available (1563k kernel code, 2312k reserved, 112k data, 68k init, 0k highmem)
<6>Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
<6>Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
<4>Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
<4>Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)



dev:    size   erasesize  name
mtd0: 00040000 00010000 "cfe"
mtd1: 00340000 00010000 "linux"
mtd2: 00282970 00010000 "rootfs"
mtd3: 00060000 00010000 "resource"
mtd4: 00010000 00010000 "factory"
mtd5: 00010000 00002000 "nvram"







2 comments:

CSharp said...

i want to know how to save my rules in iptables so if the router rebooted i still have my rules

Zarick Lau said...

Unfortunately, I returned it to Smartone Vodafone due to coverage problem on my place.

As far as I can remember, there is no easy way to store iptables rules through the shell access as the firmware init process is completely tailored made.

IMO, there is not much value to define complex rules on that box as the box itself may be comprised. If you are serious about security, it is better to treat that as a modem box and put another firewall behind it.