kuroの覚え書き

96の個人的覚え書き

LaFonera+の起動シークエンス


  1. Warning: IP address 192.168.1.1 in use

Ethernet eth0: MAC address 00:18:84:xx:xx:xx
IP: 192.168.1.1/255.255.255.0, Gateway: 0.0.0.0
Default server: 192.168.1.254

RedBoot(tm) bootstrap and debug environment [ROMRAM]
OpenWrt certified release, version 1.1 - built 22:32:28, May 7 2007

Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.

Board: FON 2201
RAM: 0x80000000-0x81000000, [0x80040290-0x80fe1000] available
FLASH: 0xa8000000 - 0xa87f0000, 128 blocks of 0x00010000 bytes each.
== Executing boot script in 2.000 seconds - enter ^C to abort
RedBoot> fis load -b 0x80100000 loader
RedBoot> go 0x80100000
Failsafe loader v0.2

Looking for board config data... found at offset 0xa87f0000
Reset button GPIO: 6
Reading flash from 0xa8040000 to 0xa825c4e9... done.
Verifying CRC... OK - 0x7fd5bb48
Uncompressing Linux... Ok, booting the kernel.
[sighandler]: No more events to be processed, quitting.
[cleanup]: Waiting for children.
[cleanup]: All children terminated.
Unlocking rootfs ...
Could not open mtd device: rootfs
switching to jffs2
init started: BusyBox v1.4.1 (2007-09-26 18:40:28 CEST) multi-call binary

Please press Enter to activate this console. : ifconfig: SIOCSIFADDR: No such device

ifconfig
SIOCSIFADDR: No such device

: udhcpc (v1.4.1) started

route
fscanf

: Sending discover...

: Sending discover...
~
~

route
fscanf

: Sending discover...

: Sending discover...

: Sending discover...
~
~

/bin/uci
/etc/config/fon: 41: get_serial: not found

: Sending discover...

: Sending discover...
~
~

killall
watch_chilli: no process killed
ERROR
chillispot is not running

: Sending discover...

: Sending discover...
~
~
: Received SIGTERM

: Entering released state

httpd
bind: Address already in use

: runlevel -> 1

: enqueued

killall
watch_chilli: no process killed
ERROR
chillispot is not running

: fonsmcd successfully started

: 36524 00355.657 320830.0 72.6 251906287424324.3 47607.4 0

: 25 22 * * * /bin/thinclient cron

: 58 18 * * * ntpclient -s -h ntp.obspm.fr

ずっと観察しているとこんな感じ。

iptablesの設定は以下のような感じ。さてこれをどう料理するべきか・・・・


root@OpenWrt:/# iptables --list
Chain INPUT (policy DROP)
target prot opt source destination
DROP tcp -- anywhere anywhere tcp dpt:80
INPUT_CFG all -- anywhere anywhere
NET_ACCESS all -- anywhere anywhere
DROP all -- anywhere anywhere state INVALID
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
DROP tcp -- anywhere anywhere tcp option=!2 flags:SYN/SYN
input_rule all -- anywhere anywhere
input_wan all -- anywhere anywhere
LAN_ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere
ACCEPT gre -- anywhere anywhere
REJECT tcp -- anywhere anywhere reject-with tcp-reset
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable

Chain FORWARD (policy DROP)
target prot opt source destination
DROP all -- anywhere anywhere state INVALID
TCPMSS tcp -- anywhere anywhere tcp flags:SYN,RST/SYN TCPMSS clamp to PMTU
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
forwarding_rule all -- anywhere anywhere
forwarding_wan all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere

Chain OUTPUT (policy DROP)
target prot opt source destination
DROP all -- anywhere anywhere state INVALID
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
output_rule all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
REJECT tcp -- anywhere anywhere reject-with tcp-reset
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable

Chain INPUT_CFG (3 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere

Chain LAN_ACCEPT (1 references)
target prot opt source destination
RETURN all -- anywhere anywhere
ACCEPT all -- anywhere anywhere

Chain NET_ACCESS (3 references)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:3990
ACCEPT udp -- anywhere anywhere udp dpt:53
ACCEPT tcp -- anywhere anywhere tcp dpt:53
WAN_HOOK all -- anywhere anywhere
DROP all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
DROP all -- anywhere anywhere

Chain WAN_HOOK (1 references)
target prot opt source destination
DROP all -- anywhere 192.168.1.0/24

Chain forwarding_rule (1 references)
target prot opt source destination
INPUT_CFG all -- anywhere anywhere
INPUT_CFG all -- anywhere anywhere
NET_ACCESS all -- anywhere anywhere
NET_ACCESS all -- anywhere anywhere

Chain forwarding_wan (1 references)
target prot opt source destination

Chain input_rule (1 references)
target prot opt source destination

Chain input_wan (1 references)
target prot opt source destination

Chain output_rule (1 references)
target prot opt source destination