Almond

From Noisebridge Wiki
Jump to navigation Jump to search

Connected via internal serial header at 57,600 bps. Boot dump after factory reset.

U-Boot 1.1.3 (May  2 2012 - 12:26:52)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fa0000
config usb..*** Error: D+/D- is 1/1, config usb failed.
..*** Error: D+/D- is 1/1, config usb failed.



Disabling WAN Port (P0)

Drawing Almond Logo

00000000
Set info->start[0]=BF000000
flash_protect ON: from 0xBF000000 to 0xBF02BBDB
flash_protect ON: from 0xBF040000 to 0xBF040FFF
*** Warning - bad CRC, using default environment

============================================ 
Ralink UBoot Version: 4.0.0.0
-------------------------------------------- 
ASIC 3052_MP2 (Port5<->None)
DRAM component: 256 Mbits SDR
DRAM bus: 32 bit
Total memory: 64 MBytes
Flash component: NOR Flash
Date:May  2 2012  Time:12:26:52
============================================ 
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:128, ways:4, linesz:32 ,total:16384 

 ##### The CPU freq = 384 MHZ #### 
 estimate memory size =64 Mbytes

Please choose the operation: 
   1: Load system code to SDRAM via TFTP. 
   2: Load system code then write to Flash via TFTP. 
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial. 
   9: Load Boot Loader code then write to Flash via TFTP.                     0 
   
3: System Boot system code via Flash.
## Booting image at bf080000 ...
   Image Name:   Linux Kernel Image
   Created:      2013-01-03   7:44:56 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    6533509 Bytes =  6.2 MB
   Load Address: 80000000
   Entry Point:  805c0000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 805c0000) ...
## Giving linux memsize in MB, 64

Starting kernel ...


LINUX started...

 THIS IS ASIC
Linux version 2.6.21 (devesh@securifi-development) (gcc version 3.4.2) #425 Thu Jan 3 13:14:50 IST 2013

 The CPU frequency set to 384 MHz
CPU revision is: 0001964c
Determined physical RAM map:
 memory: 04000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Built 1 zonelists.  Total pages: 16256
