Difference between revisions of "My ReseauCitoyen"
Jump to navigation
Jump to search
m |
m (Reverted edits by Etegohy (Talk) to last revision by PhilippeTeuwen) |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Intro== |
==Intro== |
||
− | Today (2008-02-26) a new node is born. |
+ | Today (2008-02-26) a new node of [[ReseauCitoyen]] is born. |
<br>David prepared the Bombofon51 and Ivan came to deploy the material. |
<br>David prepared the Bombofon51 and Ivan came to deploy the material. |
||
<br> |
<br> |
||
+ | |||
+ | * [http://www.flickr.com/photos/doegox/479103783/sizes/l/in/set-72157601104942512/ Panoramic view from the node] |
||
+ | |||
==Technical facts== |
==Technical facts== |
||
+ | ===iwconfig ath0=== |
||
<pre> |
<pre> |
||
− | # iwconfig ath0 |
||
ath0 IEEE 802.11b ESSID:"bombolong" Nickname:"" |
ath0 IEEE 802.11b ESSID:"bombolong" Nickname:"" |
||
Mode:Ad-Hoc Frequency:2.412 GHz Cell: CA:FE:CA:FE:CA:FE |
Mode:Ad-Hoc Frequency:2.412 GHz Cell: CA:FE:CA:FE:CA:FE |
||
Line 16: | Line 19: | ||
Tx excessive retries:0 Invalid misc:0 Missed beacon:0 |
Tx excessive retries:0 Invalid misc:0 Missed beacon:0 |
||
</pre> |
</pre> |
||
+ | ===ifconfig ath0=== |
||
− | |||
<pre> |
<pre> |
||
− | # ifconfig ath0 |
||
ath0 Link encap:Ethernet HWaddr 06:18:84:16:E2:75 |
ath0 Link encap:Ethernet HWaddr 06:18:84:16:E2:75 |
||
inet addr:10.93.1.45 Bcast:10.93.1.255 Mask:255.255.255.0 |
inet addr:10.93.1.45 Bcast:10.93.1.255 Mask:255.255.255.0 |
||
Line 27: | Line 29: | ||
RX bytes:2400212 (2.2 MiB) TX bytes:58725662 (56.0 MiB) |
RX bytes:2400212 (2.2 MiB) TX bytes:58725662 (56.0 MiB) |
||
</pre> |
</pre> |
||
+ | ===route -n=== |
||
− | |||
<pre> |
<pre> |
||
− | # route -n |
||
Kernel IP routing table |
Kernel IP routing table |
||
Destination Gateway Genmask Flags Metric Ref Use Iface |
Destination Gateway Genmask Flags Metric Ref Use Iface |
||
Line 73: | Line 74: | ||
</pre> |
</pre> |
||
− | <pre> |
||
− | # uname -a |
||
− | Linux philT 2.6.21.5 #2 Sun Sep 30 20:16:16 CEST 2007 mips unknown |
||
− | </pre> |
||
+ | ===wlanconfig ath0 list sta=== |
||
<pre> |
<pre> |
||
− | # wlanconfig ath0 list sta |
||
ADDR AID CHAN RATE RSSI DBM IDLE TXSEQ TXFRAG RXSEQ RXFRAG CAPS ACAPS ERP STATE MODE |
ADDR AID CHAN RATE RSSI DBM IDLE TXSEQ TXFRAG RXSEQ RXFRAG CAPS ACAPS ERP STATE MODE |
||
06:18:84:16:e2:75 0 1 11M 11 -84 0 621 15 2020 0 I 0 1 Normal |
06:18:84:16:e2:75 0 1 11M 11 -84 0 621 15 2020 0 I 0 1 Normal |
||
Line 114: | Line 111: | ||
00:0c:f1:57:c1:ac 0 1 11M 4 -91 270 0 1 0 0 0 1 Normal |
00:0c:f1:57:c1:ac 0 1 11M 4 -91 270 0 1 0 0 0 1 Normal |
||
</pre> |
</pre> |
||
+ | ===wlanconfig ath0 list scan=== |
||
<pre> |
<pre> |
||
− | # wlanconfig ath0 list scan |
||
SSID BSSID CHAN RATE S:N INT CAPS |
SSID BSSID CHAN RATE S:N INT CAPS |
||
hazamban 00:12:bf:13:98:ad 1 54M 19:0 100 EPSs WPA |
hazamban 00:12:bf:13:98:ad 1 54M 19:0 100 EPSs WPA |
||
Line 143: | Line 140: | ||
WiFi_50 00:1a:2a:e4:ec:50 2 54M 10:0 100 EPSB |
WiFi_50 00:1a:2a:e4:ec:50 2 54M 10:0 100 EPSB |
||
</pre> |
</pre> |
||
+ | ===netstat -ltun=== |
||
+ | <pre> |
||
+ | tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN |
||
+ | tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN |
||
+ | tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN |
||
+ | udp 0 0 0.0.0.0:32768 0.0.0.0:* |
||
+ | udp 0 0 0.0.0.0:53 0.0.0.0:* |
||
+ | udp 0 0 0.0.0.0:698 0.0.0.0:* |
||
+ | udp 0 0 0.0.0.0:67 0.0.0.0:* |
||
+ | </pre> |
||
+ | ===ps=== |
||
+ | <pre> |
||
+ | PID Uid VmSize Stat Command |
||
+ | 1 root 396 S init |
||
+ | 2 root SWN [ksoftirqd/0] |
||
+ | 3 root SW< [events/0] |
||
+ | 4 root SW< [khelper] |
||
+ | 5 root SW< [kthread] |
||
+ | 17 root SW< [kblockd/0] |
||
+ | 28 root SW [pdflush] |
||
+ | 29 root SW [pdflush] |
||
+ | 30 root SW< [kswapd0] |
||
+ | 31 root SW< [aio/0] |
||
+ | 41 root SW [mtdblockd] |
||
+ | 174 root SWN [jffs2_gcd_mtd3] |
||
+ | 188 root 404 S logger -s -p 6 -t |
||
+ | 190 root 244 S init |
||
+ | 197 root 340 S syslogd -C16 |
||
+ | 200 root 288 S klogd |
||
+ | 208 root 268 S /sbin/hotplug2 --override --persistent --max-children 1 --no-coldplug |
||
+ | 490 root 324 S crond -c /etc/crontabs |
||
+ | 492 root 328 S /usr/sbin/dropbear -p 22 |
||
+ | 500 root 316 S httpd -p 80 -h /www -r OpenWrt |
||
+ | 502 root 668 S olsrd -nofork |
||
+ | 522 nobody 388 S /usr/sbin/dnsmasq --dhcp-range=lan,192.168.0.100,192.168.0.250,255.255.255.0,12h |
||
+ | </pre> |
||
+ | ===iptables -L -n -v=== |
||
+ | <pre> |
||
+ | Chain INPUT (policy DROP 0 packets, 0 bytes) |
||
+ | pkts bytes target prot opt in out source destination |
||
+ | 0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 state INVALID |
||
+ | 26209 1162K ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED |
||
+ | 0 0 DROP tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp option=!2 flags:0x02/0x02 |
||
+ | 16415 1602K input_rule all -- * * 0.0.0.0/0 0.0.0.0/0 |
||
+ | 16415 1602K LAN_ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 |
||
+ | 0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 |
||
+ | 0 0 ACCEPT 47 -- * * 0.0.0.0/0 0.0.0.0/0 |
||
+ | 0 0 REJECT tcp -- * * 0.0.0.0/0 0.0.0.0/0 reject-with tcp-reset |
||
+ | 0 0 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable |
||
+ | |||
+ | Chain FORWARD (policy DROP 0 packets, 0 bytes) |
||
+ | pkts bytes target prot opt in out source destination |
||
+ | 0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 state INVALID |
||
+ | 0 0 TCPMSS tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp flags:0x06/0x02 TCPMSS clamp to PMTU |
||
+ | 0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED |
||
+ | 0 0 forwarding_rule all -- * * 0.0.0.0/0 0.0.0.0/0 |
||
+ | 0 0 ACCEPT all -- eth0 eth0 0.0.0.0/0 0.0.0.0/0 |
||
+ | |||
+ | Chain OUTPUT (policy DROP 0 packets, 0 bytes) |
||
+ | pkts bytes target prot opt in out source destination |
||
+ | 0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 state INVALID |
||
+ | 41043 58M ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED |
||
+ | 10828 658K output_rule all -- * * 0.0.0.0/0 0.0.0.0/0 |
||
+ | 10828 658K ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 |
||
+ | 0 0 REJECT tcp -- * * 0.0.0.0/0 0.0.0.0/0 reject-with tcp-reset |
||
+ | 0 0 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable |
||
+ | |||
+ | Chain LAN_ACCEPT (1 references) |
||
+ | pkts bytes target prot opt in out source destination |
||
+ | 16415 1602K ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 |
||
+ | |||
+ | Chain forwarding_rule (1 references) |
||
+ | pkts bytes target prot opt in out source destination |
||
+ | |||
+ | Chain forwarding_wan (0 references) |
||
+ | pkts bytes target prot opt in out source destination |
||
+ | |||
+ | Chain input_rule (1 references) |
||
+ | pkts bytes target prot opt in out source destination |
||
+ | |||
+ | Chain input_wan (0 references) |
||
+ | pkts bytes target prot opt in out source destination |
||
+ | |||
+ | Chain output_rule (1 references) |
||
+ | pkts bytes target prot opt in out source destination |
||
+ | </pre> |
||
+ | ===iptables -t nat -L -n -v=== |
||
+ | <pre> |
||
+ | Chain PREROUTING (policy ACCEPT 1162 packets, 64898 bytes) |
||
+ | pkts bytes target prot opt in out source destination |
||
+ | 16 960 NEW tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW |
||
+ | 1161 64842 prerouting_rule all -- * * 0.0.0.0/0 0.0.0.0/0 |
||
+ | |||
+ | Chain POSTROUTING (policy ACCEPT 7 packets, 1589 bytes) |
||
+ | pkts bytes target prot opt in out source destination |
||
+ | 6 560 postrouting_rule all -- * * 0.0.0.0/0 0.0.0.0/0 |
||
+ | |||
+ | Chain OUTPUT (policy ACCEPT 7 packets, 1589 bytes) |
||
+ | pkts bytes target prot opt in out source destination |
||
+ | |||
+ | Chain NEW (1 references) |
||
+ | pkts bytes target prot opt in out source destination |
||
+ | 16 960 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0 limit: avg 50/sec burst 100 |
||
+ | 0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 |
||
+ | |||
+ | Chain postrouting_rule (1 references) |
||
+ | pkts bytes target prot opt in out source destination |
||
+ | |||
+ | Chain prerouting_rule (1 references) |
||
+ | pkts bytes target prot opt in out source destination |
||
+ | |||
+ | Chain prerouting_wan (0 references) |
||
+ | pkts bytes target prot opt in out source destination |
||
+ | </pre> |
||
+ | ===dmesg=== |
||
+ | <pre> |
||
+ | Linux version 2.6.21.5 (nbd@ds10) (gcc version 4.1.2) #2 Sun Sep 30 20:16:16 CEST 2007 |
||
+ | CPU revision is: 00019064 |
||
+ | Determined physical RAM map: |
||
+ | memory: 01000000 @ 00000000 (usable) |
||
+ | Initrd not found or empty - disabling initrd |
||
+ | On node 0 totalpages: 4096 |
||
+ | DMA zone: 32 pages used for memmap |
||
+ | DMA zone: 0 pages reserved |
||
+ | DMA zone: 4064 pages, LIFO batch:0 |
||
+ | Normal zone: 0 pages used for memmap |
||
+ | Built 1 zonelists. Total pages: 4064 |
||
+ | Kernel command line: console=ttyS0,9600 rootfstype=squashfs,jffs2 init=/etc/preinit |
||
+ | Primary instruction cache 16kB, physically tagged, 4-way, linesize 16 bytes. |
||
+ | Primary data cache 16kB, 4-way, linesize 16 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). |
||
+ | PID hash table entries: 64 (order: 6, 256 bytes) |
||
+ | Using 92.000 MHz high precision timer. |
||
+ | Dentry cache hash table entries: 2048 (order: 1, 8192 bytes) |
||
+ | Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) |
||
+ | Memory: 13504k/16384k available (1955k kernel code, 2880k reserved, 292k data, 116k init, 0k highmem) |
||
+ | Calibrating delay loop... 183.50 BogoMIPS (lpj=917504) |
||
+ | Mount-cache hash table entries: 512 |
||
+ | NET: Registered protocol family 16 |
||
+ | Radio config found at offset 0xf8(0x1f8) |
||
+ | Time: MIPS clocksource has been installed. |
||
+ | NET: Registered protocol family 2 |
||
+ | IP route cache hash table entries: 1024 (order: 0, 4096 bytes) |
||
+ | TCP established hash table entries: 512 (order: 0, 4096 bytes) |
||
+ | TCP bind hash table entries: 512 (order: -1, 2048 bytes) |
||
+ | TCP: Hash tables configured (established 512 bind 512) |
||
+ | TCP reno registered |
||
+ | squashfs: version 3.0 (2006/03/15) Phillip Lougher |
||
+ | Registering mini_fo version $Id$ |
||
+ | JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc. |
||
+ | io scheduler noop registered |
||
+ | io scheduler deadline registered (default) |
||
+ | Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports, IRQ sharing disabled |
||
+ | serial8250: ttyS0 at MMIO 0xb1100003 (irq = 37) is a 16550A |
||
+ | eth0: Dropping NETIF_F_SG since no checksum feature. |
||
+ | eth0: Atheros AR231x: 00:18:84:16:e2:74, irq 4 |
||
+ | cmdlinepart partition parsing not available |
||
+ | Searching for RedBoot partition table in spiflash at offset 0x7d0000 |
||
+ | Searching for RedBoot partition table in spiflash at offset 0x7e0000 |
||
+ | 5 RedBoot partitions found on MTD device spiflash |
||
+ | Creating 5 MTD partitions on "spiflash": |
||
+ | 0x00000000-0x00030000 : "RedBoot" |
||
+ | 0x00030000-0x000f0000 : "vmlinux.bin.l7" |
||
+ | 0x000f0000-0x007e0000 : "rootfs" |
||
+ | 0x001f0000-0x007e0000 : "rootfs_data" |
||
+ | 0x007e0000-0x007ef000 : "FIS directory" |
||
+ | 0x007ef000-0x007f0000 : "RedBoot config" |
||
+ | nf_conntrack version 0.5.0 (128 buckets, 1024 max) |
||
+ | ip_tables: (C) 2000-2006 Netfilter Core Team |
||
+ | TCP vegas registered |
||
+ | NET: Registered protocol family 1 |
||
+ | NET: Registered protocol family 17 |
||
+ | 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com> |
||
+ | All bugs added by David S. Miller <davem@redhat.com> |
||
+ | VFS: Mounted root (squashfs filesystem) readonly. |
||
+ | Freeing unused kernel memory: 116k freed |
||
+ | eth0: Configuring MAC for full duplex |
||
+ | Warning: unable to open an initial console. |
||
+ | Algorithmics/MIPS FPU Emulator v1.5 |
||
+ | mini_fo: using base directory: / |
||
+ | mini_fo: using storage directory: /jffs |
||
+ | PPP generic driver version 2.4.2 |
||
+ | tun: Universal TUN/TAP device driver, 1.6 |
||
+ | tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> |
||
+ | wlan: 0.8.4.2 (svn r2568) |
||
+ | ath_hal: module license 'Proprietary' taints kernel. |
||
+ | ath_hal: 0.9.30.13 (AR5212, AR5312, RF2316, TX_DESC_SWAP) |
||
+ | ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (svn r2568) |
||
+ | ath_rate_minstrel: look around rate set to 10% |
||
+ | ath_rate_minstrel: EWMA rolloff level set to 75% |
||
+ | ath_rate_minstrel: max segment size in the mrr set to 6000 us |
||
+ | wlan: mac acl policy registered |
||
+ | ath_ahb: 0.9.4.5 (svn r2568) |
||
+ | ath_pci: switching rfkill capability off |
||
+ | ath_pci: switching per-packet transmit power control off |
||
+ | wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps |
||
+ | wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps |
||
+ | wifi0: H/W encryption support: WEP AES AES_CCM TKIP |
||
+ | wifi0: mac 11.0 phy 4.8 radio 7.0 |
||
+ | wifi0: Use hw queue 1 for WME_AC_BE traffic |
||
+ | wifi0: Use hw queue 0 for WME_AC_BK traffic |
||
+ | wifi0: Use hw queue 2 for WME_AC_VI traffic |
||
+ | wifi0: Use hw queue 3 for WME_AC_VO traffic |
||
+ | wifi0: Use hw queue 8 for CAB traffic |
||
+ | wifi0: Use hw queue 9 for beacons |
||
+ | wifi0: Atheros 2315 WiSoC: mem=0xb0000000, irq=3 |
||
+ | </pre> |
||
+ | ==Configuration== |
||
+ | ===dropbear public key authentication=== |
||
+ | cf http://wiki.openwrt.org/DropbearPublicKeyAuthenticationHowto |
||
+ | |||
+ | # on my machine: |
||
+ | ssh-copy-id myopenwrt |
||
+ | |||
+ | # on the OpenWRT: |
||
+ | mv .ssh/authorized_keys /etc/dropbear/ |
||
+ | ===My laptop=== |
||
+ | apt-get install olsrd olsrd-plugins |
||
+ | Get [http://www.reseaucitoyen.be/wiki/index.php/Olsrd.conf olsrd.conf] and add 127.0.0.1 to the list of networks for the http plugin: |
||
+ | PlParam "Net" "127.0.0.1 255.255.255.255" |
||
+ | |||
+ | olsrd -f /etc/olsrd/olsrd.conf |
||
+ | Status is visible on http://127.0.0.1:8080/ |
Latest revision as of 21:32, 24 November 2010
Intro
Today (2008-02-26) a new node of ReseauCitoyen is born.
David prepared the Bombofon51 and Ivan came to deploy the material.
Technical facts
iwconfig ath0
ath0 IEEE 802.11b ESSID:"bombolong" Nickname:"" Mode:Ad-Hoc Frequency:2.412 GHz Cell: CA:FE:CA:FE:CA:FE Bit Rate:0 kb/s Tx-Power=16 dBm Sensitivity=1/1 Retry:off RTS thr:off Fragment thr:off Encryption key:off Power Management:off Link Quality=15/70 Signal level=-75 dBm Noise level=-90 dBm Rx invalid nwid:12988 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0
ifconfig ath0
ath0 Link encap:Ethernet HWaddr 06:18:84:16:E2:75 inet addr:10.93.1.45 Bcast:10.93.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:31571 errors:0 dropped:0 overruns:0 frame:0 TX packets:49307 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2400212 (2.2 MiB) TX bytes:58725662 (56.0 MiB)
route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.93.1.82 10.93.1.35 255.255.255.255 UGH 8 0 0 ath0 10.93.2.65 10.93.1.35 255.255.255.255 UGH 6 0 0 ath0 10.93.2.70 10.93.1.35 255.255.255.255 UGH 6 0 0 ath0 10.93.1.67 10.93.1.35 255.255.255.255 UGH 2 0 0 ath0 10.93.2.81 10.93.1.35 255.255.255.255 UGH 8 0 0 ath0 10.93.0.65 10.93.1.35 255.255.255.255 UGH 7 0 0 ath0 10.93.1.73 10.93.1.35 255.255.255.255 UGH 6 0 0 ath0 10.93.2.82 10.93.1.35 255.255.255.255 UGH 9 0 0 ath0 10.93.0.66 10.93.1.35 255.255.255.255 UGH 8 0 0 ath0 10.93.1.75 10.93.1.35 255.255.255.255 UGH 3 0 0 ath0 10.93.1.79 10.93.1.35 255.255.255.255 UGH 5 0 0 ath0 10.93.0.97 10.93.1.35 255.255.255.255 UGH 6 0 0 ath0 10.93.0.98 10.93.1.35 255.255.255.255 UGH 7 0 0 ath0 10.93.0.100 10.93.1.35 255.255.255.255 UGH 6 0 0 ath0 10.93.1.19 10.93.1.35 255.255.255.255 UGH 4 0 0 ath0 10.93.1.22 10.93.1.35 255.255.255.255 UGH 6 0 0 ath0 10.93.1.23 10.93.1.35 255.255.255.255 UGH 5 0 0 ath0 10.93.1.20 10.93.1.35 255.255.255.255 UGH 3 0 0 ath0 10.93.1.21 10.93.1.35 255.255.255.255 UGH 3 0 0 ath0 10.93.2.2 10.93.1.35 255.255.255.255 UGH 6 0 0 ath0 10.93.1.24 10.93.1.35 255.255.255.255 UGH 2 0 0 ath0 10.93.1.25 10.93.1.35 255.255.255.255 UGH 3 0 0 ath0 10.93.1.28 10.93.1.35 255.255.255.255 UGH 3 0 0 ath0 10.93.1.2 10.93.1.35 255.255.255.255 UGH 6 0 0 ath0 10.93.1.3 10.93.1.35 255.255.255.255 UGH 8 0 0 ath0 10.93.1.1 10.93.1.35 255.255.255.255 UGH 5 0 0 ath0 10.93.1.10 10.93.1.35 255.255.255.255 UGH 6 0 0 ath0 10.93.1.11 10.93.1.35 255.255.255.255 UGH 7 0 0 ath0 10.93.1.35 0.0.0.0 255.255.255.255 UH 1 0 0 ath0 10.93.1.34 10.93.1.35 255.255.255.255 UGH 2 0 0 ath0 10.93.0.34 10.93.1.35 255.255.255.255 UGH 8 0 0 ath0 10.93.2.50 10.93.1.35 255.255.255.255 UGH 4 0 0 ath0 10.93.0.33 10.93.1.35 255.255.255.255 UGH 6 0 0 ath0 10.93.2.49 10.93.1.35 255.255.255.255 UGH 5 0 0 ath0 10.93.0.129 10.93.1.35 255.255.255.255 UGH 3 0 0 ath0 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 10.93.1.0 0.0.0.0 255.255.255.0 U 0 0 0 ath0 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 0.0.0.0 10.93.1.35 0.0.0.0 UG 3 0 0 ath0
wlanconfig ath0 list sta
ADDR AID CHAN RATE RSSI DBM IDLE TXSEQ TXFRAG RXSEQ RXFRAG CAPS ACAPS ERP STATE MODE 06:18:84:16:e2:75 0 1 11M 11 -84 0 621 15 2020 0 I 0 1 Normal 00:16:b6:40:f3:c4 0 1 11M 3 -92 0 0 0 1266 0 I 0 1 Normal 00:11:5c:81:e0:14 0 1 11M 11 -84 0 0 0 2018 0 0 1 Normal 06:0b:6b:09:e1:2f 0 1 53M 1 -94 0 1 3 3070 0 IS 0 1 Normal WME 00:11:f5:ca:48:0e 0 1 11M 1 -94 0 0 0 3088 0 0 1 Normal 00:14:7f:1d:fa:79 0 1 11M 13 -82 0 0 0 209 0 0 1 Normal 00:18:de:24:a0:d7 0 1 11M 6 -89 45 52 11 0 0 0 1 Normal 00:11:5c:81:e0:10 0 1 11M 11 -84 0 0 0 2019 0 0 1 Normal 00:13:02:dc:e5:97 0 1 11M 2 -93 45 142 5 0 0 0 1 Normal 00:11:5c:81:e0:11 0 1 11M 12 -83 0 0 0 1695 0 0 1 Normal 00:12:bf:13:98:ad 0 1 11M 18 -77 0 0 0 2127 0 0 1 Normal 00:19:7e:37:9b:b4 0 1 11M 8 -87 45 16 5 0 0 0 1 Normal 00:1a:2a:a4:aa:00 0 1 11M 3 -92 0 0 0 2040 0 0 1 Normal 00:18:84:24:ef:ad 0 1 11M 23 -72 0 0 0 2804 0 0 1 Normal 00:1e:4c:6b:72:52 0 1 11M 5 -90 60 5 15 1345 0 0 1 Normal 00:19:7e:62:46:0b 0 1 11M 14 -81 45 19 13 0 0 0 1 Normal 00:06:f4:0c:d7:2d 0 1 11M 6 -89 0 0 8 981 0 0 1 Normal 00:0d:0b:77:ce:e9 0 1 6M 30 -65 0 2553 3 257 0 IS 0 1 Normal WME 00:14:7f:1d:13:07 0 1 11M 1 -94 0 0 0 2786 0 0 1 Normal 00:14:a5:27:b4:0f 0 1 11M 6 -89 30 3 7 0 0 0 1 Normal 00:16:e3:ac:00:c3 0 1 11M 1 -94 15 0 7 737 0 0 1 Normal 00:0e:35:0c:ee:2d 0 1 11M 5 -90 165 0 12 0 0 0 1 Normal 00:1b:77:2f:e9:b4 0 1 11M 3 -92 180 1 5 0 0 0 1 Normal 00:13:02:8a:4d:72 0 1 11M 4 -91 165 0 4 0 0 0 1 Normal 00:90:4b:9d:ec:49 0 1 11M 2 -93 225 0 1 0 0 0 1 Normal 00:40:f4:e4:6c:ba 0 1 11M 2 -93 45 0 2 576 0 0 1 Normal 00:1a:73:6f:c0:7b 0 1 11M 13 -82 60 0 6 0 0 0 1 Normal 00:15:00:24:b2:37 0 1 11M 29 -66 0 0 4 18 0 0 1 Normal 00:13:ce:1a:eb:90 0 1 11M 34 -61 45 0 3 0 0 0 1 Normal 00:13:02:12:43:d0 0 1 11M 0 -95 285 0 1 0 0 0 1 Normal 00:0e:35:83:2f:18 0 1 11M 8 -87 285 0 2 0 0 0 1 Normal 00:0c:f1:57:c1:ac 0 1 11M 4 -91 270 0 1 0 0 0 1 Normal
wlanconfig ath0 list scan
SSID BSSID CHAN RATE S:N INT CAPS hazamban 00:12:bf:13:98:ad 1 54M 19:0 100 EPSs WPA SpeedTouch7... 00:14:7f:1d:fa:79 1 54M 12:0 100 EPs WME bombolong 06:0b:6b:09:e1:2f 1 11M -1:0 100 IS WME 0... 00:11:5c:81:e0:11 1 54M 8:0 100 EPSs WPA WifiGuest 00:11:5c:81:e0:14 1 54M 8:0 100 ESs 0... 00:11:5c:81:e0:10 1 54M 8:0 100 EPSs RSN WME WiFi_00 00:1a:2a:a4:aa:00 1 54M 3:0 100 ESBs bombolong ca:fe:ca:fe:ca:fe 1 11M 4:0 100 I roma 00:11:95:96:c2:ca 6 54M 17:0 200 EPSs Razenbull 00:1a:2a:a3:0a:6e 6 54M 17:0 100 EPSs 0x5a6fe96f6... 00:1d:19:04:4b:af 6 54M -1:0 100 EPSB linksys_SES... 00:18:39:32:79:00 6 54M 2:0 100 Es VWnet 00:18:39:8c:8f:48 6 54M 50:0 100 EPs Aberg Mathilda 00:12:bf:0d:eb:a5 6 54M 16:0 100 EPSs Default 00:15:e9:03:89:88 6 54M 5:0 100 EPSs WPA SpeedTouch5... 00:90:d0:de:f9:a2 6 54M 7:0 100 EPs WME Johann 00:14:7f:8c:12:e7 11 54M 16:0 100 EPs WME elias 00:0c:f6:2d:76:a8 11 54M 9:0 100 EPs Angel 00:18:4d:14:4e:ec 11 54M 11:0 100 EPSs WPA CCM 00:14:6c:4c:5d:5c 11 54M 3:0 100 EPSs WPA WME ATH AMG.GATE.N 00:1c:df:04:22:10 11 54M 7:0 100 EPSs WPA WME ATH FON_AP 00:18:84:24:ef:ad 2 54M 33:0 100 ESs WME ATH itthon 00:18:84:24:ef:ae 2 11M 33:0 100 EPSs WPA WME ATH FON_AP 00:18:84:17:78:a1 2 54M 11:0 100 ESs WME ATH WiFi_50 00:1a:2a:e4:ec:50 2 54M 10:0 100 EPSB
netstat -ltun
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN udp 0 0 0.0.0.0:32768 0.0.0.0:* udp 0 0 0.0.0.0:53 0.0.0.0:* udp 0 0 0.0.0.0:698 0.0.0.0:* udp 0 0 0.0.0.0:67 0.0.0.0:*
ps
PID Uid VmSize Stat Command 1 root 396 S init 2 root SWN [ksoftirqd/0] 3 root SW< [events/0] 4 root SW< [khelper] 5 root SW< [kthread] 17 root SW< [kblockd/0] 28 root SW [pdflush] 29 root SW [pdflush] 30 root SW< [kswapd0] 31 root SW< [aio/0] 41 root SW [mtdblockd] 174 root SWN [jffs2_gcd_mtd3] 188 root 404 S logger -s -p 6 -t 190 root 244 S init 197 root 340 S syslogd -C16 200 root 288 S klogd 208 root 268 S /sbin/hotplug2 --override --persistent --max-children 1 --no-coldplug 490 root 324 S crond -c /etc/crontabs 492 root 328 S /usr/sbin/dropbear -p 22 500 root 316 S httpd -p 80 -h /www -r OpenWrt 502 root 668 S olsrd -nofork 522 nobody 388 S /usr/sbin/dnsmasq --dhcp-range=lan,192.168.0.100,192.168.0.250,255.255.255.0,12h
iptables -L -n -v
Chain INPUT (policy DROP 0 packets, 0 bytes) pkts bytes target prot opt in out source destination 0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 state INVALID 26209 1162K ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED 0 0 DROP tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp option=!2 flags:0x02/0x02 16415 1602K input_rule all -- * * 0.0.0.0/0 0.0.0.0/0 16415 1602K LAN_ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 0 0 ACCEPT 47 -- * * 0.0.0.0/0 0.0.0.0/0 0 0 REJECT tcp -- * * 0.0.0.0/0 0.0.0.0/0 reject-with tcp-reset 0 0 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable Chain FORWARD (policy DROP 0 packets, 0 bytes) pkts bytes target prot opt in out source destination 0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 state INVALID 0 0 TCPMSS tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp flags:0x06/0x02 TCPMSS clamp to PMTU 0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED 0 0 forwarding_rule all -- * * 0.0.0.0/0 0.0.0.0/0 0 0 ACCEPT all -- eth0 eth0 0.0.0.0/0 0.0.0.0/0 Chain OUTPUT (policy DROP 0 packets, 0 bytes) pkts bytes target prot opt in out source destination 0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 state INVALID 41043 58M ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED 10828 658K output_rule all -- * * 0.0.0.0/0 0.0.0.0/0 10828 658K ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 0 0 REJECT tcp -- * * 0.0.0.0/0 0.0.0.0/0 reject-with tcp-reset 0 0 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable Chain LAN_ACCEPT (1 references) pkts bytes target prot opt in out source destination 16415 1602K ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 Chain forwarding_rule (1 references) pkts bytes target prot opt in out source destination Chain forwarding_wan (0 references) pkts bytes target prot opt in out source destination Chain input_rule (1 references) pkts bytes target prot opt in out source destination Chain input_wan (0 references) pkts bytes target prot opt in out source destination Chain output_rule (1 references) pkts bytes target prot opt in out source destination
iptables -t nat -L -n -v
Chain PREROUTING (policy ACCEPT 1162 packets, 64898 bytes) pkts bytes target prot opt in out source destination 16 960 NEW tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW 1161 64842 prerouting_rule all -- * * 0.0.0.0/0 0.0.0.0/0 Chain POSTROUTING (policy ACCEPT 7 packets, 1589 bytes) pkts bytes target prot opt in out source destination 6 560 postrouting_rule all -- * * 0.0.0.0/0 0.0.0.0/0 Chain OUTPUT (policy ACCEPT 7 packets, 1589 bytes) pkts bytes target prot opt in out source destination Chain NEW (1 references) pkts bytes target prot opt in out source destination 16 960 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0 limit: avg 50/sec burst 100 0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 Chain postrouting_rule (1 references) pkts bytes target prot opt in out source destination Chain prerouting_rule (1 references) pkts bytes target prot opt in out source destination Chain prerouting_wan (0 references) pkts bytes target prot opt in out source destination
dmesg
Linux version 2.6.21.5 (nbd@ds10) (gcc version 4.1.2) #2 Sun Sep 30 20:16:16 CEST 2007 CPU revision is: 00019064 Determined physical RAM map: memory: 01000000 @ 00000000 (usable) Initrd not found or empty - disabling initrd On node 0 totalpages: 4096 DMA zone: 32 pages used for memmap DMA zone: 0 pages reserved DMA zone: 4064 pages, LIFO batch:0 Normal zone: 0 pages used for memmap Built 1 zonelists. Total pages: 4064 Kernel command line: console=ttyS0,9600 rootfstype=squashfs,jffs2 init=/etc/preinit Primary instruction cache 16kB, physically tagged, 4-way, linesize 16 bytes. Primary data cache 16kB, 4-way, linesize 16 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). PID hash table entries: 64 (order: 6, 256 bytes) Using 92.000 MHz high precision timer. Dentry cache hash table entries: 2048 (order: 1, 8192 bytes) Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) Memory: 13504k/16384k available (1955k kernel code, 2880k reserved, 292k data, 116k init, 0k highmem) Calibrating delay loop... 183.50 BogoMIPS (lpj=917504) Mount-cache hash table entries: 512 NET: Registered protocol family 16 Radio config found at offset 0xf8(0x1f8) Time: MIPS clocksource has been installed. NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 512 (order: 0, 4096 bytes) TCP bind hash table entries: 512 (order: -1, 2048 bytes) TCP: Hash tables configured (established 512 bind 512) TCP reno registered squashfs: version 3.0 (2006/03/15) Phillip Lougher Registering mini_fo version $Id$ JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc. io scheduler noop registered io scheduler deadline registered (default) Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports, IRQ sharing disabled serial8250: ttyS0 at MMIO 0xb1100003 (irq = 37) is a 16550A eth0: Dropping NETIF_F_SG since no checksum feature. eth0: Atheros AR231x: 00:18:84:16:e2:74, irq 4 cmdlinepart partition parsing not available Searching for RedBoot partition table in spiflash at offset 0x7d0000 Searching for RedBoot partition table in spiflash at offset 0x7e0000 5 RedBoot partitions found on MTD device spiflash Creating 5 MTD partitions on "spiflash": 0x00000000-0x00030000 : "RedBoot" 0x00030000-0x000f0000 : "vmlinux.bin.l7" 0x000f0000-0x007e0000 : "rootfs" 0x001f0000-0x007e0000 : "rootfs_data" 0x007e0000-0x007ef000 : "FIS directory" 0x007ef000-0x007f0000 : "RedBoot config" nf_conntrack version 0.5.0 (128 buckets, 1024 max) ip_tables: (C) 2000-2006 Netfilter Core Team TCP vegas registered NET: Registered protocol family 1 NET: Registered protocol family 17 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com> All bugs added by David S. Miller <davem@redhat.com> VFS: Mounted root (squashfs filesystem) readonly. Freeing unused kernel memory: 116k freed eth0: Configuring MAC for full duplex Warning: unable to open an initial console. Algorithmics/MIPS FPU Emulator v1.5 mini_fo: using base directory: / mini_fo: using storage directory: /jffs PPP generic driver version 2.4.2 tun: Universal TUN/TAP device driver, 1.6 tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> wlan: 0.8.4.2 (svn r2568) ath_hal: module license 'Proprietary' taints kernel. ath_hal: 0.9.30.13 (AR5212, AR5312, RF2316, TX_DESC_SWAP) ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (svn r2568) ath_rate_minstrel: look around rate set to 10% ath_rate_minstrel: EWMA rolloff level set to 75% ath_rate_minstrel: max segment size in the mrr set to 6000 us wlan: mac acl policy registered ath_ahb: 0.9.4.5 (svn r2568) ath_pci: switching rfkill capability off ath_pci: switching per-packet transmit power control off wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps wifi0: H/W encryption support: WEP AES AES_CCM TKIP wifi0: mac 11.0 phy 4.8 radio 7.0 wifi0: Use hw queue 1 for WME_AC_BE traffic wifi0: Use hw queue 0 for WME_AC_BK traffic wifi0: Use hw queue 2 for WME_AC_VI traffic wifi0: Use hw queue 3 for WME_AC_VO traffic wifi0: Use hw queue 8 for CAB traffic wifi0: Use hw queue 9 for beacons wifi0: Atheros 2315 WiSoC: mem=0xb0000000, irq=3
Configuration
dropbear public key authentication
cf http://wiki.openwrt.org/DropbearPublicKeyAuthenticationHowto
# on my machine: ssh-copy-id myopenwrt
# on the OpenWRT: mv .ssh/authorized_keys /etc/dropbear/
My laptop
apt-get install olsrd olsrd-plugins
Get olsrd.conf and add 127.0.0.1 to the list of networks for the http plugin:
PlParam "Net" "127.0.0.1 255.255.255.255"
olsrd -f /etc/olsrd/olsrd.conf
Status is visible on http://127.0.0.1:8080/