読者です 読者をやめる 読者になる 読者になる

La Foneraのスペック

ログインして調べた結果です.
とりあえずは出力のコピペ.

uname -a

Linux OpenWrt 2.4.32 #9 jue nov 23 12:11:45 UTC 2006 mips unknown

cpuinfo

root@OpenWrt:~# cat /proc/cpuinfo
system type : Atheros AR531X_COBRA
processor : 0
cpu model : MIPS 4KEc V6.4
BogoMIPS : 183.50
wait instruction : yes
microsecond timers : yes
tlb_entries : 16
extra interrupt vector : yes
hardware watchpoint : no
VCED exceptions : not available
VCEI exceptions : not available

meminfo

root@OpenWrt:~# cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 14598144 11517952 3080192 0 1216512 4022272
Swap: 0 0 0
MemTotal: 14256 kB
MemFree: 3008 kB
MemShared: 0 kB
Buffers: 1188 kB
Cached: 3928 kB
SwapCached: 0 kB
Active: 3340 kB
Inactive: 1804 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 14256 kB
LowFree: 3008 kB
SwapTotal: 0 kB
SwapFree: 0 kB

df

root@OpenWrt:~# df -h
Filesystem Size Used Available Use% Mounted on
none 7.0M 16.0k 6.9M 0% /tmp
/dev/mtdblock/2 5.4M 328.0k 5.1M 6% /jffs
/ 1.5M 1.5M 0 100% /

ifconfig

root@OpenWrt:~# ifconfig
ath1 Link encap:Ethernet HWaddr 00:18:84:XX:XX:XX
inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:2290 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

eth0 Link encap:Ethernet HWaddr 00:18:84:XX:XX:XX
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:3136 errors:0 dropped:0 overruns:0 frame:0
TX packets:4189 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:377968 (369.1 KiB) TX bytes:1738060 (1.6 MiB)
Interrupt:4 Base address:0x1000

eth0:1 Link encap:Ethernet HWaddr 00:18:84:XX:XX:XX
inet addr:169.254.255.1 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
Interrupt:4 Base address:0x1000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wifi0 Link encap:Ethernet HWaddr 00:18:84:YY:YY:YY
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:85437 errors:0 dropped:0 overruns:0 frame:9350
TX packets:3647 errors:321 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:199
RX bytes:8466404 (8.0 MiB) TX bytes:519530 (507.3 KiB)
Interrupt:3 Memory:b0000000-b00ffffc

eth0, eth0:1, ath1 は同じMACアドレス.

iptables

root@OpenWrt:~# iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:22
ACCEPT tcp -- anywhere anywhere tcp dpt:22
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
ACCEPT all -- 169.254.0.0/16 anywhere
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
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 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 169.254.0.0/16

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 input_rule (1 references)
target prot opt source destination

Chain output_rule (1 references)
target prot opt source destination

NATやIPマスカレード系のエントリが多い?
ちなみにINPUTのaccept dport22 は先ほど追加したエントリ.
2個あるのは俺のミス?