Kernel command line: console=ttyS1,57600n8 root=/dev/ram0
Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes.
Primary data cache 16kB, 4-way, linesize 32 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
Cache parity protection disabled
cause = 4080801c, status = 11000000
PID hash table entries: 256 (order: 8, 1024 bytes)
calculating r4koff... 00177000(1536000)
CPU frequency 384.00 MHz
Using 192.000 MHz high precision timer.
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 52472k/65536k available (3372k kernel code, 13004k reserved, 2511k data, 4368k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Sangoma WANPIPE Router v1.1 (c) 1995-2000 Sangoma Technologies Inc.
ralink flash device: 0x1000000 at 0x1f000000
Time: MIPS clocksource has been installed.
Ralink SoC physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
Ralink SoC physically mapped flash: CFI does not contain boot bank location. Assuming top.


Devesh and Nirav's Fix for Winbond:
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Creating 6 MTD partitions on "Ralink SoC physically mapped flash":
0x00000000-0x01000000 : "ALL"
0x00000000-0x00040000 : "Bootloader"
0x00040000-0x00060000 : "Config"
0x00060000-0x00080000 : "Factory"
0x00080000-0x00c00000 : "Kernel"
0x00c00000-0x01000000 : "Almond_Data"
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
detected lzma initramfs
detected lzma initramfs
initramfs: LZMA lc=3,lp=0,pb=2,dictSize=1048576,origSize=19326464
LZMA initramfs by Ming-Ching Tiew <mctiew@yahoo.com>.......................................................................................................................................................................................................................................................................................................Load Ralink Timer0 Module
Load Ralink Timer1 Module
squashfs: version 3.2-r2 (2007/01/15) Phillip Lougher
squashfs: LZMA suppport for slax.org by jro
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
fuse init (API version 7.8)
io scheduler noop registered (default)
Almond LCD Device Major Number = 80
almond_touch_major = 252
Link Driver Device Major Number = 35
almond_touch_major = 97
HDLC line discipline: version $Revision: 1.1.1.1 $, maxframe=4096
N_HDLC line discipline registered.
Serial: 8250/16550 driver $Revision: 1.9 $ 2 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0xb0000500 (irq = 37) is a 16550A
serial8250: ttyS1 at I/O 0xb0000c00 (irq = 12) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 32768K size 1024 blocksize
loop: loaded (max 8 devices)
rdm_major = 253
Ralink APSoC Ethernet Driver Initilization. v2.1  256 rx/tx descriptors allocated, mtu = 1500!
MAC_ADRH -- : 0x0000e471
MAC_ADRL -- : 0x8500d0d2
PROC INIT OK!
PPP generic driver version 2.4.2
PPP BSD Compression module registered
NET: Registered protocol family 24
PPPoL2TP kernel driver, V0.17
PPTP driver version 0.8.1


=== pAd = c0068000, size = 805912 ===

<-- RTMPAllocAdapterBlock, Status=0
block2mtd: version $Revision: 1.1.1.1 $
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
dwc_otg: version 2.72a 24-JUN-2008
DWC_otg: Core Release: 2.66a
DWC_otg: Periodic Transfer Interrupt Enhancement - disabled
DWC_otg: Multiprocessor Interrupt Enhancement - disabled
DWC_otg: Using DMA mode
DWC_otg: Device using Buffer DMA mode
dwc_otg lm0: DWC OTG Controller
dwc_otg lm0: new USB bus registered, assigned bus number 1
dwc_otg lm0: irq 18, io mem 0x00000000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (512 buckets, 4096 max)
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
ipgre init: can't add protocol
ip_tables: (C) 2000-2006 Netfilter Core Team, Type=Fully Cone
ipt_time loading
arp_tables: (C) 2002 David S. Miller
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 10
NET: Registered protocol family 17
Bridge firewalling registered
Ebtables v2.0 registered
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
Freeing unused kernel memory: 4368k freed
init started: BusyBox v1.12.1 (2012-10-11 12:08Algorithmics/MIPS FPU Emulator v1.5
:55 IST)
starting pid 638, tty '': '/etc_ro/rcS'
devpts: called with bogus options
 __________________________________________________________________________
|==========================================================================|
|     _______. _______   ______  __    __  .______       __   _______  __  |
|    /       ||   ____| /      ||  |  |  | |   _  \     |  | |   ____||  | |
|   |   (----`|  |__   |  ,----'|  |  |  | |  |_)  |    |  | |  |__   |  | |
|    \   \    |   __|  |  |     |  |  |  | |      /     |  | |   __|  |  | |
|.----)   |   |  |____ |  `----.|  `--'  | |  |\  \----.|  | |  |     |  | |
||_______/    |_______| \______| \______/  | _| `._____||__| |__|     |__| |
|==========================Routers for Humans==============================|
|       d8888 888      888b     d888  .d88888b.  888b    888 8888888b.     |
|      d88888 888      8888b   d8888 d88P" "Y88b 8888b   888 888  "Y88b    |
|     d88P888 888      88888b.d88888 888     888 88888b  888 888    888    |
|    d88P 888 888      888Y88888P888 888     888 888Y88b 888 888    888    |
|   d88P  888 888      888 Y888P 888 888     888 888 Y88b888 888    888    |
|  d88P   888 888      888  Y8P  888 888     888 888  Y88888 888    888    |
| d8888888888 888      888   "   888 Y88b. .d88P 888   Y8888 888  .d88P    |
|d88P     888 88888888 888       888  "Y88888P"  888    Y888 8888888P"     |
|__________________________________________________________________________|

ioctl: Unknown error 515
internet.sh
starting pid 660, tty '/dev/ttyS1': '/bin/sh'


BusyBox v1.12.1 (2012-10-11 12:08:55 IST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/ # Password for 'admin' changed

phy_tx_ring = 0x008a7000, tx_ring = 0xa08a7000

phy_rx_ring0 = 0x008a8000, rx_ring0 = 0xa08a8000
MAC_ADRH -- : 0x0000e471
MAC_ADRL -- : 0x8500d0d2
RT305x_ESW: Link Status Changed
CDMA_CSG_CFG = 81000007
GDMA1_FWD_CFG = 710000
vconfig: ioctl error for rem: Invalid argument
vconfig: ioctl error for rem: Invalid argument
rmmod: 8021q: No such file or directory
insmod: 8021q.ko: module not found
eth2.2: Setting MAC address to  e4 71 85 00 d0 d3.
device eth2 entered promiscuous mode
VLAN (eth2.2):  Setting underlying device (eth2) to promiscious mode.

##### disable 1st wireless interface #####
RX DESC a08c2000  size = 2048
<-- RTMPAllocTxRxRingMemory, Status=0
Key1Str is Invalid key length(10) or Type(1)
Key2Str is Invalid key length(0) or Type(0)
Key3Str is Invalid key length(0) or Type(0)
Key4Str is Invalid key length(0) or Type(0)
1. Phy Mode = 9
2. Phy Mode = 9
3. Phy Mode = 9
MCS Set = ff ff 00 00 01
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
Main bssid = e4:71:85:00:d0:d0
<==== rt28xx_init, Status=0
0x1300 = 00064380
ifconfig: ioctl 0x8913 failed: No such device
brctl: bridge br0: No such device or address
WAN Port MAC should be:
E4:71:85:0:D0:D3
ifconfig Says:
eth2.2    Link encap:Ethernet  HWaddr E4:71:85:00:D0:D3  
          inet6 addr: fe80::e671:85ff:fe00:d0d3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:324 (324.0 B)

Running configVIF (Just incase):
rmmod: 8021q: No such file or directory
insmod: 8021q.ko: module not found
eth2.2: Setting MAC address to  e4 71 85 00 d0 d3.
RSTRING = 
0x0000
net.ipv4.netfilter.ip_conntrack_max = 100000
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 120
net.ipv4.netfilter.ip_conntrack_tcp_timeout_established = 300
net.ipv4.netfilter.ip_conntrack_udp_timeout = 60
net.ipv4.netfilter.ip_conntrack_udp_timeout_stream = 180
##### config Ralink ESW vlan partition (WLLLL) #####
switch reg write offset=14, value=405555
switch reg write offset=50, value=2001
switch reg write offset=98, value=7f3f
switch reg write offset=e4, value=3f
switch reg write offset=40, value=1002
switch reg write offset=44, value=1001
switch reg write offset=48, value=1001
switch reg write offset=70, value=ffff417e
done.
rmmod: 8021q: No such file or directory
insmod: 8021q.ko: module not found
eth2.2: Setting MAC address to  e4 71 85 00 d0 d3.
device ra0 entered promiscuous mode
udhcpc (v1.12.1) started
br0: port 2(eth2.1) entering learning state
br0: port 1(ra0) entering learning state
ifconfig: ioctl 0x8914 failed: Cannot assign requested address
ifconfig: ioctl 0x8914 failed: Cannot assign requested address
br0: topology change detected, propagating
br0: port 2(eth2.1) entering forwarding state
br0: topology change detected, propagating
br0: port 1(ra0) entering forwarding state
killall: udhcpd: no process killed
Set: phy[4].reg[0] = 3900
Set: phy[1].reg[0] = 3900
Set: phy[2].reg[0] = 3900
Set: phy[3].reg[0] = 3900
Set: phy[4].reg[0] = 3100
Set: phy[1].reg[0] = 3100
Set: phy[2].reg[0] = 3100
Set: phy[3].reg[0] = 3100
ifconfig: ioctl 0x8913 failed: No such device
rm: cannot remove '/etc/radvd.conf': No such file or directory
libupnp: using UDP SSDP_PORT = 1900
upnpd[1554]: UPnP SDK Successfully Initialized.
Jan  1 00:00:26 upnpd[1554]: UPnP SDK Successfully Initialized.
upnpd[1554]: Succesfully set the Web Server Root Directory.
Jan  1 00:00:26 upnpd[1554]: Succesfully set the Web Server Root Directory.
upnpd[1554]: IGD root device successfully registered.
Jan  1 00:00:26 upnpd[1554]: IGD root device successfully registered.
ioctl: Unknown error 515
killall rt2860apd 1>/dev/null 2>&1
iptables -F -t filter 1>/dev/null 2>&1
iptables -D FORWARD -j macipport_filter 1>/dev/null 2>&1
iptables -F macipport_filter 1>/dev/null 2>&1
iptables -D FORWARD -j web_filter  1>/dev/null 2>&1
iptables -F web_filter  1>/dev/null 2>&1
iptables -D FORWARD -j malicious_filter 1>/dev/null 2>&1
iptables -F malicious_filter  1>/dev/null 2>&1
iptables -D INPUT -j malicious_input_filter 1>/dev/null 2>&1
iptables -F malicious_input_filter  1>/dev/null 2>&1
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -t filter -N web_filter 1>/dev/null 2>&1
iptables -t filter -N macipport_filter 1>/dev/null 2>&1
iptables -t filter -N malicious_filter 1>/dev/null 2>&1
iptables -t filter -N synflood_filter 1>/dev/null 2>&1
iptables -t filter -N malicious_input_filter 1>/dev/null 2>&1
iptables -t filter -N synflood_input_filter 1>/dev/null 2>&1
iptables -t filter -A FORWARD -j web_filter 1>/dev/null 2>&1
iptables -t filter -A FORWARD -j macipport_filter 1>/dev/null 2>&1
iptables -t filter -A FORWARD -j malicious_filter 1>/dev/null 2>&1
iptables -t filter -A malicious_filter -p tcp --syn -j synflood_filter 1>/dev/null 2>&1
iptables -t filter -A INPUT -j malicious_input_filter 1>/dev/null 2>&1
iptables -t filter -A malicious_input_filter -p tcp --syn -j synflood_input_filter 1>/dev/null 2>&1
iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu 1>/dev/null 2>&1
iptables -A malicious_input_filter -i eth2.2 -p tcp --dport 80 -j DROP
/bin/super_dmz -f
upnpd[1554]: Advertisements Sent.  Listening for requests ... 
Jan  1 00:00:29 upnpd[1554]: Advertisements Sent.  Listening for requests ... 
killall: udhcpd: no process killed
Set: phy[4].reg[0] = 3900
Set: phy[1].reg[0] = 3900
Set: phy[2].reg[0] = 3900
Set: phy[3].reg[0] = 3900
Set: phy[4].reg[0] = 3100
Set: phy[1].reg[0] = 3100
Set: phy[2].reg[0] = 3100
Set: phy[3].reg[0] = 3100
superdmz:Can't get WAN gateway
iptables -t nat -D PREROUTING -j port_forward 1>/dev/null 2>&1
iptables -t nat -F port_forward  1>/dev/null 2>&1; iptables -t nat -X port_forward  1>/dev/null 2>&1
iptables -t nat -D PREROUTING -j DMZ 1>/dev/null 2>&1
iptables -t nat -F DMZ 1>/dev/null 2>&1; iptables -t nat -X DMZ  1>/dev/null 2>&1
iptables -t nat -N port_forward 1>/dev/null 2>&1; iptables -t nat -I PREROUTING 1 -j port_forward 1>/dev/null 2>&1
iptables -t nat -N DMZ 1>/dev/null 2>&1; iptables -t nat -I PREROUTING 2 -j DMZ 1>/dev/null 2>&1
ntp.sh
greenap.sh init
ddns.sh
kill -9 `cat /var/run/wscd.pid.ra0`
cat: can't open '/var/run/wscd.pid.ra0': No such file or directory
kill: you need to specify whom to kill
iwpriv ra0 set WscConfMode=0 1>/dev/null 2>&1
route delete 239.255.255.250 1>/dev/null 2>&1
killall -q klogd
killall -q syslogd
syslogd -C8 1>/dev/null 2>&1
klogd 1>/dev/null 2>&1
killall -q zebra
killall -q ripd
/bin/qos_run
echo 0 > /proc/sys/net/ipv6/conf/all/forwarding
webs: Listening for HTTP requests at address 10.10.10.254
ll -9 `cat /var/run/wscd.pid.ra0`
 '/var/run/wscd.pid.ra0': No such file or directory
kicat: can't open '/var/run/wscd.pid.ra0': No such file or directory
/bin/sh: ll: not found
~ # cat: can't open '/var/run/wscd.pid.ra0': No such file or directory
> kill: you need to specify whom to kill
> iwpriv ra0 set Wsckill -9 `cat /var/run/wscd.pid.ra0`
> cat: can't open '/var/run/wscd.pid.ra0': No such file or directory
/bin/sh: cat:: not found
~ # kill: you need to specify whom to kill
/bin/sh: kill:: not found
~ # iwpriv ra0 set Wsckill -9 `cat /var/run/wscd.pid.ra0`
/var/run/wscd.pid.ra0': No cat: can't open '/var/run/wscd.pid.ra0': No such file or directory
such file or directory
kill: you need to sp~ # cat: can't open '/var/run/wscd.pid.ra0': No such file or directory
> kill: you need to specify whom to kill
> iwpriv ra0 set Wsckill -9 `cat /var/run/wscd.pid.ra0`
> cat: can't open '/var/run/wscd.pid.ra0': No such file or directory
/bin/sh: cat:: not found
~ # kill: you need to specify whom to kill
/bin/sh: kill:: not found
~ # iwpriv ra0 set Wsckill -9 `cat /var/run/wscd.pid.ra0`
't open '/var/run/wscd.picat: can't open '/var/run/wscd.pid.ra0': No such file or directory
d.ra0': No such file or directory
kill: ~ # cat: can't open '/var/run/wscd.pid.ra0': No such file or directory
> kill: you need to specify whom to kill
> iwpriv ra0 set Wsc

Menu comes up to select language and location, then reboot with the following output.

> ioctl: Unknown error 515
internet.sh
Password for 'admin' changed
eth2.1: dev_set_promiscuity(master, 1)
br0: port 2(eth2.1) entering disabled state
device eth2.1 left promiscuous mode
br0: port 2(eth2.1) entering disabled state
rmmod: 8021q: No such file or directory
insmod: 8021q.ko: module not found
eth2.2: Setting MAC address to  e4 71 85 00 d0 d3.
br0: port 1(ra0) entering disabled state

##### disable 1st wireless interface #####
RX DESC a08bd000  size = 2048
<-- RTMPAllocTxRxRingMemory, Status=0
Key1Str is Invalid key length(10) or Type(1)
Key2Str is Invalid key length(0) or Type(0)
Key3Str is Invalid key length(0) or Type(0)
Key4Str is Invalid key length(0) or Type(0)
1. Phy Mode = 9
2. Phy Mode = 9
3. Phy Mode = 9
MCS Set = ff ff 00 00 01
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
udhcpc: bind: No such device
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
Main bssid = e4:71:85:00:d0:d0
<==== rt28xx_init, Status=0
0x1300 = 00064380
br0: port 1(ra0) entering learning state
br0: port 1(ra0) entering disabled state
device ra0 left promiscuous mode
br0: port 1(ra0) entering disabled state
WAN Port MAC should be:
E4:71:85:0:D0:D3
ifconfig Says:
eth2.2    Link encap:Ethernet  HWaddr E4:71:85:00:D0:D3  
          inet6 addr: fe80::e671:85ff:fe00:d0d3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:418 (418.0 B)

Running configVIF (Just incase):
rmmod: 8021q: No such file or directory
insmod: 8021q.ko: module not found
eth2.2: Setting MAC address to  e4 71 85 00 d0 d3.
##### config Ralink ESW vlan partition (WLLLL) #####
switch reg write offset=14, value=405555
switch reg write offset=50, value=2001
switch reg write offset=98, value=7f3f
switch reg write offset=e4, value=3f
switch reg write offset=40, value=1002
switch reg write offset=44, value=1001
switch reg write offset=48, value=1001
switch reg write offset=70, value=ffff417e
done.
rmmod: 8021q: No such file or directory
insmod: 8021q.ko: module not found
eth2.2: Setting MAC address to  e4 71 85 00 d0 d3.
device ra0 entered promiscuous mode
udhcpc (v1.12.1) started
upnpd[1554]: Shutting down on signal 15...

Jan  1 00:06:25 upnpd[1554]: Shutting down on signal 15...

upnpd[1554]: DeleteAllPortMappings: UpnpNotifyExt(deviceHandle,uuid:75802409-bccb-40e7-8e6c-fa095ecce13e,urn:upnp-org:serviceId:WANIPConn1,propSet)
  PortMappingNumberOfEntries: 0
Jan  1 00:06:25 upnpd[1554]: DeleteAllPortMappings: UpnpNotifyExt(deviceHandle,uuid:75802409-bccb-40e7-8e6c-fa095ecce13e,urn:upnp-org:serviceId:WANIPConn1,propSet)
  PortMappingNumberOfEntries: 0
br0: port 2(eth2.1) entering learning state
br0: port 1(ra0) entering learning state
ifconfig: ioctl 0x8914 failed: Cannot assign requested address
ifconfig: ioctl 0x8914 failed: Cannot assign requested address
br0: topology change detected, propagating
br0: port 2(eth2.1) entering forwarding state
br0: topology change detected, propagating
br0: port 1(ra0) entering forwarding state
killall: udhcpd: no process killed
Set: phy[4].reg[0] = 3900
Set: phy[1].reg[0] = 3900
Set: phy[2].reg[0] = 3900
Set: phy[3].reg[0] = 3900
Set: phy[4].reg[0] = 3100
Set: phy[1].reg[0] = 3100
Set: phy[2].reg[0] = 3100
Set: phy[3].reg[0] = 3100
ifconfig: ioctl 0x8913 failed: No such device
rm: cannot remove '/etc/radvd.conf': No such file or directory
libupnp: using UDP SSDP_PORT = 1900
upnpd[3267]: UPnP SDK Successfully Initialized.
Jan  1 00:06:30 upnpd[3267]: UPnP SDK Successfully Initialized.
upnpd[3267]: Succesfully set the Web Server Root Directory.
Jan  1 00:06:30 upnpd[3267]: Succesfully set the Web Server Root Directory.
upnpd[3267]: IGD root device successfully registered.
Jan  1 00:06:30 upnpd[3267]: IGD root device successfully registered.
killall: monitor: no process killed
ioctl: Unknown error 515
killall rt2860apd 1>/dev/null 2>&1
iptables -F -t filter 1>/dev/null 2>&1
iptables -D FORWARD -j macipport_filter 1>/dev/null 2>&1
iptables -F macipport_filter 1>/dev/null 2>&1
iptables -D FORWARD -j web_filter  1>/dev/null 2>&1
iptables -F web_filter  1>/dev/null 2>&1
iptables -D FORWARD -j malicious_filter 1>/dev/null 2>&1
iptables -F malicious_filter  1>/dev/null 2>&1
iptables -D INPUT -j malicious_input_filter 1>/dev/null 2>&1
iptables -F malicious_input_filter  1>/dev/null 2>&1
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -t filter -N web_filter 1>/dev/null 2>&1
iptables -t filter -N macipport_filter 1>/dev/null 2>&1
iptables -t filter -N malicious_filter 1>/dev/null 2>&1
iptables -t filter -N synflood_filter 1>/dev/null 2>&1
iptables -t filter -N malicious_input_filter 1>/dev/null 2>&1
iptables -t filter -N synflood_input_filter 1>/dev/null 2>&1
iptables -t filter -A FORWARD -j web_filter 1>/dev/null 2>&1
iptables -t filter -A FORWARD -j macipport_filter 1>/dev/null 2>&1
iptables -t filter -A FORWARD -j malicious_filter 1>/dev/null 2>&1
iptables -t filter -A malicious_filter -p tcp --syn -j synflood_filter 1>/dev/null 2>&1
iptables -t filter -A INPUT -j malicious_input_filter 1>/dev/null 2>&1
iptables -t filter -A malicious_input_filter -p tcp --syn -j synflood_input_filter 1>/dev/null 2>&1
iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu 1>/dev/null 2>&1
iptables -A malicious_input_filter -i eth2.2 -p tcp --dport 80 -j DROP
/bin/super_dmz -f
upnpd[3267]: Advertisements Sent.  Listening for requests ... 
Jan  1 00:06:32 upnpd[3267]: Advertisements Sent.  Listening for requests ... 
killall: udhcpd: no process killed
Set: phy[4].reg[0] = 3900
Set: phy[1].reg[0] = 3900
Set: phy[2].reg[0] = 3900
Set: phy[3].reg[0] = 3900
Set: phy[4].reg[0] = 3100
Set: phy[1].reg[0] = 3100
Set: phy[2].reg[0] = 3100
Set: phy[3].reg[0] = 3100
superdmz:Can't get WAN gateway
iptables -t nat -D PREROUTING -j port_forward 1>/dev/null 2>&1
iptables -t nat -F port_forward  1>/dev/null 2>&1; iptables -t nat -X port_forward  1>/dev/null 2>&1
iptables -t nat -D PREROUTING -j DMZ 1>/dev/null 2>&1
iptables -t nat -F DMZ 1>/dev/null 2>&1; iptables -t nat -X DMZ  1>/dev/null 2>&1
iptables -t nat -N port_forward 1>/dev/null 2>&1; iptables -t nat -I PREROUTING 1 -j port_forward 1>/dev/null 2>&1
iptables -t nat -N DMZ 1>/dev/null 2>&1; iptables -t nat -I PREROUTING 2 -j DMZ 1>/dev/null 2>&1
ntp.sh
greenap.sh init
ddns.sh
kill -9 `cat /var/run/wscd.pid.ra0`
cat: can't open '/var/run/wscd.pid.ra0': No such file or directory
kill: you need to specify whom to kill
iwpriv ra0 set WscConfMode=0 1>/dev/null 2>&1
route delete 239.255.255.250 1>/dev/null 2>&1
killall -q klogd
killall -q syslogd
syslogd -C8 1>/dev/null 2>&1
klogd 1>/dev/null 2>&1
killall -q zebra
killall -q ripd
/bin/qos_run
echo 0 > /proc/sys/net/ipv6/conf/all/forwarding
webs: Listening for HTTP requests at address 10.10.10.254

Running wizard and selecting network as range extender.

mode: 11b/g
ioctl: Unknown error 515
internet.sh
Password for 'admin' changed
eth2.1: dev_set_promiscuity(master, 1)
br0: port 2(eth2.1) entering disabled state
device eth2.1 left promiscuous mode
br0: port 2(eth2.1) entering disabled state
rmmod: 8021q: No such file or directory
insmod: 8021q.ko: module not found
eth2.2: Setting MAC address to  e4 71 85 00 d0 d3.
br0: port 1(ra0) entering disabled state

##### disable 1st wireless interface #####
RX DESC a2861000  size = 2048
<-- RTMPAllocTxRxRingMemory, Status=0
Key1Str is Invalid key length(10) or Type(1)
Key2Str is Invalid key length(0) or Type(0)
Key3Str is Invalid key length(0) or Type(0)
Key4Str is Invalid key length(0) or Type(0)
2a:55:44:e4:05:1a:cb:eb:01:93:83:88:b2:c3:4f:8f:
50:b2:65:62:c1:a3:cb:f9:52:8e:b0:b1:79:c9:b6:97:

1. Phy Mode = 9
2. Phy Mode = 9
3. Phy Mode = 9
MCS Set = ff ff 00 00 01
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
udhcpc: bind: No such device
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
Main bssid = e4:71:85:00:d0:d0
<==== rt28xx_init, Status=0
0x1300 = 00064380
br0: port 1(ra0) entering learning state
br0: port 1(ra0) entering disabled state
device ra0 left promiscuous mode
br0: port 1(ra0) entering disabled state
WAN Port MAC should be:
E4:71:85:0:D0:D3
ifconfig Says:
eth2.2    Link encap:Ethernet  HWaddr E4:71:85:00:D0:D3  
          inet6 addr: fe80::e671:85ff:fe00:d0d3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:418 (418.0 B)

Running configVIF (Just incase):
rmmod: 8021q: No such file or directory
insmod: 8021q.ko: module not found
eth2.2: Setting MAC address to  e4 71 85 00 d0 d3.
##### config Ralink ESW vlan partition (WLLLL) #####
switch reg write offset=14, value=405555
switch reg write offset=50, value=2001
switch reg write offset=98, value=7f3f
switch reg write offset=e4, value=3f
switch reg write offset=40, value=1002
switch reg write offset=44, value=1001
switch reg write offset=48, value=1001
switch reg write offset=70, value=ffff417e
done.
rmmod: 8021q: No such file or directory
insmod: 8021q.ko: module not found
eth2.2: Setting MAC address to  e4 71 85 00 d0 d3.
device ra0 entered promiscuous mode
udhcpc (v1.12.1) started
upnpd[3267]: Shutting down on signal 15...

Jan  1 00:08:50 upnpd[3267]: Shutting down on signal 15...

upnpd[3267]: DeleteAllPortMappings: UpnpNotifyExt(deviceHandle,uuid:75802409-bccb-40e7-8e6c-fa095ecce13e,urn:upnp-org:serviceId:WANIPConn1,propSet)
  PortMappingNumberOfEntries: 0
Jan  1 00:08:50 upnpd[3267]: DeleteAllPortMappings: UpnpNotifyExt(deviceHandle,uuid:75802409-bccb-40e7-8e6c-fa095ecce13e,urn:upnp-org:serviceId:WANIPConn1,propSet)
  PortMappingNumberOfEntries: 0
br0: port 2(eth2.1) entering learning state
br0: port 1(ra0) entering learning state
ifconfig: ioctl 0x8914 failed: Cannot assign requested address
ifconfig: ioctl 0x8914 failed: Cannot assign requested address
br0: topology change detected, propagating
br0: port 2(eth2.1) entering forwarding state
br0: topology change detected, propagating
br0: port 1(ra0) entering forwarding state
killall: udhcpd: no process killed
Set: phy[4].reg[0] = 3900
Set: phy[1].reg[0] = 3900
Set: phy[2].reg[0] = 3900
Set: phy[3].reg[0] = 3900
Set: phy[4].reg[0] = 3100
Set: phy[1].reg[0] = 3100
Set: phy[2].reg[0] = 3100
Set: phy[3].reg[0] = 3100
ifconfig: ioctl 0x8913 failed: No such device
rm: cannot remove '/etc/radvd.conf': No such file or directory
libupnp: using UDP SSDP_PORT = 1900
upnpd[1056]: UPnP SDK Successfully Initialized.
Jan  1 00:08:55 upnpd[1056]: UPnP SDK Successfully Initialized.
upnpd[1056]: Succesfully set the Web Server Root Directory.
Jan  1 00:08:55 upnpd[1056]: Succesfully set the Web Server Root Directory.
upnpd[1056]: IGD root device successfully registered.
Jan  1 00:08:55 upnpd[1056]: IGD root device successfully registered.
killall: monitor: no process killed
ioctl: Unknown error 515
killall rt2860apd 1>/dev/null 2>&1
iptables -F -t filter 1>/dev/null 2>&1
iptables -D FORWARD -j macipport_filter 1>/dev/null 2>&1
iptables -F macipport_filter 1>/dev/null 2>&1
iptables -D FORWARD -j web_filter  1>/dev/null 2>&1
iptables -F web_filter  1>/dev/null 2>&1
iptables -D FORWARD -j malicious_filter 1>/dev/null 2>&1
iptables -F malicious_filter  1>/dev/null 2>&1
iptables -D INPUT -j malicious_input_filter 1>/dev/null 2>&1
iptables -F malicious_input_filter  1>/dev/null 2>&1
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -t filter -N web_filter 1>/dev/null 2>&1
iptables -t filter -N macipport_filter 1>/dev/null 2>&1
iptables -t filter -N malicious_filter 1>/dev/null 2>&1
iptables -t filter -N synflood_filter 1>/dev/null 2>&1
iptables -t filter -N malicious_input_filter 1>/dev/null 2>&1
iptables -t filter -N synflood_input_filter 1>/dev/null 2>&1
iptables -t filter -A FORWARD -j web_filter 1>/dev/null 2>&1
iptables -t filter -A FORWARD -j macipport_filter 1>/dev/null 2>&1
iptables -t filter -A FORWARD -j malicious_filter 1>/dev/null 2>&1
iptables -t filter -A malicious_filter -p tcp --syn -j synflood_filter 1>/dev/null 2>&1
iptables -t filter -A INPUT -j malicious_input_filter 1>/dev/null 2>&1
iptables -t filter -A malicious_input_filter -p tcp --syn -j synflood_input_filter 1>/dev/null 2>&1
iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu 1>/dev/null 2>&1
iptables -A malicious_input_filter -i eth2.2 -p tcp --dport 80 -j DROP
/bin/super_dmz -f
upnpd[1056]: Advertisements Sent.  Listening for requests ... 
Jan  1 00:08:57 upnpd[1056]: Advertisements Sent.  Listening for requests ... 
killall: udhcpd: no process killed
Set: phy[4].reg[0] = 3900
Set: phy[1].reg[0] = 3900
Set: phy[2].reg[0] = 3900
Set: phy[3].reg[0] = 3900
Set: phy[4].reg[0] = 3100
Set: phy[1].reg[0] = 3100
Set: phy[2].reg[0] = 3100
Set: phy[3].reg[0] = 3100
superdmz:Can't get WAN gateway
iptables -t nat -D PREROUTING -j port_forward 1>/dev/null 2>&1
iptables -t nat -F port_forward  1>/dev/null 2>&1; iptables -t nat -X port_forward  1>/dev/null 2>&1
iptables -t nat -D PREROUTING -j DMZ 1>/dev/null 2>&1
iptables -t nat -F DMZ 1>/dev/null 2>&1; iptables -t nat -X DMZ  1>/dev/null 2>&1
iptables -t nat -N port_forward 1>/dev/null 2>&1; iptables -t nat -I PREROUTING 1 -j port_forward 1>/dev/null 2>&1
iptables -t nat -N DMZ 1>/dev/null 2>&1; iptables -t nat -I PREROUTING 2 -j DMZ 1>/dev/null 2>&1
ntp.sh
greenap.sh init
ddns.sh
kill -9 `cat /var/run/wscd.pid.ra0`
cat: can't open '/var/run/wscd.pid.ra0': No such file or directory
kill: you need to specify whom to kill
iwpriv ra0 set WscConfMode=0 1>/dev/null 2>&1
route delete 239.255.255.250 1>/dev/null 2>&1
killall -q klogd
killall -q syslogd
syslogd -C8 1>/dev/null 2>&1
klogd 1>/dev/null 2>&1
killall -q zebra
killall -q ripd
/bin/qos_run
echo 0 > /proc/sys/net/ipv6/conf/all/forwarding
webs: Listening for HTTP requests at address 10.10.10.254
killall: monitor: no process killed
ifconfig: ioctl 0x8914 failed: Cannot assign requested address
Password for 'admin' changed
eth2.1: dev_set_promiscuity(master, 1)
br0: port 2(eth2.1) entering disabled state
device eth2.1 left promiscuous mode
br0: port 2(eth2.1) entering disabled state
rmmod: 8021q: No such file or directory
insmod: 8021q.ko: module not found
eth2.2: Setting MAC address to  e4 71 85 00 d0 d3.
br0: port 1(ra0) entering disabled state

##### disable 1st wireless interface #####
RX DESC a06d1000  size = 2048
<-- RTMPAllocTxRxRingMemory, Status=0
Key2Str is Invalid key length(0) or Type(0)
Key3Str is Invalid key length(0) or Type(0)
Key4Str is Invalid key length(0) or Type(0)
cd:35:7e:2e:9f:19:c5:a1:0f:9e:4a:a6:ae:f7:2e:cc:
14:c3:f2:d6:6e:b6:18:f3:b0:35:25:07:5a:e6:b9:6f:

1. Phy Mode = 9
2. Phy Mode = 9
3. Phy Mode = 9
MCS Set = ff ff 00 00 01
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
udhcpc: bind: No such device
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
Main bssid = e4:71:85:00:d0:d0
<==== rt28xx_init, Status=0
0x1300 = 00064380
br0: port 1(ra0) entering learning state
br0: port 1(ra0) entering disabled state
device ra0 left promiscuous mode
br0: port 1(ra0) entering disabled state
##### restore Ralink ESW to dump switch #####
switch reg write offset=14, value=5555
switch reg write offset=40, value=1001
switch reg write offset=44, value=1001
switch reg write offset=48, value=1001
switch reg write offset=4c, value=1
switch reg write offset=50, value=2001
switch reg write offset=70, value=ffffffff
switch reg write offset=98, value=7f7f
switch reg write offset=e4, value=7f
done.
device ra0 entered promiscuous mode
device apcli0 entered promiscuous mode
upnpd[1056]: Shutting down on signal 15...

upnpd[1056]: DeleteAllPortMappings: UpnpNotifyExt(deviceHandle,uuid:75802409-bccb-40e7-8e6c-fa095ecce13e,urn:upnp-org:serviceId:WANIPConn1,propSet)
  PortMappingNumberOfEntries: 0
br0: port 3(apcli0) entering learning state
br0: port 2(eth2) entering learning state
br0: port 1(ra0) entering learning state
ifconfig: ioctl 0x8914 failed: Cannot assign requested address
ifconfig: ioctl 0x8914 failed: Cannot assign requested address
ifconfig: ioctl 0x8913 failed: No such device
rm: cannot remove '/etc/radvd.conf': No such file or directory
killall: udhcpd: no process killed
udhcpc (v1.12.1) started
br0: topology change detected, propagating
br0: port 3(apcli0) entering forwarding state
br0: topology change detected, propagating
br0: port 2(eth2) entering forwarding state
br0: topology change detected, propagating
br0: port 1(ra0) entering forwarding state
Sending select for 192.168.5.103...
Lease of 192.168.5.103 obtained, lease time 86400
deleting routers
route: ioctl 0x890c failed: No such process
adding dns 192.168.1.1
adding dns 8.8.8.8
adding dns 8.8.4.4

Old IP = <
New IP = <no_ip>
Difference=110
Old Gateway = <
Gateway=192.168.5.1
iptables -F -t filter 1>/dev/null 2>&1
iptables -D FORWARD -j macipport_filter 1>/dev/null 2>&1
iptables -F macipport_filter 1>/dev/null 2>&1
iptables -D FORWARD -j web_filter  1>/dev/null 2>&1
iptables -F web_filter  1>/dev/null 2>&1
iptables -D FORWARD -j malicious_filter 1>/dev/null 2>&1
iptables -F malicious_filter  1>/dev/null 2>&1
iptables -D INPUT -j malicious_input_filter 1>/dev/null 2>&1
iptables -F malicious_input_filter  1>/dev/null 2>&1
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -t filter -N web_filter 1>/dev/null 2>&1
iptables -t filter -N macipport_filter 1>/dev/null 2>&1
iptables -t filter -N malicious_filter 1>/dev/null 2>&1
iptables -t filter -N synflood_filter 1>/dev/null 2>&1
iptables -t filter -N malicious_input_filter 1>/dev/null 2>&1
iptables -t filter -N synflood_input_filter 1>/dev/null 2>&1
iptables -t filter -A FORWARD -j web_filter 1>/dev/null 2>&1
igmpproxy, Version 0.1 beta2, Build 121011 
Copyright 2005 by Johnny Egeland <johnny@rlo.org>
Distributed under the GNU GENERAL PUBLIC LICENSE, Version 2 - check GPL.txt

Warn: Warning, No upstream interface assigned.
0x1011009c: 0x0008a301
0x1011009c: 0x0008a301
iptables -t filter -A FORWARD -j macipport_filter 1>/dev/null 2>&1
iptables -t filter -A FORWARD -j malicious_filter 1>/dev/null 2>&1
iptables -t filter -A malicious_filter -p tcp --syn -j synflood_filter 1>/dev/null 2>&1
iptables -t filter -A INPUT -j malicious_input_filter 1>/dev/null 2>&1
iptables -t filter -A malicious_input_filter -p tcp --syn -j synflood_input_filter 1>/dev/null 2>&1
iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu 1>/dev/null 2>&1
/bin/super_dmz -f
0x1011009c: 0x0008a301
0x10110014: 0x00005555
0x10110014: 0x00005555
0x10110014: 0x00805555
iptables -t nat -D PREROUTING -j port_forward 1>/dev/null 2>&1
iptables -t nat -F port_forward  1>/dev/null 2>&1; iptables -t nat -X port_forward  1>/dev/null 2>&1
iptables -t nat -D PREROUTING -j DMZ 1>/dev/null 2>&1
iptables -t nat -F DMZ 1>/dev/null 2>&1; iptables -t nat -X DMZ  1>/dev/null 2>&1
iptables -t nat -N port_forward 1>/dev/null 2>&1; iptables -t nat -I PREROUTING 1 -j port_forward 1>/dev/null 2>&1
iptables -t nat -N DMZ 1>/dev/null 2>&1; iptables -t nat -I PREROUTING 2 -j DMZ 1>/dev/null 2>&1
killall -q ripd
/sbin/config-igmpproxy.sh
igmpproxy, Version 0.1 beta2, Build 121011 
Copyright 2005 by Johnny Egeland <johnny@rlo.org>
Distributed under the GNU GENERAL PUBLIC LICENSE, Version 2 - check GPL.txt

Warn: Warning, No upstream interface assigned.
0x1011009c: 0x0008a301
0x1011009c: 0x0008a301
0x1011009c: 0x0008a301
0x10110014: 0x00005555
0x10110014: 0x00005555
0x10110014: 0x00805555
/bin/qos_run
echo 0 > /proc/sys/net/ipv6/conf/all/forwarding
Set: phy[1].reg[0] = 3900
Set: phy[2].reg[0] = 3900
Set: phy[1].reg[0] = 3100
Set: phy[2].reg[0] = 3100
killall: monitor: no process killed
getIfIp: ioctl SIOCGIFADDR error for br0