Permalink
Find file
12975f1 Jul 16, 2017
9583 lines (7551 sloc) 417 KB
=== ruckus ===
# DHCP auf 35 sekunden stellen (timeout)
# android: 2 DNS-server per DHCP liefern
# minimal BSS rate hochsetzen (fuer besseres roaming)
# management frames TX-rate hochsetzen.
# ruckus script ksp
# force dhcp option82
# 802.11k
# 802.11r
# 802.11w
# fragen: echtes cli auf AP?
# serielle konsole -> angeblich kein linux (war openBSD)
# playstore: ruckus -> swipe-tool
# twilio SMS server
# ruckus, realms: aussprache
# radius vs. tacacs?
# 8 SSID verbrauchen 1/3tel der Kapazitaet?
# 5ghz dynam.bandwith allocation
# LWAPP - Lightweight Access Point Protocol https://en.wikipedia.org/wiki/Lightweight_Access_Point_Protocol
# === TODO wichtig ===
# reparierer braunsroda
# einladung bday
# sven/frenze
# neuer mietplan!
# giancarlo: vereinbarung abholen
# mail: ina_lorenz
# schoeneck kontrolle
# termin battlemesh weimar? vor summary und nach 1. mai
# wlan-karte einbauen
# OLSR2-test
# rechnung giancarlo: einsatz netzausfall
# ute: navi-update
# anke: router-config
# bladerunner!
# buero: Nachtstromzaehler
# router abholen ewerk
# strom: mika: steckdose: rechts blau, mitte gruen/gelb, links braun
# schalter: braun schaltet, rest gebrueckt
# https://eewiki.net/display/linuxonarm/PandaBoard#PandaBoard-Ubuntu16.04LTS
# ejbw: richtfunk bestellen + halterung?
# { echo 'login admin fm1204'; sleep 1; echo 'port list iiii'; sleep 1; echo 'quit'; } | nc -w2 10.10.8.44 1234
# sven: viking
# ejbw: reithaus: verschiedene SSID
# update: marinabh: missing bridge
# braunsroda: 5mhz+no_ap
# rest + kk-meldung -> netkom
# bc-miner
# medion: 2018mai17 - uptime: 39519h seit 12.nov.2012
# Netgear DM200 vectoring - openwrt
# source/staging_dir/host/bin/unsquashfs4 -ll source/bin/targets/ar71xx/generic/lede-ar71xx-generic-root.squashfs
# MQmaker: CONFIG_PACKAGE_kmod-ata-core=y
root@EG-superbuffi76:~ :) _watch roaming debug
May 04 15:37:11 ' [up 92573s 93421568 bytes free] TERM:xterm -ash [daemon.debug] watch_roaming() loop: 1 ap-dev: wlan0-1 mac: 58:48:22:40:ba:ed signal: -82
May 04 15:37:11 ' [up 92573s 93425664 bytes free] TERM:xterm -ash [daemon.debug] watch_roaming() ip: 100.66.3.212
May 04 15:37:11 ' [up 92574s 93487104 bytes free] TERM:xterm -ash [daemon.debug] watch_roaming() loop: 1 ap-dev: wlan0-1 mac: 00:1e:65:94:22:52 signal: -56
May 04 15:37:11 ' [up 92574s 93421568 bytes free] TERM:xterm -ash [daemon.debug] watch_roaming() ip: 100.67.217.186
root@EG-superbuffi76:~ :)
#
#
#
#
#
root@EG-superbuffi76:~ :) arping -I br-mastergate 100.67.193.186
ARPING to 100.67.193.186 from 100.64.0.1 via br-mastergate
Unicast reply from 100.67.193.186 [00:1e:65:94:22:52] 361.556ms
Unicast reply from 100.67.193.186 [00:1e:65:94:22:52] 8.886ms
Unicast reply from 100.67.193.186 [00:1e:65:94:22:52] 4.034ms
^CSent 3 probe(s) (1 broadcast(s))
Received 3 reply (0 request(s), 0 broadcast(s))
#
root@EG-superbuffi76:~ :) _watch roaming debug
May 04 15:38:23 ' [up 92646s 91799552 bytes free] TERM:xterm -ash [daemon.debug] watch_roaming() loop: 1 ap-dev: wlan0-1 mac: 58:48:22:40:ba:ed signal: -82
May 04 15:38:24 ' [up 92646s 91799552 bytes free] TERM:xterm -ash [daemon.debug] watch_roaming() ip: 100.66.3.212
May 04 15:38:24 ' [up 92646s 91766784 bytes free] TERM:xterm -ash [daemon.debug] watch_roaming() loop: 1 ap-dev: wlan0-1 mac: 00:1e:65:94:22:52 signal: -48
May 04 15:38:24 ' [up 92646s 91799552 bytes free] TERM:xterm -ash [daemon.info] watch_roaming() ip 100.67.193.186 (of 100.67.193.186) not added yet - changed IP? -
root@EG-superbuffi76:~ :)
# wartungsnummer luense?
# heute:
========
### schoeneck + apphalle: vpn-mail - info@hoffmann-hotel-consult.de
# muttertag hochladen!
# http://kinox.to/Stream/Die_Baumhauskoenige.html
# http://kinox.to/Stream/Das_Dekameron.html
# http://kinox.to/Stream/Der_Bunker-1.html
# http://kinox.to/Stream/The_Lego_Movie.htm# http://kinox.to/Stream/The_Lego_Movie.html
# http://kinox.to/Stream/Pirates_of_the_Caribbean_Salazars_Rache.html
# http://kinox.to/Stream/Odd_Thomas-1.html
# http://kinox.to/Stream/Romper_Stomper-1.html
# http://kinox.to/Stream/Robinson_Crusoe-2.html
# http://kinox.to/Stream/Red_Sniper-Die_Todesschuetzin.html
# http://kinox.to/Stream/Roehrls_Katze.html
# http://kinox.to/Stream/The_LEGO_Batman_Movie.html
# http://kinox.to/Stream/Robbi_Tobbi_und_das_Fliewatueuet-1.html
# http://kinox.to/Stream/Sahara-2.html
# http://kinox.to/Stream/John_Wick_Kapitel_2.html
# http://kinox.to/Stream/Reality-1.html
# http://kinox.to/Stream/Die_Schluempfe-Das_verlorenen_Dorf.html
# http://kinox.to/Stream/LEGO_NEXO_Knights.html
# 222: dhcp-prob telefon -> export DHCP_OK=true + do not invoke any arping-actions
# email: clustermensch an bernhard
# ausrechnen: hotel/banse
# check apply_profile: default_encryption_type - really double entry?
# rechnung: susa
# antwort: berlinle
# fritzbamag: kiste5287
# ticket sbahn hannover suchen!
# bgp!
# ordner auf sylvias rechner
# danny: iphone-prob: https://gist.github.com/Aaahh/1e354ee60dbe40f64efe7e4f98f720d4
# 3 x telefonnummer luense / wartungsnummer
# check medion: mail_kaputt/
# monit: rehungen testnachricht/auto (mail+sms)
# monit: automail leonardo/giancarlo mit PoE-Hinweis
# cpe510:
# ist: bin/targets/ar71xx/generic/lede-ar71xx-generic-cpe210-220-510-520-squashfs-sysupgrade.bin:
# soll: bin/targets/ar71xx/generic/lede-ar71xx-generic-cpe510-520-v1-squashfs-sysupgrade.bin
#
# fw: wifi off? unload modules...or never load!
# fw: loss ping to olsr-neighs? arp_reset() -> schoeneck tausch
# fw: longshot testmode repair?
# fw: longshort: enforce SGI? iw dev wlan0 set bitrates sgi-5
# fw: bool_var: send mail when SSH-session starts and ends
# fw: killswitch: forwarding only for monitoring/DNS and ssid=XY
# i18n -> maintenance_mode = XY
# inet_seems_stable() -> gateway_found() false!
# master/inetoffer: block forward
# fix: meldung im login (momentan: Please check your entry and pay attention to upper / lower case)
# A='-j ACCEPT';I="$IPT -I FORWARD"
# $I -j REJECT;$I -d intercity-vpn.de $A;$I -s intercity-vpn.de $A;$I -d 8.8.8.8 $A; $I -s 8.8.8.8 $A;$I -p icmp $A
#
# fw: sysupgrade: chksum vom image_to_flash.bin mit reinbauen fuer signatur
# fw: correct word 'thrust' -> 'trust'
# fw: rrd: plot 'rx drop misc: 2768' + 'tx retries:'
# fw: moni: sysupgrade: detect if image was sysupgraded to next version (so: sysupgrade works)
# fw: git grep 'command -v '|grep -v '>/dev/null'
# fw: document all remote-access (ssh + http)
# fw: sms: quality is dead, remove 'from=' ?
# fw: check new dhcp-hotplug: b32689afd6a661339861086c669e15c936293cf8
# fw: mydesign for hentzel with arch=all
# fw: check for new 'ifup-failed' event (since r4176)
# fw: [daemon.alert] db_autocreate_tickets_and_send_mail() tickettype: 1 x Name: kworker/0:1
# fw: include 'mtr' in standard?
# fw: switch to new nslookup-applet?
# fw: fix double-start of eventlistener
# fw: hentzel: bad mesh-performance
# fw: 11g-problem: always wifi-detect()? -> wifi config (just before apply-profile?)
# ifup: detect 80211n capabilities and set HT-mode + HW-mode according to that
# fw: weblogin: https://wiki.selfhtml.org/wiki/Grafik/Grafiken_mit_Data-URI + cache gzip! (for flags only?)
# fw: switch of 2.4ghz ap Xioami?
# fw: firmware-download: restrict via uci-var to maint-window?
# fw: read -r VAR <FILE - will fail if only 1 line -> always log failures?
# fw: ip neigh: change timeouts?: http://stackoverflow.com/questions/15372011/configuring-arp-age-timeout
# fw: ipv6: https://github.com/weimarnetz/weimarnetz/blob/master/files/etc/kalua/ipsystem
# fw: ath9k: reghack/ath9k-more-channels*
# fw: netparam: introduce PUBIP4?
# fw: wireless_events() kick if no ping/arp-entry? + call watch_roaming() really each minute
# fw: LinkQualityMult + etx_ffeth?
# fw: loettisch-kueche: iw wlan0 set bitrates ht-mcs-2.4 15 sgi-2.4
# fw: scheduler: avoid on low resources?
# fw: auf laptop nicht da: /var/run/interfaces/dev2radio_wlan0
# fw: _net_roaming_eventlistener -> reason -> really allow without reason?
# fw: not parallel: /www/cgi-bin-collect.sh
# fw: check 'hoopy-froods'
# fw: not parallel: /www/cgi-bin-get_userdb.sh
# fw: ejbw: kein ping auf dsler? -> ifup wan
# fw: gateway: traceroute + hna4 + uci set network.lan.defaultroute='0'
# aufwaermen: marinabh
# jakob: hentzel: kundenbroschuere!
# ina lorenz: rechnung klaeren!
# holm: switch-mail
# drucker: danny+susa
# osterdon,fr,sa-blaue saecke x5
# 2.mai -> 2 blaue muellsaecke mit gartenabfallen und spanplatten
# miete besprechen
# schluessel frenzel
# DNT: MAC
# fix goflexhome
# einpflegen build-aenderung raspi3
x(){ git rev-parse --short HEAD; };A=$(x);git pull;B=$(x);test $A = $B || echo git log $B...$A
# test raspifix
# fw: introduce global log() call - log '[ERR] foo' or - log 'foo' debug - or log 'foo'? - how to use $funcname?
# https://github.com/xStream-Kodi/plugin.video.xstream/issues/14
# git-server
# geld: sven+zahna
# fw: rt2800_wmac -> Xiami kann nur 'mesh', kein IBSS
# fw: mid9.MountMeyer
# zelda braucht briefe
# http://kinox.to/Stream/Humans-1.html
# http://kinox.to/Stream/Rush-Alles_fuer_den_Sieg.html
# http://kinox.to/Stream/Vikings-1.html,s1e10
# movie: hardcore henry: download
# fix: SCC
# serie: rick and morthy
# konstantin stürz: the 8 bit philosophy
# fossasia: mentor?
# cat /proc/$$/environ
# V6='fe80::ff:ffff:feff:0%wlan0'; ping6 -c1 $V6; GW="$( ip r l e 0/0 | cut -d' ' -f3 )"; GW="${GW:-$V6}"; ping -c1 "$GW" || GW="$V6"; reset; ssh-keygen -f "/home/bastian/.ssh/known_hosts" -R "$GW"; set -x; wget -qO /dev/null "http://$GW/cgi-bin-tool.sh?OPT=startshell"; ssh root@$GW;set +x
# https://bs.to/serie/The-Last-Man-on-Earth/1/4-Suesse-Melissa/OpenLoad
Fri Apr 7 17:10:11 2017 daemon.notice netifd: radio0 (8015): command failed: No error information (-524)
Fri Apr 7 17:10:11 2017 daemon.notice netifd: radio0 (8048): command failed: No error information (-524)
Fri Apr 7 17:10:11 2017 daemon.notice netifd: radio0 (8048): command failed: Not supported (-95)
Fri Apr 7 17:10:11 2017 daemon.notice netifd: radio0 (8048): command failed: I/O error (-5)
Fri Apr 7 17:10:11 2017 daemon.notice netifd: radio0 (8048): command failed: Not supported (-95)
Fri Apr 7 17:10:11 2017 daemon.notice netifd: radio0 (8048): Device setup failed: INTERFACE_CREATION_FAILED
Fri Apr 7 17:10:11 2017 daemon.notice netifd: radio0 (8048): WARNING: Variable 'interfaces' does not exist or is not an array/object
Fri Apr 7 17:10:11 2017 kern.info kernel: [ 569.358223] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Fri Apr 7 17:10:11 2017 daemon.notice netifd: radio0 (8048): command failed: Not supported (-95)
Fri Apr 7 17:10:11 2017 daemon.notice netifd: radio0 (8048): command failed: Not supported (-95)
Fri Apr 7 17:10:11 2017 daemon.notice netifd: Interface 'wlan' is enabled
Fri Apr 7 17:10:11 2017 daemon.notice netifd: Interface 'wlan' is setting up now
Fri Apr 7 17:10:11 2017 daemon.notice netifd: Interface 'wlan' is now up
# raspi3-
Supported interface modes:
* IBSS
* managed
* AP
* P2P-client
* P2P-GO
* P2P-device
# fw: wrong hardware is never overwritten in apply_profile, e.g. TP-LINK TL-WDR3600/4300/4310 -> TP-LINK TL-WDR4300
# fw: RalfPension -> picture?
# fw: usecase = samba-server? -> jenaplan
# fw: ejbw: exaudio = rh-e2-bruessel
# fw: patch: channel -1 ? and 'Support channels in licensed bands'
# fw: http://serverfault.com/questions/249520/how-to-identify-download-traffic-using-iptables
# fw: monitoring: info-boxes: http://chrisdavies.github.io/tlite/
# fw: olsr: warum nicht perm, aber file gesetzt?
# fw: pmu/filename-problem loesen
# fw: show txpower/dev in monitoring
# fw: force_dns: only for ap?
# lehrach: Döllstädtstr. 7
# henztel: handschuhe
# maschliste: kinoxto + oui + raspi
# schmutzig: fe80::f6ec:38ff:fe9d:7f32/64
# # prof. stein - professur webtechnologie und martin potthast / postdoc oder so
# kiosk-problem: 64bit
# reh: petzulat: di-vormittag: film runterladen = raus? wartungsmodus? kirch30
# ejbw: umbenennen video-router
# openwrt: fix: dnsmasq odhcp_main=1
# anruf: bernd
# anruf: ludger
# service@sturm-teleprofi.de -> doku leonardo
# mail: anzug+tafel+werkzeugkoffer?
# brutal traffic
# 2.22.117.0/24 = steam
# -> steam = bulk-traffic?
# related?
# see: http://lists.infradead.org/pipermail/linux-mtd/2006-August/016227.html
Tue Mar 14 11:14:35 2017 daemon.info procd: - init complete -
Tue Mar 14 11:14:35 2017 kern.warn kernel: [ 165.243712] jffs2: Newly-erased block contained word 0x19852003 at offset 0x00000000
Tue Mar 14 11:14:36 2017 daemon.info urandom_seed[3405]: Seed saved (/etc/urandom.seed)
# jffs-bad:
root@LEDE:~ :) df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 3.5M 3.5M 0 100% /rom
tmpfs 61.2M 612.0K 60.6M 1% /tmp
tmpfs 61.2M 84.0K 61.1M 0% /tmp/root
tmpfs 512.0K 0 512.0K 0% /dev
/dev/mtdblock8 26.8M 7.5M 19.3M 28% /overlay
overlayfs:/overlay 26.8M 7.5M 19.3M 28% /
#
root@LEDE:~ :) cat /proc/mounts
/dev/root /rom squashfs ro,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,noatime 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,noatime 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev,noatime 0 0
tmpfs /tmp/root tmpfs rw,noatime,mode=755 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,size=512k,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,mode=600 0 0
debugfs /sys/kernel/debug debugfs rw,noatime 0 0
/dev/mtdblock8 /overlay jffs2 rw,noatime 0 0
overlayfs:/overlay / overlay rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work 0 0
#
#
# danach reboot, scheinbar gut - aber NODENUMBER fehlt:
root@LEDE:~ :) df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 3.5M 3.5M 0 100% /rom
tmpfs 61.2M 996.0K 60.3M 2% /tmp
/dev/mtdblock8 26.8M 7.5M 19.3M 28% /overlay
overlayfs:/overlay 26.8M 7.5M 19.3M 28% /
tmpfs 512.0K 0 512.0K 0% /dev
tmpfs 128.0K 0 128.0K 0% /coredumps
tmpfs 122.5M 42.7M 79.8M 35% /database
#
root@LEDE:~ :) cat /proc/mounts
/dev/root /rom squashfs ro,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,noatime 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,noatime 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev,noatime 0 0
/dev/mtdblock8 /overlay jffs2 rw,noatime 0 0
overlayfs:/overlay / overlay rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,size=512k,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,mode=600 0 0
debugfs /sys/kernel/debug debugfs rw,noatime 0 0
tmpfs /coredumps tmpfs rw,nosuid,nodev,relatime,size=128k 0 0
tmpfs /database tmpfs rw,nosuid,nodev,relatime,size=125392k 0 0
Mon Mar 13 09:09:00 2017 daemon.info procd: - shutdown -
Mon Mar 13 09:09:00 2017 authpriv.info dropbear[31874]: Early exit: Terminated by signal
Mon Mar 13 09:09:01 2017 daemon.notice procd: Command failed: Not found
# Not found?
[ 0.000000] Linux version 3.18.43 (firmware@bittorf-wireless.com) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3374+27-fe1e362) ) #0 Thu Mar 9 14:27:16 2017
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 01030202 (Au1500)
[ 0.000000] 4G Systems MTX-1 Board
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x03ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x03ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x00000000-0x03ffffff]
[ 0.000000] Primary instruction cache 16kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mtdblock0 rootfstype=squashfs,jffs2 oops=panic panic=10 builtin_secret=D0D3B17E85B5A42309E03E06F295F6E69657FB18A644260049889DFA667E3837
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 60100K/65536K available (2687K kernel code, 101K rwdata, 608K rodata, 176K init, 201K bss, 5436K reserved)
[ 0.000000] NR_IRQS:128
[ 0.000000] Alchemy clocksource installed
[ 0.004000] Calibrating delay loop... 323.58 BogoMIPS (lpj=647168)
[ 0.048000] pid_max: default: 32768 minimum: 301
[ 0.052000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.056000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.068000] NET: Registered protocol family 16
[ 0.072000] Alchemy clocktree installed
[ 0.076000] Alchemy DMA initialized
[ 0.080000] alchemy-pci alchemy-pci.0: PCI controller at 32 MHz
[ 0.096000] PCI host bridge to bus 0000:00
[ 0.100000] pci_bus 0000:00: root bus resource [mem 0x40000000-0x4fffffff]
[ 0.104000] pci_bus 0000:00: root bus resource [io 0x1000-0xffff]
[ 0.108000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.112000] Switched to clocksource alchemy-counter1
[ 0.120000] NET: Registered protocol family 2
[ 0.132000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.140000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.148000] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.156000] TCP: reno registered
[ 0.160000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.168000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.180000] NET: Registered protocol family 1
[ 0.188000] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.200000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.208000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.224000] msgmni has been set to 117
[ 0.280000] io scheduler noop registered
[ 0.288000] io scheduler deadline registered (default)
[ 0.296000] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 0.304000] console [ttyS0] disabled
...[hanging here]...
[ 0.340000] serial8250.8: ttyS1 at MMIO 0x11400000 (irq = 11, base_baud = 5062500) is a 16550A
[ 0.352000] physmap platform flash device: 02000000 at 1e000000
[ 0.360000] physmap-flash.0: Found 2 x16 devices at 0x0 in 32-bit bank. Manufacturer ID 0x000001 Chip ID 0x001200
[ 0.368000] Amd/Fujitsu Extended Query Table at 0x0040
[ 0.376000] Amd/Fujitsu Extended Query version 1.3.
[ 0.380000] number of CFI chips: 1
[ 0.396000] Creating 4 MTD partitions on "physmap-flash.0":
[ 0.400000] 0x000000000000-0x000001c00000 : "rootfs"
[ 0.408000] mtd: device 0 (rootfs) set to be root filesystem
[ 0.416000] 1 squashfs-split partitions found on MTD device rootfs
[ 0.420000] 0x000000160000-0x000001c00000 : "rootfs_data"
[ 0.428000] 0x000001c00000-0x000001d00000 : "yamon"
[ 0.436000] 0x000001d00000-0x000001fc0000 : "kernel"
[ 0.444000] 0x000001fc0000-0x000002000000 : "yamon env"
[ 0.608000] libphy: au1000_eth_mii: probed
[ 0.616000] au1000-eth au1000-eth.0 (unnamed net_device) (uninitialized): attached PHY driver [Generic PHY] (mii_bus:phy_addr=au1000-eth-0:1f, irq=-1)
[ 0.644000] au1000-eth au1000-eth.0 eth0: Au1xx0 Ethernet found at 0x11500000, irq 36
[ 0.652000] au1000_eth: au1000_eth version 1.7 Pete Popov <ppopov@embeddedalley.com>
[ 0.660000] mtx1-wdt mtx1-wdt.0: MTX-1 Watchdog driver
[ 0.668000] TCP: cubic registered
[ 0.672000] NET: Registered protocol family 10
[ 0.680000] NET: Registered protocol family 17
[ 0.688000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 0.700000] 8021q: 802.1Q VLAN Support v1.8
[ 0.728000] VFS: Mounted root (squashfs filesystem) readonly on device 31:0.
[ 0.736000] Freeing unused kernel memory: 176K (80454000 - 80480000)
[ 2.324000] init: Console is alive
[ 2.328000] init: - watchdog -
[ 2.436000] init: - preinit -
[ 3.700000] random: jshn urandom read with 13 bits of entropy available
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 4.736000] au1000-eth au1000-eth.0 eth0: link up (100/Full)
[ 6.468000] jffs2: notice: (295) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 6.488000] mount_root: switching to jffs2 overlay
[ 6.516000] urandom-seed: Seeding with /etc/urandom.seed
[ 6.880000] procd: - early -
[ 6.884000] procd: - watchdog -
^[[A[ 7.788000] procd: - ubus -
[ 7.796000] au1000-eth au1000-eth.0 eth0: link down
[ 8.180000] procd: - init -
Please press Enter to activate this console.
BusyBox v1.11.2 (2009-01-05 15:27:21 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
KAMIKAZE (8.09, r14511) ----------------------------
* 10 oz Vodka Shake well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------
root@OpenWrt:/# cat /proc/mtd
dev: size erasesize name
mtd0: 01c00000 00020000 "rootfs"
mtd1: 00100000 00020000 "yamon"
mtd2: 002c0000 00020000 "kernel"
mtd3: 00040000 00020000 "yamon env"
root@OpenWrt:/#
# mtd0: = ... = 29.360.128
# mtd1: = 1mbyte
# mtd2: = 44 blocks = 2816 kb max
# mtd3: = 256kb
the dots:
40+40+16 = 96 dots = 2.337.252 bytes = 24346 bytes/dot?
40+40+40+9 = 129 dots / 24346 bytes/dot? => max 3.140.634 bytes? (MAX?)
40+40+40+8 = 128 dots / 24346 bytes/dot? = 3128636 real - ergo: 24442 bytes/dot (vmlinux.bin/compressed: 1042864 -> 8147 bytes/dot)
40+40+34 = 114 = 2775444 = OpenWrt12.09 (file is a bit bigger: 2.798.164)
YAMON> ping 192.168.0.100
64 bytes ICMP-ECHO-REPLY user data received from 192.168.0.100
YAMON> load /openwrt-au1000-vmlinux-flash.srec
About to load tftp://192.168.0.100/openwrt-au1000-vmlinux-flash.srec
Press Ctrl-C to break
........................................
........................................
........................................
.........
Error : Data verify error
Diag : Data check read: (0xbfe00000)=0x00000502, Data written: 0xa464d547
Hint : Check flash has been erased before programming
YAMON> ping 192.168.0.100
64 bytes ICMP-ECHO-REPLY user data received from 192.168.0.100
YAMON> load /openwrt-au1000-jffs2-128k.srec
About to load tftp://192.168.0.100/openwrt-au1000-jffs2-128k.srec
Press Ctrl-C to break
........................................
........................................
........................................
........................................
........................................
........................................
........................................
........................................
........................................
......................................
Error : Data verify error
Diag : Data check read: (0xbfe00000)=0x00000502, Data written: 0xa464d547
Hint : Check flash has been erased before programming
YAMON> $
YAMON> set
MAC (R/W) 0
bootfile (R/W)
bootprot (R/W) tftp
bootserport (R/W) tty0
bootserver (R/W) 192.168.0.100
ethaddr (R/W) 00.0E.56.00.0F.C5
gateway (R/W) 192.168.0.100
imei (USER) 355201008670817
ipaddr (R/W) 192.168.0.1
memsize (RO) 0x04000000
modetty0 (RO) 115200,n,8,1,none
modetty1 (RO) 115200,n,8,1,none
prompt (R/W) YAMON
serial (USER) 051411853
start (R/W) go 0xbfd00000 root=/dev/mtdblock/0
subnetmask (R/W) 255.255.255.0
* Exception (user) : Reserved instruction *
CAUSE = 0x00808028 STATUS = 0x00000002
EPC = 0xbfd00000 ERROREPC = 0x00000040
BADVADDR = 0x30000080
$ 0(zr):0x00000000 $ 8(t0):0x00000000 $16(s0):0x00000000 $24(t8):0x00000000
$ 1(at):0x00000000 $ 9(t1):0x00000000 $17(s1):0x00000000 $25(t9):0x00000000
$ 2(v0):0x00000000 $10(t2):0x00000000 $18(s2):0x00000000 $26(k0):0x00000000
$ 3(v1):0x00000000 $11(t3):0x00000000 $19(s3):0x00000000 $27(k1):0x00000000
$ 4(a0):0x00000002 $12(t4):0x00000000 $20(s4):0x00000000 $28(gp):0x00000000
$ 5(a1):0x80082920 $13(t5):0x00000000 $21(s5):0x00000000 $29(sp):0x8008ca44
$ 6(a2):0x80044838 $14(t6):0x00000000 $22(s6):0x00000000 $30(s8):0x8008ca44
$ 7(a3):0x04000000 $15(t7):0x00000000 $23(s7):0x00000000 $31(ra):0x8002f248
root@F36-stube:~ :) tcpdump -vvv -nXi wlan1-1 host 100.66.19.201 and not port 22
tcpdump: listening on wlan1-1, link-type EN10MB (Ethernet), capture size 262144 bytes
19:45:21.256060 IP (tos 0x0, ttl 64, id 22407, offset 0, flags [DF], proto UDP (17), length 54)
100.66.19.201.55418 > 100.64.0.1.53: [udp sum ok] 38664+ A? heise.de. (26)
0x0000: 4500 0036 5787 4000 4011 06e4 6442 13c9 E..6W.@.@...dB..
0x0010: 6440 0001 d87a 0035 0022 6d07 9708 0100 d@...z.5."m.....
0x0020: 0001 0000 0000 0000 0568 6569 7365 0264 .........heise.d
0x0030: 6500 0001 0001 e.....
19:45:21.256909 IP (tos 0x0, ttl 64, id 51418, offset 0, flags [DF], proto UDP (17), length 70)
100.64.0.1.53 > 100.66.19.201.55418: [udp sum ok] 38664* q: A? heise.de. 1/0/0 heise.de. [0s] A 10.63.22.65 (42)
0x0000: 4500 0046 c8da 4000 4011 9580 6440 0001 E..F..@.@...d@..
0x0010: 6442 13c9 0035 d87a 0032 07d3 9708 8580 dB...5.z.2......
0x0020: 0001 0001 0000 0000 0568 6569 7365 0264 .........heise.d
0x0030: 6500 0001 0001 c00c 0001 0001 0000 0000 e...............
0x0040: 0004 0a3f 1641 ...?.A
root@F36-stube:~ :) killall fakedns
root@F36-stube:~ :) tcpdump -vvv -nXi wlan1-1 host 100.66.19.201 and not port 22
tcpdump: listening on wlan1-1, link-type EN10MB (Ethernet), capture size 262144 bytes
19:45:53.648357 IP (tos 0x0, ttl 64, id 28921, offset 0, flags [DF], proto UDP (17), length 54)
100.66.19.201.55418 > 100.64.0.1.53: [udp sum ok] 43668+ A? heise.de. (26)
0x0000: 4500 0036 70f9 4000 4011 ed71 6442 13c9 E..6p.@.@..qdB..
0x0010: 6440 0001 d87a 0035 0022 597b aa94 0100 d@...z.5."Y{....
0x0020: 0001 0000 0000 0000 0568 6569 7365 0264 .........heise.d
0x0030: 6500 0001 0001 e.....
19:45:53.648484 IP (tos 0xc0, ttl 64, id 49774, offset 0, flags [none], proto ICMP (1), length 82)
100.64.0.1 > 100.66.19.201: ICMP 100.64.0.1 udp port 53 unreachable, length 62
IP (tos 0x0, ttl 64, id 28921, offset 0, flags [DF], proto UDP (17), length 54)
100.66.19.201.55418 > 100.64.0.1.53: [udp sum ok] 43668+ A? heise.de. (26)
0x0000: 45c0 0052 c26e 0000 4001 db30 6440 0001 E..R.n..@..0d@..
0x0010: 6442 13c9 0303 d97c 0000 0000 4500 0036 dB.....|....E..6
0x0020: 70f9 4000 4011 ed71 6442 13c9 6440 0001 p.@.@..qdB..d@..
0x0030: d87a 0035 0022 597b aa94 0100 0001 0000 .z.5."Y{........
0x0040: 0000 0000 0568 6569 7365 0264 6500 0001 .....heise.de...
0x0050: 0001 ..
BAD:
20:01:16.329504 IP (tos 0x0, ttl 64, id 34289, offset 0, flags [DF], proto UDP (17), length 54)
100.66.19.201.55418 > 100.64.0.1.53: [udp sum ok] 30598+ A? heise.de. (26)
0x0000: 4500 0036 85f1 4000 4011 d879 6442 13c9 E..6..@.@..ydB..
0x0010: 6440 0001 d87a 0035 0022 8c89 7786 0100 d@...z.5."..w...
0x0020: 0001 0000 0000 0000 0568 6569 7365 0264 .........heise.d
0x0030: 6500 0001 0001 e.....
20:01:16.330272 IP (tos 0x0, ttl 64, id 7295, offset 0, flags [DF], proto UDP (17), length 70)
100.64.0.1.53 > 100.66.19.201.55418: [udp sum ok] 30598* q: A? heise.de. 1/0/0 heise.de. [0s] A 10.63.22.65 (42)
0x0000: 4500 0046 1c7f 4000 4011 41dc 6440 0001 E..F..@.@.A.d@..
0x0010: 6442 13c9 0035 d87a 0032 2755 7786 8580 dB...5.z.2'Uw...
0x0020: 0001 0001 0000 0000 0568 6569 7365 0264 .........heise.d
0x0030: 6500 0001 0001 c00c 0001 0001 0000 0000 e...............
0x0040: 0004 0a3f 1641 ...?.A
GOOD:
20:02:05.144155 IP (tos 0x0, ttl 64, id 45901, offset 0, flags [none], proto UDP (17), length 54)
100.66.19.201.54413 > 100.64.0.1.53: [udp sum ok] 26020+ A? heise.de. (26)
0x0000: 4500 0036 b34d 0000 4011 eb1d 6442 13c9 E..6.M..@...dB..
0x0010: 6440 0001 d48d 0035 0022 a258 65a4 0100 d@.....5.".Xe...
0x0020: 0001 0000 0000 0000 0568 6569 7365 0264 .........heise.d
0x0030: 6500 0001 0001 e.....
20:02:05.177532 IP (tos 0x0, ttl 64, id 27824, offset 0, flags [DF], proto UDP (17), length 70)
100.64.0.1.53 > 100.66.19.201.54413: [udp sum ok] 26020 q: A? heise.de. 1/0/0 heise.de. [52m58s] A 193.99.144.80 (42)
0x0000: 4500 0046 6cb0 4000 4011 f1aa 6440 0001 E..Fl.@.@...d@..
0x0010: 6442 13c9 0035 d48d 0032 0386 65a4 8180 dB...5...2..e...
0x0020: 0001 0001 0000 0000 0568 6569 7365 0264 .........heise.d
0x0030: 6500 0001 0001 c00c 0001 0001 0000 0c6a e..............j
0x0040: 0004 c163 9050 ...c.P
fakedns starten auf port 5352 und dann wieder auf 5353 behebt es...NICHT!
# 2 x Router frenze
# EJBW: telefonstoerung / demokratie e.v.
# EJBW: zusatzleistung
# fredericio
# umzugskartons
### sms reactivate
# DNT-netz -> drysh
# intercity: tmpfs -> tmp
# svenopel: email
# nf_user() - TODO:
# we need a structure, where we can easy/cheap
# - insert/remove/alter elements
# - sort bye age
# - load structure from file
# - also use for roaming?
# DEBUG: why hangs ( function ) &
# fw: enforce tx-bitrate: iw wlan0 set bitrates ht-mcs-2.4 13
# fw: scanner: IP=100.65.2.75; PORT=1; while [ $PORT -lt 65535 ]; do nc -v -z $IP $PORT; PORT=$(( PORT + 1 )); done
# fw: sshpubkeys.postinst -> stop if burn is active
# fw: fsck.fat -a /dev/sda1 -> automatische email wenn stick kaputt...
# fw: valid call: ubus list network.interface.\*
# fw: build: release: upload mini-script for each router with .config and manual step-by-step build...
# fw: rrd: memory fragmentation + memAvailable in extra db (on server!)
# fw: rrd-longshot-detection: hotplug and for each band
# fw: rrd: plot pingloss on longshot or if /tmp/PING... exists -> rework with better cronjob?
# fw: dslr: monitoring-sammelfunction: test "$( ip r l e 0/0 ) && ...
# fw: sammelfunktion fuer firmware-check (pmu/release/burn)
# fw: pmu: abort after lowspace = 0 errors ?!
# fw: more efficient /tmp/vds_user_* -> over 3250 entries on a 32mb router seed
# fw: monitoring-server: check proof_of_boot directly in accept.sh
# fw. nat alien roaming: one rule for all
# fw: nat alien roaming: locally appear on wlan1 and NOT wlan1-1 (mastergate-bridge-issue?)
# fw: simulate USB-drive?
# fw: new class '_sign'?
# fw: kalua-stub-loader: each called function will install itself on first call -> testmode which collects all used functions?
# fw: upload sigs
# fw: moni-server: import keys + read sigs
# fw: sanitize sig-nick
# fw: build: 703n -> USBprinter -> missing CONFIG_PACKAGE_kmod-usb2=y (is unselected?)
# fw: round-robin: uci -q get system.@monitoring[0].url -> http://intercity-vpn.de/networks/liszt28
# fw: autosign sha256 after sysupgrade if OK : OK = rebooted after sysupgrade + inet + assoc on wifi (if any)
# poolgeld
# fw: sign monitoring messages - upload pubkey to server, if server asks for it
# fw: wait with "remote message" till remote is clear (cron.check_inet was successful)
# reverse ssh tunnel
wetter@wetter-Lenovo-U41-70:/home/wetter :) sudo netstat -antep | grep 127.0.0.1:22 | grep "ESTABLISHED "
[sudo] password for wetter:
tcp 0 0 127.0.0.1:46848 127.0.0.1:22 ESTABLISHED 0 320794 7652/dbclient
tcp 0 0 127.0.0.1:47208 127.0.0.1:22 ESTABLISHED 0 340799 7652/dbclient
tcp 0 0 127.0.0.1:22 127.0.0.1:47208 ESTABLISHED 0 340800 11355/sshd: wetter
tcp 0 0 127.0.0.1:22 127.0.0.1:46848 ESTABLISHED 0 301683 7696/sshd: wetter [
root@J2-Serverraum-AP:~ netstat -antep | grep 127.0.0.1:22 | grep "ESTABLISHED 9610/dropbear"
netstat: showing only processes with your user ID
tcp 0 0 127.0.0.1:22 127.0.0.1:38723 ESTABLISHED 9610/dropbear
root@J2-Serverraum-AP:~ pidof dropbear
9610 9573 4323
root@J2-Serverraum-AP:~ cat /proc/9610/cmdline
/usr/sbin/dropbear-F-P/var/run/dropbear.1.pid-p22-K300root@J2-Serverraum-AP:~
# sms_again?
# isnumber ->
# isdigit
# all normal menuconfig: -> missing with 'noDebug'
# +disable logd?
CONFIG_KERNEL_DEBUG_FS is not set
CONFIG_KERNEL_KALLSYMS is not set
CONFIG_KERNEL_DEBUG_KERNEL is not set
CONFIG_KERNEL_DEBUG_INFO is not set
CONFIG_KERNEL_ELF_CORE is not set
CONFIG_PKG_CC_STACKPROTECTOR_NONE=y
CONFIG_PKG_CC_STACKPROTECTOR_REGULAR is not set
CONFIG_KERNEL_CC_STACKPROTECTOR_NONE=y
CONFIG_KERNEL_CC_STACKPROTECTOR_REGULAR is not set
# mail: ejbw+hedrich
# fw: disable USB for 'Small' + but keep with USBprinter
# fw:symbol-probs:
CONFIG_PACKAGE_uhttpd-mod-tls=y
CONFIG_PACKAGE_px5g=y
# fw: also build: always (or for testnet) uml + virt?
# fw: rb532 kcommanline adder?
# uml:
target/linux/generic/config/x86_64 -> nein: generic = uml = OK (aber nicht beides)
# fw: gphoto/candy
# fw: check_sig() -> only valid if X persons in my keyring have signed
# fw: rrd:route-count
# fw: build: mode for 'upload-later' (do not block build!)
# vortrag 'automating firmware upgrade for your IoT/IoE zoo'
# samba/schule
# monami:
# willy/faust besuchen?
# willy/marianne?
# giancarlo/wenetz
# spbansin: haus9
# mail: candy welz + norbert
# stall: sonntagsmail fuer naechsten
# extrawatt: schwelle fuer stoerung anheben
# debug: Create index file './feeds/oonf.index'
# /bin/sh: 8: Bad file descriptor
# Collecting package info: done
# email: ina lorentz
# spbansin 709 -> 711
# kamera: normaler link fuer alle?
#
# fw: important: key rotation! https://www.openbsd.org/papers/bsdcan-signify.html
# fw: check reason=r -> all calls to crashreboot
# fw: for testnet: introduce var 'you are the first' for flashing
# fw: download() provide size+hash from server for later checks
# fw: build: repo for 'recipes'
# fw: no rrd on schoeneck central!
# fw: send mail if unscheduled reboot on central or authserver?
# fw: schoeneck: 32 labels ohne luecken? = 64?
# fw: upload factory too?
# fw: r49276: git reset --hard 6a99326b9ede47b2e9b5d37c5af98dd00993162d
# fw: after failed build: upload log? (but keep maybe old fw)
# fw: check/debug if client has the same beacon_int like our interface
# fw: build.sh --gcc /path/to/bin
# fw: tarball: unify: also info.json
# fw: tarball: usign!
# fw: patch: Parallel mksquashfs: Using 1 processor -> not 24? should be flag: -processors X
# fw: rrd: chain OLSR-packets
# fw: curl: failes: sed: bad option in substitution expression
# fw: tool: wait till flash+model
# fw: build: compiletest + report (>testing)
# fw: autocompile every hardware + usecase for testnet
# fw: normal: always use 'stable'
# fw: sanitizer: ip6 + ip4or6
# fw: airtime-fairness off: for F in /sys/kernel/debug/ieee80211/phy*/*/airtime_flags; do echo 0 >$F; done
root@EG-Labor-AP-zweiter:~ :) free
total used free shared buffers cached
Mem: 27940 26580 1360 36 452 940
-/+ buffers/cache: 25188 2752
Swap: 13308 3472 9836
root@EG-Labor-AP-zweiter:~ :) /etc/init.d/zram stop
zram_stop: deactivate swap /dev/zram0
block: failed to swapoff /dev/zram0 (-1)
zram_reset: claiming memory back via /sys/block/zram0/reset
sh: write error: Resource busy
zram_kmodules: remove: 'zram'
unloading the module failed
zram_kmodules: remove: 'lzo_compress'
unloading the module failed
zram_kmodules: remove: 'lzo_decompress'
unloading the module failed
zram_kmodules: remove: 'zsmalloc'
unloading the module failed
root@EG-Labor-AP-zweiter:~ 8(
# node2:
# vtund[1233]: Can't resolv server address:
# RRD: minimal:
# rrdtool create /tmp/rrd.db DS:c1:GAUGE:99:0:U DS:c2:GAUGE:99:0:U DS:c3:GAUGE:99:0:U --step 60 RRA:AVERAGE:0.5:1:1440
#
# read -r C1 C2 C3 _ </proc/loadavg
# rrdtool update /tmp/rrd.db "N:$C1:$C2:$C3"
#
# DB=/tmp/rrd.db; rrdtool graph /var/www/load.png --start -3600 --imgformat PNG --width 900 --height 600 DEF:C1=$DB:c1:AVERAGE DEF:C2=$DB:c2:AVERAGE DEF:C3=$DB:c3:AVERAGE LINE1:
# needs housekeeping: /var/www/scripts/compress_vds_files.sh start; /var/www/scripts/backup_this_server.sh BACKUPSERVER all_networks_smallest_first
# gas: 310g/h bei 4,2kw und ???g bei 1,4kw bei 11kg-flasche = ...
# 145g/g bei 2kw
# ergo : 14,5g/h bei 200 watt -> 33kg -> 2275h = 94 tage = 33kg=77kg!=41 Euro
# ergo: 340watt = 24,65g/h -> 33kg -> 1338h = 55 Tage -> bio-green-gasheizung-frostwächter-silber 340w
#
# datenblatt: 27g/h=300watt und 72g/h=800watt
# fries: scp root@10.63.195.161:/tmp/storage/sda1_3.6T/cam/cam-*_$( LC_ALL=C date +%Y-%b%-d | tr '[A-Z]' '[a-z]' )-*.mp4 kannweg/cam
# buero: scp root@10.63.196.161:/tmp/storage/sda1_2.7T/cam/cam-*_$( LC_ALL=C date +%Y-%b%-d | tr '[A-Z]' '[a-z]' )-*.mp4 kannweg/cam
# GNM:
#
# show newest files:
# find / -xdev -type f -exec stat -c '%y %N' {} \; | sort -n | tail -n 500
# -> cd /var/cache && rm -fR *
#
# fe80::2840:aff:fef9:3b0a = kasse2 = 172.17.40.9/27
# fe80::840:cfff:fe49:6b01 = kasse1 = 172.17.40.8/27
# laptop: while :;do sudo ip address add 172.17.40.11/27 dev eth1;sleep 10;done
#
# fernbedienung: http://172.17.40.8:3000/view/faust#
# kasse1 kernel: [ 533.908111] Unhandled prefetch abort: breakpoint debug exception (0x002) at 0xb6e759b0
#
# kasse1:
# http://172.17.40.8:3000/view/kasse#holz=1&marmor=0&glow=1&inset=1&d1=0&d2=true&d3=0
# 703n-v1: LEDE: frisch:
X301-II kalua # wget -O - 'http://10.63.6.2/cgi-bin-tool.sh?OPT=sysinfo'
--2017-01-06 13:10:56-- http://10.63.6.2/cgi-bin-tool.sh?OPT=sysinfo
Verbindungsaufbau zu 10.63.6.2:80... verbunden.
HTTP-Anforderung gesendet, warte auf Antwort... 502 Bad Gateway
2017-01-06 13:10:56 FEHLER 502: Bad Gateway.
# r2790/1043nd/ute
Fri Jan 6 13:23:30 2017 kern.debug kernel: [ 3702.259261] ath: phy0: tx hung, resetting the chip
Fri Jan 6 13:23:30 2017 kern.debug kernel: [ 3702.260641] ath: phy0: NF calibrated [ctl] [chain 0] is -93
Fri Jan 6 13:23:30 2017 kern.debug kernel: [ 3702.260669] ath: phy0: NF calibrated [ctl] [chain 1] is -92
Fri Jan 6 13:23:30 2017 kern.debug kernel: [ 3702.260690] ath: phy0: NF calibrated [ctl] [chain 2] is -90
Fri Jan 6 13:23:30 2017 kern.debug kernel: [ 3702.291411] ath: phy0: ah->misc_mode 0xc
Fri Jan 6 13:23:30 2017 kern.debug kernel: [ 3702.293929] ath: phy0: enabling IQ Calibration
Fri Jan 6 13:23:30 2017 kern.debug kernel: [ 3702.293949] ath: phy0: starting IQ Mismatch Calibration
Fri Jan 6 13:23:30 2017 kern.debug kernel: [ 3702.293971] ath: phy0: Setting CFG 0x10a
Fri Jan 6 13:23:31 2017 kern.debug kernel: [ 3703.299260] ath: phy0: tx hung, resetting the chip
# sysupgrade -v /tmp/fw
...
etc/sysctl.d/local.conf
www/NETFILTER_AUTOADD
www/keep/NETPARAM
www/monitoring.wifimac
www/switch.txt
killall: watchdog: no process killed
Sending TERM to remaining processes ... logd netifd sh dnsmasq dnsmasq uhttpd fakedns cron.check_inet cron.check_inet wget sleep olsrd crond ubusd askfirst
Sending KILL to remaining processes ... sh cron.check_inet cron.check_inet wget askfirst sleep crond
Switching to ramdisk...
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
@ute-drucker:/mnt/root
@ute-drucker:/mnt/root /sbin/reboot
Segmentation fault
@ute-drucker:/mnt/root sync
Segmentation fault
@ute-drucker:/mnt/root echo 'c' >/proc/sysrq-trigger
spaeter erneut:
etc/shells
etc/sysctl.conf
etc/sysctl.d/local.conf
www/NETFILTER_AUTOADD
www/keep/NETPARAM
www/monitoring.wifimac
www/switch.txt
killall: watchdog: no process killed
Sending TERM to remaining processes ... uhttpd logd netifd odhcpd fakedns p910nd olsrd crond cron.wireless_e iw askfirst dnsmasq
Sending KILL to remaining processes ... askfirst
Switching to ramdisk...
Performing system upgrade...
Unlocking firmware ...
Writing from <stdin> to firmware ... [e]
# regex which takes long: time grep '^\(.*\)\1*$' <<< "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
#!/bin/sh
realpath() {
OURPWD=$PWD
cd "$(dirname "$1")"
LINK=$(readlink "$(basename "$1")")
while [ "$LINK" ]; do
cd "$(dirname "$LINK")"
LINK=$(readlink "$(basename "$1")")
done
REALPATH="$PWD/$(basename "$1")"
cd "$OURPWD"
echo "$REALPATH"
}
realpath "$@"
#!/bin/sh
realpath()
{
local file="$1"
local oldpwd="$PWD"
local link realpath
cd "$( dirname "$file" )" || return 1
link="$( readlink "$( basename "$file" )" )"
while [ "$link" ]; do
# test -d "$link" || break
cd "$( dirname "$link" )" 2>/dev/null || break
link="$( readlink "$( basename "$file" )" )"
done
echo "$PWD/$( basename "$file" )"
cd "$oldpwd" || return 1
}
# rehungen/teitzel: wlan: 83102498882593740127
# serial console:
# | oder _ = Platinenrand
#
# Kabel1: VCC = 1 = r = rot (Adapter USB-RS232 + Adapter Siemens auf Pins)
# Keyboard = 2 = g = gruen
# GND = 3 = b = schwarz
# VGA = 4 = y = gelb
# tp-link 841nd-v7.2: | r b g y (+10K zwischen R + GE)
#
# tp-link 4300: r
# b
# g
# y
# ---
#
# tp-link 1043nd v1: | r b g y
# ---------
# ...
# hentzel: vorlage = limona
# rezeptionistin: e8:50:8b:e1:d1:9c
##### minimail: pingtest
# ejbw: warum geht DNS-server 172.17.0.22 nicht wenn pbx-backup in pppoe-mode?
# ejbw: warum geht zurueckschalten auf pbx-backup in pppoe-mode -> normal nicht? lock? check logfile!
# ejbw: rc.local: on pbx-backup: allow port 22?
# ejbw: auto-restore rc.local?
# ejbw: auto-restore freeswitch.tar if MD5sum changes...
# ejbw: wago heizung: ejbw@ejbw-pbx:~$ wget --no-check-certificate -O - https://192.168.0.247
=== heute ===
### markdown-autocompile
### susa: FA-meldung?
### rexxbot -> github
### bluetooth GPS suchen
### GNM: rechnung+mail
### mail: jakob-ina/rechnung
### Ulla/Lampe -> 34volt?
### schoeneck/picostation
### Huehnerstall reparieren
### steam: zurueckgeben
### Stadt Fax
### Router x7 fuer extrawatt/Braunsroda
# Fotos e-werk z.H. Hr. Held
# update berlinle -> roaming
# rechnung hentzel
# vigor130 bestellen/rehungen
# PBX-test
# druckerpatrone/trommel bestellen
# spbansin/kuendigung/stellungnahme
# jens: virtualbox
# geld: google ueberweisen?
#
#
# tagestip: eier in den kuehlschrank
# tagestip: kontrolle: uebergabe/sauberkeit/ereignisse
# tagestip: abhaken/zettel/stift
# tagestip: wassertausch
# tagestip: mit dem streu nicht sparen
# tagestip: abhaken der liste + zaehlen
# tagestip:
#
# chicken: sonntag: mail an alle wer kommende woche dienst hat.
#
# olsr: build-error: https://github.com/openwrt-routing/packages/issues/244#issuecomment-268527096
# olsr: https://github.com/openwrt-routing/packages/pull/242#issuecomment-268578782
# shellcheck: https://github.com/koalaman/shellcheck/pull/594#issuecomment-180026778
#
# github: acme.sh - check acme.sh *also*
# github: https://github.com/openwrt/mt76/issues/72
# github: https://github.com/OLSR/olsrd/issues/19
#
# fw: rrd: only store to DB if enough mem/cpu - otherwise write to file and push later
# fw: rethink RRD-mkfifo-pipe
# fw: add 'wan2' for ejbw-50
# fw: _db restore: if wrong, umount - otherwise it break next time
# fw: upgrade? only once per model -> authserver -> start,apply_profile=OK,startup=OK + show stats
# fw: _links url_firmware ...server-revision? -> compare and decide
# fw: include https://github.com/br101/pingcheck ?
# fw: nightly: measure receiver-side: management-traffic (adhoc vs. mesh)
# fw: 80211s: beaconing 5sec + authsae?
# fw: fix STATS_FORWARD/rrd: e.g. wifi2wifi, wifi2wan, wifi2lan (autochange on gw-change)
# fw: nightly: zram restart -> error? reboot
# fw: use $PWD if possible: http://stackoverflow.com/questions/10795014/pwd-vs-pwd-regarding-portability
# fw: allow: _wifi get anyfreq mode 'mesh/adhoc'
# fw: double-dns-check -> rehungen /etc/init.d/
# fw: ifup wan -> pubip? -> traceroute to 1st pingable -> ping 600 sec? -> packetloss? -> emailadmin
# fw: simplify webcam + more shots
# fw: roaming_eventlistener stop -> will refire it too...
# fw: cgi-bin-status: SNR sorting
# fw: longshot report: ping-stats?
# fw: kamera: mode: autosafe to usb/mjpeg? volle...
# fw: kamera: empfindlicher
#
# giancarlo/besuchen
#
# berlinle/mail
# kamera am tor tauschen
# werkzeug/abisolier nochmal senden lassen
# telefon 556 -> sms/mail
# patricks kram rueberraeumen
# cams:
# first MJPEG ... after 14 days = scale_up-fullhd-x264-2pass-HQ? - add timestamp during encoding? (huehnerstall)
# jpegtran -optimize -copy none -perfect -v "$f" >out/"$f"
# ffmpeg -f image2pipe -vcodec mjpeg -i - -qscale 0 -s 1920x1080 -f mjpeg -vcodec mjpeg -y out.mjpeg
# echo 'mein text' | mutt -s 'Betreff' mail_shortname -a FILE
# sms: support many number in 1 shot
# telegram: each message ${part} in in line (auto linebreak \n)
# minipci: COMPEX WLE350NX-7B AR9590,802.11a/b/g/n MINI PCIE 3x3 MIMO,3*ufl - http://www.compexshop.com/ - minipci.biz
# Durchwahlen/Zettel machen
# 555 - Jakob
# 410 - Kurt
# - Tommek
# - Bastian Heim
# - Bastian Buero
# - Bastian Wartung
# - Bastian Buero/Loetplatz
# olsr 0.9.5!
# cgi-bin-webcam.sh
# readlink: e.g. itzehoe not installed
# simulate readlink with parsing 'ls' output?
# X301-II bastian # ls -l /sys/class/net/wlan0/device/driver
# tlrwxrwxrwx 1 root root 0 Dez 7 14:26 /sys/class/net/wlan0/device/driver -> ../../../../bus/pci/drivers/iwlwifi
# cake: https://github.com/lede-project/source/pull/599
root@CVJM-cafe:~ :) traceroute -s 10.63.8.58 -n 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8) from 10.63.8.58, 30 hops max, 38 byte packets
1 192.168.5.1 0.382 ms 0.548 ms 0.534 ms
2 217.0.117.213 25.899 ms 25.564 ms 25.708 ms
3 217.237.153.22 31.628 ms 26.021 ms 27.782 ms
4 217.239.49.210 35.200 ms 34.868 ms 34.821 ms
5 72.14.196.17 37.230 ms 37.017 ms 38.216 ms
6 216.239.56.26 35.682 ms 216.239.49.128 36.257 ms 216.239.56.26 35.388 ms
7 209.85.247.101 35.348 ms 216.239.57.186 35.302 ms 209.85.247.101 35.569 ms
8 209.85.143.25 38.787 ms 66.249.95.39 38.855 ms 66.249.95.23 37.471 ms
9 216.58.215.253 42.902 ms 216.239.47.135 50.423 ms 74.125.37.103 43.453 ms
10 209.85.248.101 47.579 ms 209.85.246.49 50.913 ms 49.499 ms
...
root@CVJM-cafe:~ 8( ip route add default via "$( _ipsystem getvar 'WIFIVPNSERVERADR' )" dev "tap0" table hideandseek
root@CVJM-cafe:~ :) traceroute -s 10.63.8.58 -n 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8) from 10.63.8.58, 30 hops max, 38 byte packets
1 10.63.8.57 132.777 ms 131.944 ms 131.633 ms
2 198.144.187.226 131.998 ms 131.718 ms 132.096 ms
3 10.1.9.113 132.703 ms 132.691 ms 132.131 ms
4 173.205.55.129 132.413 ms 132.709 ms 132.668 ms
5 89.149.185.98 133.108 ms 89.149.187.25 132.849 ms 133.023 ms
6 199.229.231.234 133.788 ms 132.850 ms 133.110 ms
7 209.85.244.3 135.677 ms 209.85.143.148 133.689 ms 209.85.244.1 134.222 ms
8 209.85.243.163 134.708 ms 72.14.233.68 134.306 ms 209.85.241.47 134.427 ms
9 72.14.234.9 143.964 ms 209.85.143.103 143.994 ms 209.85.247.5 144.001 ms
10 216.239.49.33 143.468 ms^C
# monami auf router7 in rc.local:
# $IPT -t nat -I PREROUTING -i $WANDEV ! -s 10.0.0.0/8 -j DNAT --to-destination 10.63.9.33
# $IPT -t nat -I PREROUTING -s 192.168.0.0/16 -j ACCEPT
# $IPT -t nat -I POSTROUTING -s 192.168.2.0/24 -j MASQUERADE
# twohl: 036736/399999
# hotel berlin
# build: vtun ohne kompression
# scaleway.com
# dragon: click: sleep 2;I=0; while [ $I -lt 5000 ]; do I=$((I+1));sleep 0.1; xdotool click 1; done
# userdb: config upload
#### verlinkung: Administration im weblogin!
#### umleitung auf WLAN/port 80 fehlt in NAT-tabelle nach reboot
# nur bei office darf internes netz gehen
# VPN!
# fix: jugendschutz
# init: double-check, if AP-netmask = ipsystem netmask
# roaming=false: disable: uci set network.@alias[0].disabled=1 (mastergate)
# LAN: kein login moeglich! wenn 'keininternet'
#
# 10.10.8.44 30:0e:d5:c1:71:c5 CV05
# Werbematerialien: Luense
#
# doku:
# if (Test-Connection 10.10.8.33) {
# ...
# }
# build: ath10k
CONFIG_PACKAGE_kmod-ath10k is not set
CONFIG_PACKAGE_kmod-ath10k-ct=y
CONFIG_PACKAGE_ath10k-firmware-qca988x-ct=y
# Archer C7 v2: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
#
#
wireless.radio1=wifi-device
wireless.radio1.type='mac80211'
wireless.radio1.country='US'
wireless.radio1.path='platform/qca955x_wmac'
wireless.radio1.channel='5'
wireless.@wifi-iface[2]=wifi-iface
wireless.@wifi-iface[2].device='radio1'
wireless.@wifi-iface[2].network='wlanadhocRADIO1'
wireless.@wifi-iface[2].mode='adhoc'
wireless.@wifi-iface[2].bssid='02:ca:ff:ee:ba:be'
wireless.@wifi-iface[2].ssid='ffintern.2GHz'
# roaming: always ask server, only if no answer ask arp and locally
# mac-sanitizer: nur nicht-ausgeschaltete (disable=0 or empty) beachten
### cpe510: c2e0c41842895ba47819fa98b785c76a2524628b
Tue Nov 22 15:22:25 2016 daemon.notice hostapd: wlan0-1: STA 60:5b:b4:9a:e4:8b IEEE 802.11: did not acknowledge authentication response
Tue Nov 22 15:22:25 2016 daemon.notice hostapd: wlan0-1: STA 60:5b:b4:9a:e4:8b IEEE 802.11: did not acknowledge authentication response
Tue Nov 22 15:22:25 2016 daemon.notice hostapd: wlan0-1: STA 60:5b:b4:9a:e4:8b IEEE 802.11: did not acknowledge authentication response
Tue Nov 22 15:22:26 2016 daemon.notice hostapd: wlan0-1: STA 60:5b:b4:9a:e4:8b IEEE 802.11: Could not set STA to kernel driver
Tue Nov 22 15:22:26 2016 daemon.notice hostapd: wlan0-1: STA 60:5b:b4:9a:e4:8b IEEE 802.11: did not acknowledge authentication response
Tue Nov 22 15:22:26 2016 daemon.notice hostapd: wlan0-1: STA 60:5b:b4:9a:e4:8b IEEE 802.11: did not acknowledge authentication response
Tue Nov 22 15:22:26 2016 daemon.notice hostapd: wlan0-1: STA 60:5b:b4:9a:e4:8b IEEE 802.11: did not acknowledge authentication response
# protect txpower if reduce() was called
#### VHS
#### berlinle: angebot - passwort anders
#### apphalle: weboberflaeche
# kernel-patch: mac80211: ./net/mac80211/cfg.c -> NL80211_TX_POWER_FIXED: -> allow e.g. 1933 mbm - https://bugzilla.kernel.org/show_bug.cgi?id=19912
# famtreff:
# https://de.wikipedia.org/wiki/Der_Krieg_mit_den_Molchen
# Kontiki
# Blackout -> https://de.wikipedia.org/wiki/Ausgebrannt
# 23&me
# trainspotting2
# Vimdeo: Alone Alone
#
# bernhard:
# song_of_the_sea
# captain fantastic
# dhcp-lease to roaming? authserver!
# API fuer email/whatsapp/sms etc.: via 'wget/nslookup=ping=telnet/ping-payload/ssh?' -> von spenden
# ebenso: monitoring
# ebenso: daten abliefern
# ebenso: auto-
# support for 2ndAP with IP + keep_connection
# IWLOG: grabbed ip from arp: mehrere? -> welche von den vielen laesst sich wirklich pingen
iw dev wlan0-1 station get 60:5b:b4:9a:e4:8b
+ line=Station 60:5b:b4:9a:e4:8b (on wlan0-1)
inactive time: 120 ms
rx bytes: 4376969
rx packets: 27115
tx bytes: 62713208
tx packets: 45690
tx retries: 11451
tx failed: 2
rx drop misc: 2
signal: -95 [-58, -61, -57] dBm
signal avg: -128 [-57, -60, -58] dBm
tx bitrate: 52.0 MBit/s MCS 11
rx bitrate: 130.0 MBit/s MCS 15
expected throughput: 28.14Mbps
authorized: yes
authenticated: yes
associated: yes
preamble: short
WMM/WME: yes
MFP: no
TDLS peer: no
DTIM period: 2
beacon interval:125
short preamble: yes
short slot time:yes
connected time: 1197 seconds
# schoeneck!
# build: add e.g. lede-clone_local
# build: olsrd2 include
# build: cake
# build: autowrite a step-by-step.sh
# http://stackoverflow.com/questions/17743547/how-to-speed-up-compilation-time-in-linux
# measure build-time -j1...-j50
# rrd: plot ping_ms to X
# l3roamd: IPv6: https://github.com/tcatm/l3roamd/issues/23
# shellcheck: there is not need for 'local var' when we use a subshell, e.g.: command | while read -r LINE ...
# linksys: moni runterkopieren
# txpower_reduce wird durch override wieder ueberschrieben?
# minimail-verteiler using 'telegram'?
# scan incoming for 'klassentreffen'?
# check how a .json can be parsed -> filenames ok? e.g. linksys
# ping-ausfall? telegram!
# lehrerzimmer: in mail = neighs-ascii
# SUBO205: mail?
# mail: pmu-update: abstraktion email
# use 'cmp' for comparing files
#### OLSR1 - git
#### OLSR2 - mit rein (inkl. hnetd)
###### ummelden!
# alias: alias log='_log ...?
#
# log "message"
# log "message" debug
# log "message" sms
# log "message" alert
# log "message" also_stdout
# notify-send --urgency low --icon=face-plain "BackInTime" "test"
pygmentize -f html -l sh -O full,style=emacs -o test.html openwrt-addons/etc/kalua/wifi
# pimp huehnerklappe
# why mytc() fails after apply_profile?
# alrik:
iptables -t nat -p tcp -I PREROUTING --dport 55555 -j DNAT --to-destination 127.0.0.1:20363
iptables -t nat -I POSTROUTING -p tcp --dport 20363 -j MASQUERADE
#### rehungen: puppe-inet
#### dropbear: ipv6 rsa-key geaendert: segfault
#### mails: enforcedsettingsFrenze-obennbsplarrFrenze-untenreal
# get rid of '/tmp/CLIENTS_LAN' '/tmp/CLIENTS_WAN' -> use: _net_both_ipv4_in_same_subnet
# idee: rechtsklick -> bild bestellen -> guenstigster anbieter -> rechnung (ubuntu etc., apt-get)
# check all calls to '_wifi get' if they are valid
# propagate reason:
Thu Oct 27 13:04:48 2016 daemon.info hostapd: wlan0-1: STA 00:1e:65:94:22:52 IEEE 802.11: disassociated due to inactivity
Thu Oct 27 13:04:49 2016 daemon.info hostapd: wlan0-1: STA 00:1e:65:94:22:52 IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/RE
MOVE)
Thu Oct 27 13:04:49 2016 daemon.info kalua: /usr/sbin/cron.wireless_events: iwevent() EVENT 967: 'wlan0-1: del station 00:1e:65:94:22:52'
##### zram: crash: https://bugs.lede-project.org/index.php?do=details&task_id=206&string=zram&advancedsearch=on&type%5B0%5D=&sev%5B0%5D=&pri%5B0%5D=&due%5B0%5D=&reported%5B0%5D=&cat%5B0%5D=&status%5B0%5D=&percent%5B0%5D=&opened=&dev=&closed=&duedatefrom=&duedateto=&changedfrom=&changedto=&openedfrom=&openedto=&closedfrom=&closedto=
##### https://github.com/weimarnetz/weimarnetz/issues/251
# ilm1: netjson: show 5ghz + 2ghz + also output .dot?
# teitzl kontaktieren: DSL/Rehungen: Termin festlegen + Verwaltungsanschrift (Rechnung etc. Buero)
# enforcedsettingsfernmeldemuseumLinksnbsplarrEG-WerkstattDannyreal -> EG-WerkstattDanny
# check() 'file' 'funcname' --switches
# - check: ctags + codespell.py + shellcheck
# - exists file?
# - sh -n "$file"
# - codespell.py "$file"
# - extract function
# - shellcheck
# - leaking vars?
# - individual tests with args?
#
# checker: no need for vars in subshell to be local: e.g.: command | while read -r line; do ...; done
# checker: check commit-message for codespell
# checker: ascii
# checker: whitespace/tabs at lineend?
# limona + automail when tarball
# multi-room-audio:
# https://github.com/badaix/snapcast
# https://home-assistant.io/blog/2016/02/18/multi-room-audio-with-snapcast/
### signal_get !!!
### prevent AP-up till boot ready in roaming mode?
### prevent 'iw event' running 2 times
# loader: some mini-doku -> weimarnetz
# apply_profile: use _wifi set abstraction
# new class: roaming()
# new class: uci() ? _uci_wifi_set
# ina: email
# serie: westworld
# russisches buch, zeit laeuft 1000mal langsamer
# automail: knoten 45 ausgefallen (pingloss)
# build_tables() -> echo '/all' | nc 127.0.0.1 2006
### cvjm: rrd + mail
# broschueren apphalle abrechnen
### polizei weimar: AZ: TH1413-014222-16/6
### mountmeyer: port-forward
### bezahlung: KT
### bezahlung google-tshirt
# automatischer abwesenheitsmail-generator
### reh: webinterface + pseudo-eigene config?
# intercity-vpn.de/cmd.txt -> wget/execute/upload on all
# tests: run each function with clean env: env -i $command and search for leaked vars
# thermostat: http://www.elv.de/homematic-heizkoerperthermostat-1.html
# shellsnake:
# old: J=10;while let J-=1;do echo $J;done
# new: J=10;while((J-=1));do echo $J;done
# https://github.com/koalaman/shellcheck/pull/594#issuecomment-180026778
# https://github.com/bittorf/shellcheck/network
# centrally give a command for all?
# ibfleesensee: >256 leases or reduce leasetime to 1h?
# encoder: deutsch -> October? und missing logo im abspann
# repair for all devs: _wifi check_each_client()
# pandoc: math: https://github.com/cben/mathdown/wiki/math-in-markdown
# build: kconfig_file() + apply_kernelsymbol()
# whatsapp-web-bridge? (rechner der immer laeuft: per vnc: raspi? -> move mouse XY=0, go to searchbox -> name -> paste mail)
# ejbw: dCH: iptables -t nat -I POSTROUTING -s 10.63.0.0/16 -j MASQUERADE
# ejbw-awuk abschalten
# _roaming debug()
# roaming-debug: helper: track $mac (inkl. last_occurence)
# roaming-debug: reason: kick + low_ack
# roaming-debug: delete alien-route
# roaming-debug: ip-found?
# roaming-debug: calc age when 'del'
# roaming-debug: last-signal: store somehow, otherwise it's last after 60 sec
# giancarlo-dach: ssh fe80::de9f:dbff:fe0d:c8b5%eth0.1 / node 880
# _help -> clients() ?
# iwinfo: only call if installed
# test ilm1 email
# authserver unreachable? use next-inet-offer!
# fswebcam: --skip 1 oder 3 damit scharfstellung/nachtsich besser ist?
# xmpp-bridge
# build: --simulate_symbols
# gestoerter fernwartungs/ssh/https-zugang dedektieren (cvjm, adgio?)
# mkdir /home/bastian/android
# sudo mount -t tmpfs -o size=90% none /home/bastian/android
# cd /home/bastian/android
# wget https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
# tar xzf android-sdk*
# cd android-sdk-linux/
# export ANDROID_HOME=$(pwd)
# export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
# android list sdk -a | grep Build-tools
### newest = first line
# android update sdk -a -u -t "$newest"
# on 64bit-system:
### sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5
# ram: check if squashsize=64
# was macht: SQUASHFS_FRAGMENT_CACHE_SIZE = 3 ?
# TODO:
# zwickau
# wuschel-nachbar rausloeschen und umbenennen
# ralf/pension: 12345
# idee: messenger via email?
# umask 0000 - macht das sinn?
# router fotos: https://github.com/Moorviper/Freifunk-Router-Anleitungen/wiki
# idee: use 100.xx for special devices, e.g. roaming-master
# temp-sensor:
[68439.424084] usb 6-2: new low-speed USB device number 2 using uhci_hcd
[68439.601749] usb 6-2: New USB device found, idVendor=0c45, idProduct=7401
[68439.601760] usb 6-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[68439.601768] usb 6-2: Product: TEMPer2_M12_V1.0
[68439.601774] usb 6-2: Manufacturer: RDing
[68439.644162] hidraw: raw HID events driver (C) Jiri Kosina
[68439.684780] usbcore: registered new interface driver usbhid
[68439.684788] usbhid: USB HID core driver
[68439.706702] input: RDing TEMPer2_M12_V1.0 as /devices/pci0000:00/0000:00:1d.0/usb6/6-2/6-2:1.0/0003:0C45:7401.0001/input/input14
[68439.760690] hid-generic 0003:0C45:7401.0001: input,hidraw0: USB HID v1.10 Keyboard [RDing TEMPer2_M12_V1.0] on usb-0000:00:1d.0-2/input0
[68439.764418] hid-generic 0003:0C45:7401.0002: hiddev0,hidraw1: USB HID v1.10 Device [RDing TEMPer2_M12_V1.0] on usb-0000:00:1d.0-2/input1
# idee: hostapd-script? https://forum.ubuntuusers.de/topic/hostapd-wlan-ap-aufruf-eines-scripts-wenn-ein-/
# amazon dash button:
# e.g. sip-klingel (owsip?), huehnerklappe, radio, steckdose schalten
# http://blog.nemik.net/2015/08/dash-button-corral/
# mit dns-umleitung:
Mon Sep 26 15:43:07 CEST 2016 EVENT 2604: 'wlan1-1: new station 50:f5:da:e6:1d:51'
Mon Sep 26 15:43:07 CEST 2016 worker(5996) dev:wlan1-1 ch:5 MODE: new MAC: 50:f5:da:e6:1d:51 DASH-BUTTON: blocking it
Mon Sep 26 15:43:09 CEST 2016 worker(5996) dev:wlan1-1 ch:5 MODE: new MAC: 50:f5:da:e6:1d:51 - signal: '-3' border: '-73' try: 4
Mon Sep 26 15:43:09 CEST 2016 mac2ipv4(19) grabbed ip from arp: 50:f5:da:e6:1d:51 -> 100.66.19.9
Mon Sep 26 15:43:09 CEST 2016 worker(5996) dev:wlan1-1 ch:5 MODE: new MAC: 50:f5:da:e6:1d:51 - ip: '' signal: '-3' (is_good)
Mon Sep 26 15:43:09 CEST 2016 EVENT 2605: 'wlan1-1: del station 50:f5:da:e6:1d:51'
Mon Sep 26 15:43:09 CEST 2016 worker(5996) dev:wlan1-1 ch:5 MODE: del MAC: 50:f5:da:e6:1d:51 - alien: deleting route
Mon Sep 26 15:43:09 CEST 2016 DASH-BUTTON gone: 50:f5:da:e6:1d:51
mac=50:f5:da:e6:1d:51
$IPT -t mangle -I PREROUTING -p udp --dport 53 -m mac --mac-source $mac -j MARK --set-mark 0x15
$IPT -t mangle -I PREROUTING -p udp --dport 53 -m mac --mac-source $mac -j LOG --log-prefix "DASHdns: "
#
root@F36-stube:~ :) lr -f
Mon Sep 26 15:15:45 2016 daemon.info hostapd: wlan1-1: STA 50:f5:da:e6:1d:51 IEEE 802.11: authenticated
Mon Sep 26 15:15:46 2016 daemon.info hostapd: wlan1-1: STA 50:f5:da:e6:1d:51 IEEE 802.11: associated (aid 4)
Mon Sep 26 15:15:46 2016 daemon.info dnsmasq-dhcp[3002]: DHCPREQUEST(br-mastergate) 100.66.19.9 50:f5:da:e6:1d:51
Mon Sep 26 15:15:46 2016 daemon.info dnsmasq-dhcp[3002]: DHCPACK(br-mastergate) 100.66.19.9 50:f5:da:e6:1d:51
Mon Sep 26 15:15:46 2016 kern.warn kernel: [39979.775821] DASHdns: IN=br-mastergate OUT= MAC=02:ff:ff:ff:00:00:50:f5:da:e6:1d:51:08:00 SRC=100.66.19.9 DST=100.64.0.1 LEN=61 TOS=0x00 PREC=0x00 TTL=64 ID=3 PROTO=UDP SPT=54494 DPT=53 LEN=41
Mon Sep 26 15:15:46 2016 kern.warn kernel: [39979.793071] DASHdns: IN=br-mastergate OUT= MAC=02:ff:ff:ff:00:00:50:f5:da:e6:1d:51:08:00 SRC=100.66.19.9 DST=100.64.0.1 LEN=61 TOS=0x00 PREC=0x00 TTL=64 ID=4 PROTO=UDP SPT=54494 DPT=53 LEN=41
Mon Sep 26 15:15:46 2016 daemon.info kalua: /etc/dhcp-script.d/10dhc: dhcp_old() '50:f5:da:e6:1d:51' is from 'br-mastergate' = roaming-DEV HOST: unset
Mon Sep 26 15:15:46 2016 daemon.info kalua: /usr/sbin/cron.wireless_: iwevent() EVENT 2568: 'wlan1-1: new station 50:f5:da:e6:1d:51'
Mon Sep 26 15:15:46 2016 daemon.info kalua: /usr/sbin/cron.wireless_: iwevent() worker(5996) dev:wlan1-1 ch:5 MODE: new MAC: 50:f5:da:e6:1d:51 DASH-BUTTON: blocking it
Mon Sep 26 15:15:46 2016 kern.warn kernel: [39979.957136] DASHdns: IN=br-mastergate OUT= MAC=02:ff:ff:ff:00:00:50:f5:da:e6:1d:51:08:00 SRC=100.66.19.9 DST=100.64.0.1 LEN=69 TOS=0x00 PREC=0x00 TTL=64 ID=6 PROTO=UDP SPT=54494 DPT=53 LEN=49
Mon Sep 26 15:15:46 2016 daemon.alert kalua: /usr/sbin/cron.wireless_: unset_funcname() DASH-BUTTON: 50:f5:da:e6:1d:51
Mon Sep 26 15:15:46 2016 kern.warn kernel: [39980.457091] DASHdns: IN=br-mastergate OUT= MAC=02:ff:ff:ff:00:00:50:f5:da:e6:1d:51:08:00 SRC=100.66.19.9 DST=100.64.0.1 LEN=69 TOS=0x00 PREC=0x00 TTL=64 ID=7 PROTO=UDP SPT=54494 DPT=53 LEN=49
Mon Sep 26 15:15:47 2016 daemon.info kalua: /usr/sbin/cron.wireless_: iwevent() worker(5996) dev:wlan1-1 ch:5 MODE: new MAC: 50:f5:da:e6:1d:51 - signal: '-3' border: '-73' try: 4
Mon Sep 26 15:15:47 2016 daemon.info kalua: /usr/sbin/cron.wireless_: iwevent() mac2ipv4(19) grabbed ip from arp: 50:f5:da:e6:1d:51 -> 100.66.19.9
Mon Sep 26 15:15:47 2016 daemon.info kalua: /usr/sbin/cron.wireless_: net_ip_reachable() dev 'br-mastergate' simulating OK
Mon Sep 26 15:15:47 2016 daemon.info kalua: /usr/sbin/cron.wireless_: iwevent() worker(5996) dev:wlan1-1 ch:5 MODE: new MAC: 50:f5:da:e6:1d:51 - ip: '' signal: '-3' (is_good)
Mon Sep 26 15:09:41 2016 daemon.info dnsmasq-dhcp[1330]: DHCPDISCOVER(br-mastergate) 50:f5:da:e6:1d:51
Mon Sep 26 15:09:41 2016 daemon.info dnsmasq-dhcp[1330]: DHCPOFFER(br-mastergate) 100.66.19.9 50:f5:da:e6:1d:51
Mon Sep 26 15:09:41 2016 daemon.info dnsmasq-dhcp[1330]: DHCPREQUEST(br-mastergate) 100.66.19.9 50:f5:da:e6:1d:51
Mon Sep 26 15:09:41 2016 daemon.info dnsmasq-dhcp[1330]: DHCPACK(br-mastergate) 100.66.19.9 50:f5:da:e6:1d:51
Mon Sep 26 15:09:41 2016 daemon.info dnsmasq[1330]: 8 100.66.19.9/60318 query[A] time-c.nist.gov from 100.66.19.9
Mon Sep 26 15:09:41 2016 daemon.info dnsmasq[1330]: 8 100.66.19.9/60318 forwarded time-c.nist.gov to 8.8.8.8
Mon Sep 26 15:09:41 2016 daemon.info kalua: /usr/sbin/cron.wireless_: iwevent() EVENT 2540: 'wlan1-1: new station 50:f5:da:e6:1d:51'
Mon Sep 26 15:09:41 2016 daemon.info dnsmasq[1330]: 9 100.66.19.9/60318 query[A] time-c.nist.gov from 100.66.19.9
Mon Sep 26 15:09:41 2016 daemon.info dnsmasq[1330]: 9 100.66.19.9/60318 forwarded time-c.nist.gov to 8.8.8.8
Mon Sep 26 15:09:41 2016 daemon.info kalua: /etc/dhcp-script.d/10dhc: dhcp_old() '50:f5:da:e6:1d:51' is from 'br-mastergate' = roaming-DEV HOST: unset
Mon Sep 26 15:09:41 2016 daemon.info dnsmasq[1330]: 9 100.66.19.9/60318 reply time-c.nist.gov is 129.6.15.30
Mon Sep 26 15:09:41 2016 daemon.info kalua: /usr/sbin/cron.wireless_: iwevent() worker(5996) dev:wlan1-1 ch:5 MODE: new MAC: 50:f5:da:e6:1d:51 DASH-BUTTON: blocking it
Mon Sep 26 15:09:41 2016 daemon.alert kalua: /usr/sbin/cron.wireless_: unset_funcname() DASH-BUTTON: 50:f5:da:e6:1d:51
Mon Sep 26 15:09:41 2016 daemon.info dnsmasq[1330]: 10 100.66.19.9/60318 query[A] parker-gw-eu.amazon.com from 100.66.19.9
Mon Sep 26 15:09:41 2016 daemon.info dnsmasq[1330]: 10 100.66.19.9/60318 forwarded parker-gw-eu.amazon.com to 8.8.8.8
Mon Sep 26 15:09:41 2016 daemon.info dnsmasq[1330]: 10 100.66.19.9/60318 reply parker-gw-eu.amazon.com is 54.239.38.223
...und:
Sat Sep 24 21:55:24 2016 daemon.info hostapd: wlan1-1: STA 50:f5:da:e6:1d:51 IEEE 802.11: authenticated
Sat Sep 24 21:55:24 2016 daemon.info kalua: /usr/sbin/cron.wireless_: iwevent() DEBUG: wlan1-1 (phy #1): unknown event 60
Sat Sep 24 21:55:24 2016 daemon.info hostapd: wlan1-1: STA 50:f5:da:e6:1d:51 IEEE 802.11: associated (aid 7)
Sat Sep 24 21:55:24 2016 daemon.info kalua: /usr/sbin/cron.wireless_: iwevent() DEBUG: wlan1-1 (phy #1): unknown event 60
Sat Sep 24 21:55:24 2016 daemon.info kalua: /usr/sbin/cron.wireless_: iwevent() DEBUG: wlan1-1 (phy #1): unknown event 60
Sat Sep 24 21:55:24 2016 daemon.info kalua: /usr/sbin/cron.wireless_: iwevent() DEBUG: wlan1-1 (phy #1): unknown event 60
Sat Sep 24 21:55:24 2016 daemon.info kalua: /usr/sbin/cron.wireless_: iwevent() DEBUG: wlan1-1: new station 50:f5:da:e6:1d:51
Sat Sep 24 21:55:24 2016 daemon.info kalua: /usr/sbin/cron.wireless_: iwevent() EVENT 6089: 'wlan1-1: new station 50:f5:da:e6:1d:51'
Sat Sep 24 21:55:24 2016 daemon.info kalua: /usr/sbin/cron.wireless_: iwevent() worker(6002) dev:wlan1-1 ch:5 MODE: new MAC: 50:f5:da:e6:1d:51 - signal: '-36' border: '-73' try: 4
Sat Sep 24 21:55:24 2016 daemon.info kalua: /usr/sbin/cron.wireless_: iwevent() mac2ipv4(19) no match in arp for 50:f5:da:e6:1d:51
Sat Sep 24 21:55:25 2016 daemon.info kalua: /usr/sbin/cron.wireless_: iwevent() mac2ipv4(18) no match in arp for 50:f5:da:e6:1d:51
Sat Sep 24 21:55:27 2016 daemon.info kalua: /usr/sbin/cron.wireless_: iwevent() mac2ipv4(17) no match in arp for 50:f5:da:e6:1d:51
Sat Sep 24 21:55:27 2016 daemon.info dnsmasq-dhcp[6460]: DHCPDISCOVER(br-mastergate) 50:f5:da:e6:1d:51
Sat Sep 24 21:55:27 2016 daemon.info dnsmasq-dhcp[6460]: DHCPOFFER(br-mastergate) 100.66.19.9 50:f5:da:e6:1d:51
Sat Sep 24 21:55:27 2016 daemon.info dnsmasq-dhcp[6460]: DHCPDISCOVER(br-mastergate) 50:f5:da:e6:1d:51
Sat Sep 24 21:55:27 2016 daemon.info dnsmasq-dhcp[6460]: DHCPOFFER(br-mastergate) 100.66.19.9 50:f5:da:e6:1d:51
Sat Sep 24 21:55:27 2016 daemon.info dnsmasq-dhcp[6460]: DHCPDISCOVER(br-mastergate) 50:f5:da:e6:1d:51
Sat Sep 24 21:55:27 2016 daemon.info dnsmasq-dhcp[6460]: DHCPOFFER(br-mastergate) 100.66.19.9 50:f5:da:e6:1d:51
Sat Sep 24 21:55:27 2016 daemon.info dnsmasq-dhcp[6460]: DHCPREQUEST(br-mastergate) 100.66.19.9 50:f5:da:e6:1d:51
Sat Sep 24 21:55:27 2016 daemon.info dnsmasq-dhcp[6460]: DHCPACK(br-mastergate) 100.66.19.9 50:f5:da:e6:1d:51
Sat Sep 24 21:55:27 2016 daemon.info dnsmasq-dhcp[6460]: DHCPREQUEST(br-mastergate) 100.66.19.9 50:f5:da:e6:1d:51
Sat Sep 24 21:55:27 2016 daemon.info dnsmasq-dhcp[6460]: DHCPACK(br-mastergate) 100.66.19.9 50:f5:da:e6:1d:51
Sat Sep 24 21:55:27 2016 daemon.info dnsmasq-dhcp[6460]: DHCPREQUEST(br-mastergate) 100.66.19.9 50:f5:da:e6:1d:51
Sat Sep 24 21:55:27 2016 daemon.info dnsmasq-dhcp[6460]: DHCPACK(br-mastergate) 100.66.19.9 50:f5:da:e6:1d:51
Sat Sep 24 21:55:27 2016 daemon.info kalua: /etc/dhcp-script.d/10dhc: dhcp_add() '50:f5:da:e6:1d:51' is from 'br-mastergate' = roaming-DEV HOST: unset
Sat Sep 24 21:55:27 2016 daemon.debug kalua: /etc/dhcp-script.d/10dhc: net_ip2dev() try1: br-mastergate <- 100.66.19.9 0x1 0x2 50:f5:da:e6:1d:51 * br-mastergate
Sat Sep 24 21:55:27 2016 daemon.info kalua: /etc/dhcp-script.d/10dhc: weblogin_login_check() [OK] auth: existing /tmp/FREE
Sat Sep 24 21:55:27 2016 daemon.info kalua: /etc/dhcp-script.d/10dhc: F36-stube_dhcp-add() [OK] _weblogin login_check 50:f5:da:e6:1d:51
Sat Sep 24 21:55:27 2016 daemon.info kalua: /etc/dhcp-script.d/10dhc: netfilter_user_add() mac: 50:f5:da:e6:1d:51 ip: 100.66.19.9
Sat Sep 24 21:55:27 2016 daemon.info kalua: /etc/dhcp-script.d/10dhc: dhcp_old() '50:f5:da:e6:1d:51' is from 'br-mastergate' = roaming-DEV HOST: unset
Sat Sep 24 21:55:27 2016 daemon.info kalua: /etc/dhcp-script.d/10dhc: dhcp_old() '50:f5:da:e6:1d:51' is from 'br-mastergate' = roaming-DEV HOST: unset
Sat Sep 24 21:55:28 2016 daemon.info kalua: /usr/sbin/cron.wireless_: iwevent() mac2ipv4(16) grabbed ip from arp: 50:f5:da:e6:1d:51 -> 100.66.19.9
Sat Sep 24 21:55:28 2016 daemon.info kalua: /usr/sbin/cron.wireless_: net_ip_reachable() dev 'br-mastergate' simulating OK
Sat Sep 24 21:55:28 2016 daemon.info kalua: /usr/sbin/cron.wireless_: iwevent() worker(6002) dev:wlan1-1 ch:5 MODE: new MAC: 50:f5:da:e6:1d:51 - ip: '' signal: '-36' (is_good)
Sat Sep 24 21:55:47 2016 daemon.info kalua: /usr/sbin/cron.wireless_: iwevent() DEBUG: wlan1-1 (phy #1): unknown event 60
Sat Sep 24 21:55:47 2016 daemon.info kalua: /usr/sbin/cron.wireless_: iwevent() DEBUG: wlan1-1 (phy #1): unknown event 60
Sat Sep 24 21:55:47 2016 daemon.info kalua: /usr/sbin/cron.wireless_: iwevent() DEBUG: wlan1-1 (phy #1): unknown event 60
Sat Sep 24 21:55:48 2016 daemon.info kalua: /usr/sbin/cron.wireless_: iwevent() DEBUG: wlan1-1 (phy #1): unknown event 60
Sat Sep 24 21:55:57 2016 daemon.info kalua: /usr/sbin/cron.wireless_: iwevent() DEBUG: wlan1-1 (phy #1): unknown event 60
Sat Sep 24 21:55:57 2016 daemon.info kalua: /usr/sbin/cron.wireless_: iwevent() DEBUG: wlan1-1 (phy #1): unknown event 60
Sat Sep 24 21:55:57 2016 daemon.info kalua: /usr/sbin/cron.wireless_: iwevent() DEBUG: wlan1-1 (phy #1): unknown event 60
Sep 24 04:09:52 ' [up 25s 107384832 bytes free] /etc/rc.common [daemon.alert] ipt() rc: 2 iptables --wait -t mangle -A alien -s / -j RETURN
Sep 24 04:09:55 ' [up 28s 107253760 bytes free] /etc/rc.common [daemon.alert] ipt() rc: 2 iptables --wait -t mangle -A picopeer -s 172.16.0.0/12 -d / -j ACCEPT
Sep 24 04:09:56 ' [up 28s 107200512 bytes free] /etc/rc.common [daemon.alert] ipt() rc: 2 iptables --wait -t mangle -A picopeer -s 192.168.0.0/16 -d / -j ACCEPT
Sep 24 04:09:56 ' [up 28s 107663360 bytes free] /etc/rc.common [daemon.alert] ipt() rc: 2 iptables --wait -t mangle -A picopeer -s 10.0.0.0/8 -d / -j ACCEPT
Sep 24 04:09:56 ' [up 29s 107606016 bytes free] /etc/rc.common [daemon.alert] ipt() rc: 2 iptables --wait -t mangle -A picopeer -s 169.254.0.0/16 -d / -j ACCEPT
Sep 24 04:09:57 ' [up 29s 107806720 bytes free] /etc/rc.common [daemon.alert] ipt() rc: 2 iptables --wait -t mangle -A picopeer -s 127.0.0.0/8 -d / -j ACCEPT
Sep 24 04:09:57 ' [up 29s 107630592 bytes free] /etc/rc.common [daemon.alert] ipt() rc: 2 iptables --wait -t mangle -A picopeer -s / -d 172.16.0.0/12 -j ACCEPT
Sep 24 04:09:57 ' [up 29s 107347968 bytes free] /etc/rc.common [daemon.alert] ipt() rc: 2 iptables --wait -t mangle -A picopeer -s / -d 192.168.0.0/16 -j ACCEPT
Sep 24 04:09:57 ' [up 30s 108036096 bytes free] /etc/rc.common [daemon.alert] ipt() rc: 2 iptables --wait -t mangle -A picopeer -s / -d 10.0.0.0/8 -j ACCEPT
Sep 24 04:09:58 ' [up 30s 108011520 bytes free] /etc/rc.common [daemon.alert] ipt() rc: 2 iptables --wait -t mangle -A picopeer -s / -d 169.254.0.0/16 -j ACCEPT
Sep 24 04:09:58 ' [up 30s 107499520 bytes free] /etc/rc.common [daemon.alert] ipt() rc: 2 iptables --wait -t mangle -A picopeer -s / -d 127.0.0.0/8 -j ACCEPT
Sep 24 04:09:58 ' [up 30s 107917312 bytes free] /etc/rc.common [daemon.alert] ipt() rc: 2 iptables --wait -t mangle -A picopeer -s / -d / -j ACCEPT
# txpower-reduce: do it regulary (+/- 1mW) till we have a good compromise
# crash: chmod -> umask oder tmpfs anders mounten?
-> overrride: txreduce wird beim nochmaligen ausfuehren ueberschrieben...
# cgi-bin-status: show chanbw [MHz]
# cgi-bin-status: minstrel -> javascript -> aufklappen
# cgi-bin-status: txpwr
# dhcp-script: use DNSMASQ_LEASE_EXPIRES or DNSMASQ_TIME_REMAINING ?
###### br-mastergate / arping -> bad idea? (think of 2 ip's)
# nicht mehr noetig? df | grep '/database'$ | wc -l -> muss 1 sein
# nslookup "mac-1st-3-bytes" oui.myserver.net ->
# check_ap: check internet (only till it runs)
# DNS: add roaming-IPs
# giancarlo:
# image-autoload-problem / 'embedded credentials'
# https://code.google.com/archive/p/url-embedded-auth/
# https://bugs.chromium.org/p/chromium/issues/detail?id=123150
# https://bugs.chromium.org/p/chromium/issues/detail?id=308999
# https://bugs.chromium.org/p/chromium/issues/detail?id=585109
# workaround bei browser-startup:
# alle bilder einmal aufrufen:
# http://root:fm1204@10.10.5.158/dms?nowprofileid=2&t=1475222434683
# idee: cgi-script, was einfach: e.g. 158 per wget holt und durchreicht?
user:
cd /var/www/camserver && ./webcam-giancarlo.sh
debug:
tail -f /tmp/mylog.txt
user:
export DISPLAY=:0
chromium-browser http://127.0.0.1/camserver
user:
export DISPLAY=:0
ID="$( xdotool search --onlyvisible --name Chromium )"
xdotool windowfocus "$ID"
xdotool key F11
wartung:
x11vnc
# videoserver: http://192.168.2.200:10080
iptables -t nat -I PREROUTING -i eth0.3 -p tcp --dport 10080 -j DNAT --to-destination 10.10.5.237:80
iptables -t nat -I POSTROUTING -s 192.168.2.0/24 -j MASQUERADE
# cam 140: ID=140
iptables -t nat -I PREROUTING -i eth0.3 -p tcp --dport 20$ID -j DNAT --to-destination 10.10.5.$ID:80
#### angebot wegen datenverkehr ueber server + 25 Euro
# broschueren: abgerechnet oder nicht gewuenscht?
# aufnahmen abrufen
# aufnahmen vom internet aus
# /proc/net/arp -> always supress 1st line?
# robots.txt: -> keep formatting
# Witi: / LEDE: -> ethernet?
[ 204.660000] ------------[ cut here ]------------
[ 204.660000] WARNING: CPU: 0 PID: 6213 at /home/bastian/ledebot/lede/source/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7621/mt76-2016-08-25/mt76x2_mac.c:295 mt76x2_irq_handler+0x460/0x874 [mt76x2e]()
[ 204.660000] Modules linked in: zram zsmalloc iptable_nat nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_recent xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_id xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_NETMAP xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack macvlan iptable_raw iptable_mangle iptable_filter ipt_ECN ip_tables em_cmp sch_teql em_nbyte sch_tbf sch_dsmark sch_pie sch_codel sch_gred sch_htb cls_basic act_ipt sch_red sch_prio em_meta act_police em_text sch_sfq sch_fq act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_hfsc sch_ingress mt7603e mt76x2e mt76 mac80211 cfg80211 compat ledtrig_usbdev ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables ifb ipip tunnel4 ip_tunnel tun lz4_decompress lz4_compress usb_storage leds_gpio xhci_mtk xhci_plat_hcd xhci_pci xhci_hcd scsi_mod gpio_button_hotplug mbcache usbcore nls_base usb_common crypto_hash [last unloaded: sd_mod]
[ 204.660000] CPU: 0 PID: 6213 Comm: netifd Not tainted 4.4.21 #0
[ 204.660000] Stack : 00000000 00000000 804b6862 00000033 00000000 00000000 80460000 804d0000
[ 204.660000] 8eb1bf10 80459c83 803d7f6c 00000000 00001845 804b367c 0000a6a9 0000000a
[ 204.660000] 00000018 80063ce0 80460000 804d0000 8045e198 8045e19c 803dc880 8eb33cd4
[ 204.660000] 00000003 80061a2c 0000a6a9 0000000a 00000018 00000000 00000000 00b33cd4
[ 204.660000] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 204.660000] ...
[ 204.660000] Call Trace:
[ 204.660000] [<80016684>] show_stack+0x50/0x84
[ 204.660000] [<801adc70>] dump_stack+0x84/0xbc
[ 204.660000] [<8002bee8>] warn_slowpath_common+0xa0/0xd0
[ 204.660000] [<8002bfa0>] warn_slowpath_null+0x18/0x24
[ 204.660000] [<8f093508>] mt76x2_irq_handler+0x460/0x874 [mt76x2e]
[ 204.660000]
[ 204.670000] ---[ end trace 9565c59a77c6385b ]---
# ipsystem -> 100.64.x.x -> nodenumber
# monitoring: timelog for each cron-cycle
# mem: temporary end some daemons e.g. httpd during monitoring?
# bei bootup sonnenauf- und untergangszeit berechnen
# TODO: unload all USB if USB not used?
# cron.monitoring: safe mem!
# webcam -> _webcam + check if ramdisc full
# support for metadata_locationname -> uci
# autoalarmierung wenn viele versuchen mit falschem pass?
# gui: knopf: freischalten!
# send to authserver/monitoring: empty-gateway (once a day?) + monitoring
# - _monitoring_count_empty_gateway [min]
# how to unset $CLASS -> _$CLASS_unset() -> _ unload $CLASS
# show_traffic: detect iface change
# stall2: d8:5d:4c:d5:0b:56
# build: bin/targets/ar71xx/generic/lede-ar71xx-generic-tl-wr1043nd-v1-squashfs-sysupgrade.bin
# tobias kunze: -> 1mbit drosseln
# ina: 360
# manfred krause AB
# aufteilung fahrstuhl
# aufteilung spuelung
# aufteilung schrott?
# SCC: autobotsrap openwrt/lede
#
mkdir -p /home/bastian/ledebot
sudo mount -t tmpfs -o size=90% none "/home/bastian/ledebot"
cd /home/bastian/ledebot
# ... /tmp/apply_profile.code.definitions
# server() { echo "bwireless.mooo.com"; }
# scp -P 222 $( server ):Desktop/bittorf_wireless/programmierung/apply_profile.code.definitions /tmp
# mkdir -p /home/bastian/openwrt_dl
# wget https://raw.githubusercontent.com/bittorf/kalua/master/openwrt-build/build.sh
# sh build.sh --openwrt lede --download_pool /home/bastian/openwrt_dl
# cd source
# git config user.email 'bb|npl.de'; git config user.name 'X Y'
# stoerungsmail: link mit hardware-bild auf monitoring-server sammeln
# stoerungsmail: erklaerung warum ausfall passiert war/sein kann
# stoerungsmail: moeglichkeit zum abmelden per link
# scheduler: log when high-load, but we execute
# zombie-killer more often
# sms reschedule: senden, wenn es dann geht (e.g. grad kein internet)
# testen!
# in entstoermeldung: prozentuale verfuegbarkeit angeben (z.b. 95%)
#### monitoring: ibfleesensee (passwords!)
#### wifi-toggle: logic error + more generic + each min
#### system_uptime() rewrite -> 0sec ?
#### WIFISCAN->sanitize SSID?
# ejbw: testdownload after each ifup pppoe:
# wget -O /dev/null http://intercity-vpn.de/testdata_100mb.bin
# email if slow
# NAS: automount + autoloop
# telegram:
# - reply-to: korrekt?
# - detect ausfall zentralrouter?
# - nodenumber reinschreiben
# - hinweis auf: geht nicht bei neustart? antworten!
# - link fuer "abmelden".
# - link zum hardware-foto? oder gar installationsfoto?
# - wiederOK: waren viele betroffen? -> evtl. nur zusammenfassende mail schreiben?
[35477.669516] FAT-fs (sda1): error, fat_get_cluster: invalid cluster chain (i_pos 92499861)
[35477.677870] FAT-fs (sda1): error, fat_get_cluster: invalid cluster chain (i_pos 92499861)
[35477.686645] FAT-fs (sda1): error, fat_get_cluster: invalid cluster chain (i_pos 92499861)
[35477.695401] FAT-fs (sda1): error, fat_get_cluster: invalid cluster chain (i_pos 92499861)
[35477.703878] FAT-fs (sda1): error, fat_get_cluster: invalid cluster chain (i_pos 92499861)
-> /proc/mounts
/dev/sda1 /database vfat ro,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0
dosfsck -a /dev/sda1
# telegram: replto = admin/1st mail
# track_ap() no_conn > 60 sec -> scan
# track_ap() min/max + fix no_conn
# track_ap() store all hostnames from monitoring
# kalua: auto-bootstrap-oneliner
# kalua: support for user-only? (e.g. compile farm)
# store called functions and be able to 'unload all'
# extrawatt: kein OLSR auf tap! (mobilfunk)
# rose: autokick after 3g
stopwatch_stop() timefile '/tmp/STOPWATCH_tmpCRON_LASTCALL'... not found - abort
# switch: 'TP-LINK TL-WR841N/ND v9'
# tarball ohne /etc/init.d fuer server?
# roaming: bad arping? -> IWLOG
# roaming: DHCP: jede new MUSS gemeldet werden
# loader: $HOME -> abhaenig von loader-user?
# scp root@10.63.195.161:/tmp/kalua/storage/sda1_3.6T/Ame_und_Yuki_die_Wolfskinder.avi .
# rsync --partial --progress --rsh=ssh Ame_und_Yuki_die_Wolfskinder.avi root@10.63.195.161:/tmp/kalua/storage/sda1_3.6T/Ame_und_Yuki_die_Wolfskinder.avi
# ip a a 10.20.56.242/27 dev $LANDEV -> 10.20.56.240
# GNM/bigbrother
# - was ist plymouthd?
# - angebot: wartung
# - mail: technische bedingungen fuer email versand
# - axis -> videos anschauen im windows-browser
# - beispieldatei
# - vlc -> welche version
# - kamera neustart ohne file?
# vlc -> welche version
# changelog: axis -> haengende kameras?
#
# stelzer -> technik@
# info@ auf dombert umstellen
# neue IP (im laufenden betrieb, also erst ALIEN und dann native:
# am besten zentral alte IP loeschen? neue melden?
Wed Jul 6 17:48:22 2016 daemon.info dnsmasq-dhcp[3891]: DHCPREQUEST(br-mastergate) 100.66.19.249 00:1e:65:94:22:52
Wed Jul 6 17:48:22 2016 daemon.info dnsmasq-dhcp[3891]: DHCPNAK(br-mastergate) 100.66.19.249 00:1e:65:94:22:52 address not available
Wed Jul 6 17:48:25 2016 daemon.info dnsmasq-dhcp[3891]: DHCPDISCOVER(br-mastergate) 00:1e:65:94:22:52
Wed Jul 6 17:48:25 2016 daemon.info dnsmasq-dhcp[3891]: DHCPOFFER(br-mastergate) 100.67.231.249 00:1e:65:94:22:52
Wed Jul 6 17:48:25 2016 daemon.info dnsmasq-dhcp[3891]: DHCPDISCOVER(br-mastergate) 00:1e:65:94:22:52
Wed Jul 6 17:48:25 2016 daemon.info dnsmasq-dhcp[3891]: DHCPOFFER(br-mastergate) 100.67.231.249 00:1e:65:94:22:52
Wed Jul 6 17:48:25 2016 daemon.info dnsmasq-dhcp[3891]: DHCPREQUEST(br-mastergate) 100.67.231.249 00:1e:65:94:22:52
Wed Jul 6 17:48:25 2016 daemon.info dnsmasq-dhcp[3891]: DHCPACK(br-mastergate) 100.67.231.249 00:1e:65:94:22:52 X301-II
Wed Jul 6 17:48:25 2016 daemon.info kalua: /etc/dhcp-script.d/10dhc: dhcp_add() '00:1e:65:94:22:52' is from 'br-mastergate' = roaming-DEV HOST: X301-II
Wed Jul 6 17:48:25 2016 daemon.info kalua: /etc/dhcp-script.d/10dhc: weblogin_login_check() [OK] auth: existing /tmp/vds_user_00:1e:65:94:22:52
Wed Jul 6 17:48:25 2016 daemon.info kalua: /etc/dhcp-script.d/10dhc: F36-regina_dhcp-add() [OK] _weblogin login_check 00:1e:65:94:22:52
Wed Jul 6 17:48:25 2016 daemon.info kalua: /etc/dhcp-script.d/10dhc: netfilter_user_reachable() arping -D -c1 -f -I 'br-mastergate' '100.67.231.249'
Wed Jul 6 17:48:26 2016 daemon.info kalua: /etc/dhcp-script.d/10dhc: netfilter_user_add() mac: 00:1e:65:94:22:52 ip: 100.67.231.249
Wed Jul 6 17:48:42 2016 authpriv.info dropbear[27654]: Child connection from fe80::21e:65ff:fe94:2252%br-mastergate:36203
Wed Jul 6 17:48:46 2016 authpriv.notice dropbear[27654]: Password auth succeeded for 'root' from fe80::21e:65ff:fe94:2252%br-mastergate:36203
# repair: sms77-api-code-detection: e.g. 500 is never reached (wget is ok)
# cd /proc && cat cpuinfo meminfo stat interrupts diskstats slabinfo >> schedstat buddyinfo >/dev/random
# add wifi-calibration-partition
# hauptstr.5/ratenz.
# auto-scp: /www/keep/station_stats.txt
# mac toucan: 00:24:1d:11:76:4e
# deps: arping -> debian
# cron.webcam -> /dev/video0 missing -> reboot??? or rewrite with hotplug? -> include usbreset?
# sunrise/sunset:
# http://www.sonnenuntergang-zeit.de/sonnenuntergang:weimar-1:heute.html
# http://www.risacher.org/sunwait/
# https://www.roaringpenguin.com/wiki/index.php/Remind
# http://unix.stackexchange.com/questions/2931/sunrise-and-other-astronomical-data-from-the-command-line
# http://www.esrl.noaa.gov/gmd/grad/solcalc/
# https://github.com/mourner/suncalc
# http://stackoverflow.com/questions/704088/how-can-i-compute-sunrise-sunset-times/704112#704112
# awk -v winkel=30 'BEGIN { printf("%10.3f\n", sin(winkel * 3.14 / 180))}'
#
# 29.juni2016
# soll: 21.33 = Sonnenuntergang -> 21.33 + 30 = 22.03 = close?
# soll: 5.04 = Sonnenaufgang -> 5.04 + 40 = 5.44 = open?
# monitoring: reactivate/harden WIFISCAN-inclusion
# vpn-master: prevent up+down of the same interface at the same time?!
# telegram: do not send if also belong to subnetwork (extrawatt -> listz28)
# build_network_clients() writing client list -> needed? -> roaming?
# wwan: geolocation: include scan
# how to preserve: already set (correct) gps?
# monitoring: telegram: stoerung -> OK -> war von...bis
# audioplayer: test buffer
# scp "$PERMDIR/station_stats.txt" root@intercity-vpn.de:/var/www/networks/ewerk/media/station_stats.$NODENUMBER.$HOSTNAME.txt
# grep ^'del station ' "$PERMDIR/station_stats.txt"| cut -d' ' -f3| sort | uniq | wc -l
# mp3-player: store over reboot + autoplay
# rrd: upload not "uci get system.@vds[0].server" but $NETWORK
# cgi-bin-status.sh: show tx-power per interface
# cgi-bin-status.sh: show position map
# FIX! mcast-rate-check in cron.monitoring
# ssh-known-hosts: nur IP's und nur auf authserver/inetoffer einspielen
# idee: wenn DHCP_NEW -> kein arping noeting fuer roaming?
# vpn-server: debug: connection denied:
# tcpdump -n -i venet0 host 93.128.149.176 and port 5001 -s 1500 -A
# solarrouter: per photodiode/relais nachts ausschalten
# rose-router: 1h
# kein 0/0? alter nexthop: anfragen ob 0.0.0.0? -> schoeneck
# sanitizer: email
# idee: ifup $DEV -> arp_reset $DEV ---> or unneeded?
# db_backup: autouse usb-stick, e.g. /tmp/kalua/storage/sda1_3.7G/db_backup.tgz
# (and move old backup to new location)
# kellergeist: NAT?
# speedtest: http://cdimage.debian.org/debian-cd/8.4.0/amd64/iso-cd/
# FIX!: _vpn_hideandseek_user_add
# kernel: before del station, write stats to "sysfs/$filxy"
# linux: event: pre-disassoc: (for stats)
# telegram: expliziter hinweis: wenn inet-offer-node: es kann auch der ISP sein und besondere Obacht!
# telegram: verhindern das mehr als X nachrichten fuer 1 netz verschickt werden
# man kann scheduler aus dem tritt bringen mit:
# echo >>$SCHEDULER "_weblogin authserver_message '$funcname() '${option:-inet_broken}' after $age"
# also ein ' zuviel/zuwenig
# -> dieser part muss geloescht werden, so kann es nicht so schnell nochmal passieren
# ewerk: 814+799: /etc/rc.local: iptables -I INPUT -p udp --dport 698 -s 10.63.93.189 -j DROP
# roaming-testing-mode:
# touch /www/roaming_OK_$IDX
# SSID + $NODENUMBER$IDX -> connect -> internet? OK forever
# - hat den vorteil: man kann jeden einzelnen router durchtesten und er joint denn sofort dem normalen netz?
# vpn-server: monitoring: als einspeiser markieren
# vpn-server untereinander: kein tunnel aber OLSR2-dualstack?
# recode UTF-8..Latin-1 | a2ps --pretty-print=mail # TODO: strip HTML -> pipe to muttprint.sh
# fix dropbear bug: (in 2016.71) auf 222
root@EG-bastianHQ:~ ssh [fe80::f6ec:38ff:fefd:74b4%$LANDEV]
Bus error
# does not work for sysupgrade!
# uci add system profile; uci set system.@profile[-1].name='liszt28_hybrid'; uci set system.@profile[-1].nodenumber='2'
# net_track_ap: detect band-roam on same AP
# e.g.
# 12:6f:3f:0e:31:8f ch40/-67 : EG-superbuffi76 (9min 56sec)
# 12:6f:3f:0e:31:8e ch5/-59 : EG-superbuffi76 (6min 35sec)
# test if all '_log it' calls have enough args
# fix sensortype for:
root@1043erLTE:~ echo | nc 192.168.0.167 22
SSH-2.0-dropbear_0.43
# mail von 0 bytes: /tmp/USERDB_COPY.cgi.gz
# mail: jakob: namen
# rechnung 200 euro witi-board
# sipgate: 10 euro vom 6.april ausdrcuekn
# abrechnung portugal:
# 4 x Ticket Studentenparty 42,95 euro
# 450 an bluse
# 200 an bernd? + flug + ice-nach-berlin
# hinticket an bernd
# count last successful client traffic on each router and show in monitoring
# https://cccfr.de/wiki/freifunk:verueckte_ideen_und_unbeantwortete_fragen#geo_ueber_nachbarnodes_checkeln
# status.sh: support for LinkMult default / per interface
# pmu-update: email an admins
### l3-roamingd: aktives loeschen der route auf letztem AP
# Monitoring.txt for ultra-low-inet
# show big dirs: ls -1 | while read D; do test -d "$D" && du -sh "$D"; done | grep "[0-9][0-9]M"
# monitoring: telegram: use 'Seepark Bansin' instead of 'spbansin'
# DNT/frenze/ralf: minimail -> adresse
# seen with r49161 that 'iw event' is running, but does not see the new client
# (but in logread i see assoc):
Thu May 12 21:21:04 2016 daemon.info hostapd: wlan0-1: STA 00:21:6a:32:7c:1c IEEE 802.11: authenticated
Thu May 12 21:21:04 2016 daemon.info hostapd: wlan0-1: STA 00:21:6a:32:7c:1c IEEE 802.11: associated (aid 2)
Thu May 12 21:21:41 2016 authpriv.info dropbear[31872]: Child connection from fe80::221:6aff:fe32:7c1c%br-mastergate:34066
# HOSTNAME differs from monitoring? autotake monitoring name...
# init: never touch txpower/beacon_int in roaming mode
# extrawatt: automatische pruefung ob 1 geraet pro installation erreichbar (jede stunde?)
# VHS: ffweimar: wifi-dhcp-range
# /usr/sbin/cron.build_netjson.sh -> do not hardcode curl, use _curl it
# ewerk: disable wan-olsr on inet-offer
# 4900er mac-fix: disable for newer firmwares
# _net_show_traffic: short timestamps
# 10.63.249.166 = MUCZ-ANB-084 = 8c:73:6e:0a:99:3a
# 10.63.249.172 = Goethe-Event700 = 00:e0:db:0f:7e:2c
# mail: golle: benutzerverwaltung
# mail: julius: remote-luci2
# Router gibt TX-power vor?! Bahn-WLAN:
# kernel: wlan0: Limiting TX power to 20 (20 - 0) dBm as advertised by 06:90:e8:38:21:04
# 802.11d?
# http://marc.info/?l=linux-wireless&m=142781402222281&w=2
# WITI-board: autostart mac-address-script on first boot
# HNCP deploy + olsrd2
# iptables --quota for exact cut of user
# callbacks to ubus from hostapd for active reduce/omit proberesponse messages
# -> decentralized roaming-controller
# apply to trunk: https://github.com/thuehn/RegMon
# +powercontrol
# net_inet_seems_valid: dns + wget --bind-interface + https? + ping? + traceroute? -> hna4-offer
# spbansin: haus1/knoten2: 192.168.1.20 ping?!
# wartungsmodus? ->raise TXpower + message to master
# roam: active kick of mac at last known router
# roam: better concept for distributed DB:
# - all add/del-events broadcast to all my neighs + master
# - all routers ask master/x.x.x.x if they do not know the IP
# - cgi-bin-roaming.sh
# db-format:
# timestamp_written_to_db mac lastnode ip4,times_out_at ip6,times_out_at
# wagenplatz: 10.63.235.33 sendet leer an cgi-bin-sql.sh?
# split 0.0.0.0/0 into 0.0.0.0/1 and 128.0.0.0/1?
# spbansin: knopfdruck: SSID-aenderung? + zwangsseite mit systeminfos?
SSH_CONNECTION=100.66.45.61 50938 100.64.0.1 22
TZ=CET-1CEST-2,M3.5.0/02:00:00,M10.5.0/03:00:00
SSH_CLIENT='fe80::21e:65ff:fe94:2252%br-mastergate 51066 22'
SSH_CONNECTION='fe80::21e:65ff:fe94:2252%br-mastergate 51066 fe80::ff:ffff:feff:0%br-mastergate 22'
root@F36-drucker-NEU:~ _net ip2mac 100.66.45.61
00:21:6a:32:7c:1c
root@F36-drucker-NEU:~ iw dev wlan0 station get 00:21:6a:32:7c:1c
command failed: No such file or directory (-2)
root@F36-drucker-NEU:~ iw dev wlan0-1 station get 00:21:6a:32:7c:1c
Station 00:21:6a:32:7c:1c (on wlan0-1)
inactive time: 0 ms
rx bytes: 6994122
rx packets: 52208
tx bytes: 58676522
tx packets: 67069
tx retries: 11480
tx failed: 70
signal: -51 [-56, -55, -57] dBm
signal avg: -51 [-54, -55, -56] dBm
tx bitrate: 52.0 MBit/s MCS 11
rx bitrate: 117.0 MBit/s MCS 14
expected throughput: 28.14Mbps
authorized: yes
authenticated: yes
preamble: short
WMM/WME: yes
MFP: no
TDLS peer: no
connected time: 10633 seconds
# https://github.com/koalaman/shellcheck/pull/594#
# 5000 netto -> MAIL + post
# 4000 netto wettermail
# 2 x ueberweisung boltenahgen + sms77
# vpn-server: cgi-bin-sql.sh wird gerufen von _weblogin, fehlt aber.
# override_uci_vars kann wegen rc.common nicht ausgefuehrt werden.
# dualradio: only restart roaming-listener after last client if *all* ap-devs are empty
# hotplug -> IMEI -> correct settings
# extrawatt: kromsdorf: keine SMS?
# wuschel: 2nd netz? e.g. 'freifunk ($hostname)'
# falsche reihenfolge, RRD haut nicht hin:
root@EG-flurDSL-MESH:~ iptables -nxvL FORWARD
Chain FORWARD (policy ACCEPT 388095 packets, 246324393 bytes)
pkts bytes target prot opt in out source destination
470509 26415584 TCPMSS tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp flags:0x06/0x02 TCPMSS clamp to PMTU
10937424 13211795494 all -- eth0.2 * 0.0.0.0/0 0.0.0.0/0
6705076 1866794696 all -- * eth0.2 0.0.0.0/0 0.0.0.0/0
# WPA2-anonymous: http://blog.vandestreek.net/post/95438706640/playing-with-wpa2-enterprise-using-openwrt-and
# marinabh: 6mbit mcast?
# ibfl: auf dem USB-stick gibt es 2 mal DB:
# $DIR_DATABASE/USER/profile/id1_counterA (korrekt)
# /tmp/kalua/storage/sda1_3.7G/DB/USER/profile/id1_counterA
# /tmp/kalua/storage/sda1_3.7G/database/DB/USER/profile/id1_counterA
# roaming: kann anderes nicht erreichen, weil laptop zu grosse netzmaske hat:
# 100.66.19.64/10 = laptop
# ziel = 100.65.4.28 auf router 100.64.4.1
# geht nicht!
#
# ergo: laptop hat nur 24er-maske und route zu 100.64.0.1 ?
# resolv.conf -> SMS once
# roaming: new: check where was the last AP, at remove host route there
# roaming: host route set? -> inactive time >50 sec? kick!
# on dualradio: shift down txpower of 2.4ghz, raise 5ghz
# use declaration in HTTP-Header AND in document:
# https://www.w3.org/International/questions/qa-html-encoding-declarations.en
# test: https://validator.w3.org/i18n-checker/
# test: https://gtmetrix.com/
# cgi-script: <html lang='de'>
# http://bwireless.mooo.com/cgi-bin-status.sh
# wifi-assoc-liste in owm-api
# free-country-flags.com ?
# DNS much better in DSCP?
# use mtd-rw kernelmodule for updating bootloaders
# mac80211 enforce band steering
# https://documentation.meraki.com/MR/Radio_Settings/Band_Steering_Overview
# wenn client auf 5ghz wechselt, dann 2.4ghz verbieten?
# read: hostapd "IP ROAMING" / Inter Access Point Protocol (IAPP) / 802.11f
# http://resin.csoft.net/cgi-bin/man.cgi?section=5&topic=hostapd.conf
# https://dev.openwrt.org/ticket/18021
# VPN-server: disable tap598
# autobootup: portfw: see net: keyword: 10.63.88.186
# new uci-var: ???
# netjson: vis: http://emptypipes.org/2015/02/15/selectable-force-directed-graph/
# show in monitoring:
# cat /etc/openwrt_release
# ...
# DISTRIB_CODENAME='chaos_calmer'
# DISTRIB_CODENAME='designated_driver'
# zsun:
# =====
# download on PC into /tmp
# openwrt-ar71xx-generic-zsun-sdreader-rootfs-squashfs.bin
# openwrt-ar71xx-generic-zsun-sdreader-kernel.bin
#
# on PC
# dnsmasq --port 0 --enable-tftp --tftp-root=/tmp
#
# on ZSUN:
# cd /tmp
# tftp -g 10.168.168.100 -r openwrt-ar71xx-generic-zsun-sdreader-kernel.bin
# tftp -g 10.168.168.100 -r openwrt-ar71xx-generic-zsun-sdreader-rootfs-squashfs.bin
# cat /proc/mtd
#!/bin/sh
# nohup() { test -t 0 && exec 0>/dev/null; test -t 1 && { exec 1>nohup.out || exec 1>nohup.out; }; test -t 2 && exec 2>&1; trap : HUP; }
# for F in /proc/[0-9]*; do PID=${F##*/}; case "$(cat $F/cmdline)" in ''|*telnetd|*wifi_daemon|*sh|*115200|init);;*)kill $PID;; esac; done
#
# mtd_write write openwrt-ar71xx-generic-zsun-sdreader-kernel.bin /dev/mtd3
# mtd_write write openwrt-ar71xx-generic-zsun-sdreader-rootfs-squashfs.bin /dev/mtd2
PID Uid VmSize Stat Command
1 root 180 S init
2 root SW< [kthreadd]
3 root SW< [ksoftirqd/0]
4 root SW< [events/0]
5 root SW< [khelper]
8 root SW< [async/mgr]
56 root SW< [kblockd/0]
65 root SW< [khubd]
84 root SW [pdflush]
85 root SW [pdflush]
86 root SW< [kswapd0]
90 root SW< [crypto/0]
120 root SW< [mtdblockd]
151 root SWN [jffs2_gcd_mtd2]
356 root 140 S /usr/sbin/telnetd
483 root 296 S /sbin/wifi_daemon
489 root Z [sh]
2015 root 320 S -sh
3078 root 208 S /sbin/getty ttyS0 115200
3093 root 196 R ps
# seems that cron.eval... has a race with /database?
# detect context and forget net_reachable during normal operation
# bootup + no ethernet? -> generate on the fly ethernet section
# db_backup + db_restore: override names via uci or autodetect
loop?:
Mon Apr 4 21:59:37 CEST 2016 ignoring 'regulatory domain change: set to US by a user request' - touch '/tmp/kalua/IWLOOP_RESPECT_REGSET' for this
Mon Apr 4 21:59:37 CEST 2016 ignoring 'regulatory domain change: set to world roaming by a user request' - touch '/tmp/kalua/IWLOOP_RESPECT_REGSET' for this
Mon Apr 4 21:59:37 CEST 2016 ignoring 'regulatory domain change: set to US by a user request' - touch '/tmp/kalua/IWLOOP_RESPECT_REGSET' for this
Mon Apr 4 21:59:38 CEST 2016 mac2ipv4(12) [SUCCESS] setting host route for alien 100.66.79.61
Mon Apr 4 21:59:38 CEST 2016 mac2ipv4(11) grabbed ip from arp: 00:21:6a:32:7c:1c -> 100.66.79.61
Mon Apr 4 21:59:38 CEST 2016 mac2ipv4(11) [SUCCESS] setting host route for alien 100.66.79.61
Mon Apr 4 21:59:38 CEST 2016 mac2ipv4(10) grabbed ip from arp: 00:21:6a:32:7c:1c -> 100.66.79.61
Mon Apr 4 21:59:38 CEST 2016 mac2ipv4(10) [SUCCESS] setting host route for alien 100.66.79.61
Mon Apr 4 21:59:39 CEST 2016 mac2ipv4(9) grabbed ip from arp: 00:21:6a:32:7c:1c -> 100.66.79.61
Mon Apr 4 21:59:39 CEST 2016 mac2ipv4(9) [SUCCESS] setting host route for alien 100.66.79.61
Mon Apr 4 21:59:39 CEST 2016 mac2ipv4(8) grabbed ip from arp: 00:21:6a:32:7c:1c -> 100.66.79.61
Mon Apr 4 21:59:39 CEST 2016 mac2ipv4(8) [SUCCESS] setting host route for alien 100.66.79.61
Mon Apr 4 21:59:39 CEST 2016 mac2ipv4(7) grabbed ip from arp: 00:21:6a:32:7c:1c -> 100.66.79.61
Mon Apr 4 21:59:39 CEST 2016 mac2ipv4(7) [SUCCESS] setting host route for alien 100.66.79.61
Mon Apr 4 21:59:39 CEST 2016 mac2ipv4(6) grabbed ip from arp: 00:21:6a:32:7c:1c -> 100.66.79.61
Mon Apr 4 21:59:39 CEST 2016 mac2ipv4(6) [SUCCESS] setting host route for alien 100.66.79.61
Mon Apr 4 21:59:39 CEST 2016 mac2ipv4(5) grabbed ip from arp: 00:21:6a:32:7c:1c -> 100.66.79.61
Mon Apr 4 21:59:39 CEST 2016 mac2ipv4(5) [SUCCESS] setting host route for alien 100.66.79.61
Mon Apr 4 21:59:39 CEST 2016 mac2ipv4(4) grabbed ip from arp: 00:21:6a:32:7c:1c -> 100.66.79.61
Mon Apr 4 21:59:39 CEST 2016 mac2ipv4(4) [SUCCESS] setting host route for alien 100.66.79.61
Mon Apr 4 21:59:40 CEST 2016 mac2ipv4(3) grabbed ip from arp: 00:21:6a:32:7c:1c -> 100.66.79.61
Mon Apr 4 21:59:40 CEST 2016 mac2ipv4(3) [SUCCESS] setting host route for alien 100.66.79.61
Mon Apr 4 21:59:40 CEST 2016 mac2ipv4(2) grabbed ip from arp: 00:21:6a:32:7c:1c -> 100.66.79.61
Mon Apr 4 21:59:40 CEST 2016 mac2ipv4(2) [SUCCESS] setting host route for alien 100.66.79.61
Mon Apr 4 21:59:40 CEST 2016 mac2ipv4(1) grabbed ip from arp: 00:21:6a:32:7c:1c -> 100.66.79.61
Mon Apr 4 21:59:40 CEST 2016 mac2ipv4(1) [SUCCESS] setting host route for alien 100.66.79.61
Mon Apr 4 21:59:40 CEST 2016 mac2ipv4(0) station 00:21:6a:32:7c:1c lost - giving up
Mon Apr 4 21:59:40 CEST 2016 worker(12086) dev:wlan1-1 ch:5 MODE: new MAC: 00:21:6a:32:7c:1c - ip: '' signal: '-55' (is_good)
Mon Apr 4 21:59:40 CEST 2016 EVENT 25: 'wlan1-1: del station 00:21:6a:32:7c:1c'
Mon Apr 4 21:59:40 CEST 2016 worker(12086) dev:wlan1-1 ch:5 MODE: del MAC: 00:21:6a:32:7c:1c - alien: deleting route
Mon Apr 4 21:59:40 CEST 2016 EVENT 29: 'wlan0-1: new station 00:21:6a:32:7c:1c'
Mon Apr 4 21:59:40 CEST 2016 worker(12086) dev:wlan0-1 ch:40 MODE: new MAC: 00:21:6a:32:7c:1c - signal: '-61' border: '-83' try: 4
Mon Apr 4 21:59:40 CEST 2016 mac2ipv4(19) grabbed ip from arp: 00:21:6a:32:7c:1c -> 100.66.79.61
Mon Apr 4 21:59:40 CEST 2016 mac2ipv4(19) [SUCCESS] setting host route for alien 100.66.79.61
Mon Apr 4 21:59:40 CEST 2016 worker(12086) dev:wlan0-1 ch:40 MODE: new MAC: 00:21:6a:32:7c:1c - ip: '100.66.79.61' signal: '-61' (is_good)
# git grep '/tmp/CLIENTS_'|grep -v ^openwrt-addons/etc/init.d/S43ethers_fff+
# ersetzen durch:
# _net_both_ipv4_in_same_subnet '10.63.2.41/32' "$LANNET/$LANPRE"
# idee:
# iw scan + grundriss + https://de.wikipedia.org/wiki/Gnuplot
# xdotool getmouselocation --shell
# http://unix.stackexchange.com/questions/106736/detect-if-mouse-button-is-pressed-then-invoke-a-script-or-command
# TODO: busybox: shift
# - ./shell/ash.c must return 1 if no more args
# - see: dash: src/options.c
EJBW: allow WAN-SSH from RFC1918-net? 172.17.0.81 -> 172.17.0.2 geht nicht
# airport hotels
# mario behling
# update olsr.org-git in build.sh
tc change dev wifi0 root cake bandwidth 10mbit
sysbench --num-threads=8 --cpu-max-prime=10000 --test=cpu run
DIFF luense
comgt-ncm
# no speedtest for 3g!
# no olsr on tunnel for 3g! on client - uci set olsrd.@Interface[3].ignored=1
# no olsr on tunnel for 3g! on server - ankuendigen von node per HNA?
#
# -> 119913 / 600 sec RX = 17.3mb/Tag - oder 169170/15min
# -> 40569 / 600 sec TX = 5.8mb/Tag ... beides = 23.1mb/Tag - oder 42800/15min
# oder RX 169170/15min
# oder TX 42800/15min ... ergo: 20,3mb/tag = 610mb/monat
# anders: 50mb/monat = 1.66mb/tag = 70k/Stunde = 1157 Bytes/Minute
# CVJM:
# anpassen
CHARSET="ISO-8859-1"
HOTELNAME="CVJM-Leipzig e.V."
BEZAHLMODELL="kostenfrei"
SPEED="50 Megabit/s"
TECHNIK="IEEE 802.11b/g/n/a"
WARTUNGSFENSTER="t.glich zwischen 03:30 - 04:30 Uhr"
SPEICHERDAUER="6 Monate"
SIGNATUR="Die Administration"
ERSTELLUNGSZEIT='2016 Mar 17'
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/log/?h=v4.1.19
# TEXT PC Luense + whitelabel?!
root@EG-bastianHQ:~ _net local_inet_offer
Mar 14 13:59:07 ' [up 35331s 97632 bytes free] TERM:screen -ash [daemon.debug] net_local_inet_offer() PHYDEV: 'wwan0' METRIC: '' N: 'static' D: '10.28.200.225'
Mar 14 13:59:07 ' [up 35331s 97664 bytes free] TERM:screen -ash [daemon.info] net_local_inet_offer() found local default-gateway over device 'wwan0' = 'pppoe'
pppoe
"Complexity is a cost, spend it wisely."
root@Emilio-derZar:~ iw dev wlan0-1 station get 00:21:6a:32:7c:1c
Station 00:21:6a:32:7c:1c (on wlan0-1)
inactive time: 10 ms
rx bytes: 728859
rx packets: 3334
tx bytes: 4456843
tx packets: 4242
tx retries: 6009
tx failed: 51
signal: -80 [-82, -86, -90] dBm
signal avg: -73 [-75, -82, -84] dBm
tx bitrate: 13.0 MBit/s MCS 8
rx bitrate: 5.5 MBit/s
expected throughput: 0.732Mbps
authorized: yes
authenticated: yes
preamble: short
WMM/WME: yes
MFP: no
TDLS peer: no
root@WiTi-1:~ hdparm -t /dev/sda
/dev/sda:
Timing buffered disk reads: 198 MB in 3.01 seconds = 65.88 MB/sec
root@WiTi-1:~ time dd if=/dev/sda of=/dev/null bs=1M count=1000
1000+0 records in
1000+0 records out
real 0m 14.89s
user 0m 0.03s
sys 0m 14.49s
root@WiTi-1:~ cat /proc/partitions
major minor #blocks name
31 0 192 mtdblock0
31 1 64 mtdblock1
31 2 64 mtdblock2
31 3 16064 mtdblock3
31 4 1469 mtdblock4
31 5 14594 mtdblock5
31 6 10944 mtdblock6
8 0 312571224 sda
8 1 312568672 sda1
253 0 126976 zram0
253 1 126976 zram1
253 2 126976 zram2
253 3 126976 zram3
root@WiTi-1:~ grep ahci /tmp/dmesg.log
[ 4.810000] ahci 0000:03:00.0: no of_node; not parsing pinctrl DT
[ 4.810000] ahci 0000:03:00.0: version 3.0
[ 4.810000] ahci 0000:03:00.0: SSS flag set, parallel bus scan disabled
[ 4.830000] ahci 0000:03:00.0: AHCI 0001.0200 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
[ 4.840000] ahci 0000:03:00.0: flags: 64bit ncq sntf stag led clo pmp pio slum part ccc sxs
[ 4.860000] scsi host0: ahci
[ 4.870000] scsi host1: ahci
# bastian/berlin: mail von julias wegen homenet+olsrd2+ipv6+bgp
# siehe: traffic: https://www.ietf.org/proceedings/93/slides/slides-93-homenet-6.pdf
# olsrd-dev: routing table import zwischen olsr1 <-> olsrd2
# cd /www; while :;do dd if=/dev/urandom of=test$(date +%s).bin bs=3k count=1;df -h;done
# mpc-hc
# spielt ab GNM - media player classic /
/etc/dhcp-script.d/10dhc: stopwatch_stop() timefile '/tmp/STOPWATCH_tmpCRON_LASTCALL'... not found - abort
# smtp.sh -> remote_addr -> parse netstat?
# bday: jakob: 4. April
# detect webcam hotplug:
Wed Feb 24 09:15:09 CET 2016 1: usb ACTION: add DEVPATH: /devices/platform/ehci-platform/usb1/1-1 INTERFACE: DEVICE:
Wed Feb 24 09:15:09 CET 2016 1: usb ACTION: add DEVPATH: /devices/platform/ehci-platform/usb1/1-1/1-1:1.0 INTERFACE: 14/1/0 DEVICE:
Wed Feb 24 09:15:09 CET 2016 1: input ACTION: add DEVPATH: /devices/platform/ehci-platform/usb1/1-1/1-1:1.0/input/input1 INTERFACE: DEVICE:
Wed Feb 24 09:15:09 CET 2016 1: usb ACTION: add DEVPATH: /devices/platform/ehci-platform/usb1/1-1/1-1:1.1 INTERFACE: 14/2/0 DEVICE:
Wed Feb 24 09:15:09 CET 2016 1: usb ACTION: add DEVPATH: /devices/platform/ehci-platform/usb1/1-1/1-1:1.2 INTERFACE: 1/1/0 DEVICE:
Wed Feb 24 09:15:09 CET 2016 1: usb ACTION: add DEVPATH: /devices/platform/ehci-platform/usb1/1-1/1-1:1.3 INTERFACE: 1/2/0 DEVICE:
curl http://wttr.in/dallas
# detect this!:
# root@E1-mitteLinksINET-MESH:~ _db restore
Feb 18 10:54:50 ' [up 24464s 10660 bytes free] TERM:screen -ash [daemon.info] system_del_ramdisc() [OK] not mounted
Feb 18 10:54:55 ' [up 24468s 10716 bytes free] TERM:screen -ash [daemon.info] db_restore() try mounting '/tmp/kalua/storage/sda1_2.0G/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/device/DB/USER/login/DB/USER/device/DB/USER/device/DB/USER/device/DB' -> /database
Feb 18 10:54:55 ' [up 24469s 10620 bytes free] TERM:screen -ash [daemon.info] db_restore() will unarc '/www/cgi-bin/db_backup.tgz' to /database
tar: can't create directory 'database': I/O error
tar: can't make dir database/DB: No such file or directory
tar: can't create directory 'database/': I/O error
tar: can't make dir database/: I/O error
tar: can't create directory 'database/': I/O error
tar: can't make dir database/: I/O error
tar: can't create directory 'database/': I/O error
tar: can't open 'database/': Is a directory
Feb 18 10:54:55 ' [up 24469s 10156 bytes free] TERM:screen -ash [daemon.debug] scheduler_list_queue() working with option: ''
Feb 18 10:54:55 ' [up 24469s 10452 bytes free] TERM:screen -ash [daemon.alert] db_restore() [ERR] db_restore() rescheduling: untar of '/www/cgi-bin/db_backup.tgz' went wron
#
#
EJBW:
- backup-server:
grep -q '172.17.0.22' '/etc/resolv.conf' || echo >'/etc/resolv.conf' 'nameserver 172.17.0.22'
- kalua: detect node32: unsymetric wired olsr
- Telefonnummer aendern: 141? -> 145 gehre / 827459 = fax -> Test!
https://github.com/koalaman/shellcheck/pull/594
# find / -xdev -exec stat -c '%y %N' {} \;
# 2012-11-23 15:44:51.000000000 +0100 `/home/tasso/.viminfo'
# find / -xdev -exec stat -c '%s %y %N' {} \;
# 21973 2013-04-30 09:12:25.000000000 +0200 `/etc/ld.so.cache'
TODO:
*** check bansin
*** check dhcp-renew on brutus
*** apply_profile: write to /tmp - so we can use another uci-path in case of error
root@OpenWrt:/ uci show network
uci: Entry not found
root@OpenWrt:/ echo $?
1
* iptables -A FORWARD -m connbytes --connbytes 600000: --connbytes-dir both --connbytes-mode bytes
*** corrupted /lib/preinit/99_10_failsafe_login when 'noSSH' + git revert brakes
*** router ralf
*** router frenze
*** wo ist das linksys-paket?
*** voip bluse
*** zusammenfassung stadttreffen
*** standardschreiben pdf freifunk
*** texte CVJM aendern
*** portfw extrawatt: https://wiki.mdex.de/Support/MdexDownloads
*** tasso/bigbrother: portfw VS img-src='http://user@pass:$IP ... ' - http://stackoverflow.com/questions/19244006/chrome-basic-auth-image-requests-return-401-but-not-when-called-directly
*** CVJM rules per client
*** aschbach/DB
*** alrik aufkleber
*** alrik DB
*** IFA: check pw zustand
*** ejbw/405: javascript: automatisch schliessen + mail - /var/www/fusionpbx/dial.php
- roaming: dhcp-release/ip-change: set static route/remove old route needed?
- mapapi: send clients
- loop-makro? -> _loop var i=5...0 { ... }
- ejbw: master: ip route add 192.168.112.0/24 via 172.17.0.1
- netcat-client: while read LINE; do sleep 1; echo $LINE; done | nc 192.168.1.1 23
- too much reboots: disable autoreboot_when_crash on bootup?
- tasso: jwplayer https://github.com/jwplayer/jwplayer vs. jplayer https://github.com/happyworm/jPlayer
- tc filter: conn_length?
- add_ramdisc: fix racy (sometimes double /coredumps or /database)
- failsafe: button: config random!
- TSF/Custom IE: NTP-timestamp? http://www.mail-archive.com/ath9k-devel@lists.ath9k.org/msg08746.html
- http://comments.gmane.org/gmane.linux.drivers.ath9k.devel/9392
- shutdown hideandseek-vpn if no ping to neigh
- db: rollback-log?
- make build.sh output for https://wiki.openwrt.org/doc/howto/obtain.firmware.generate
- make image PROFILE=XXX PACKAGES="XXX" FILES=files/
- cool: http://berlin.freifunk.net/network/stats/
- ipv4-sanitizer: e.g. 224.1.1.1/24 is wrong: https://lists.openwrt.org/pipermail/openwrt-devel/2016-February/039825.html
- detect jffs2-ready better
- wuschel: 746-inetoffer,720 -> luci + weimarnetz
- VoIP bluse
- lowering prio for internal traffic? 10.0.0.0 -> 10.0.0.0 or 100.x.x.x
- find calc freq2daempfung for wireless_events
- _db user login list last -> rc muss 0 sein, sonst restore()
- autoadd some files to keep-files: /www/wifimac
- holm: ekehau: site survey
- !!!! backup userdb to usb-stick if possible
- !!!! generic function flash_free not_enough
- letsencrypt POSIX
- monami: inetoffer -> Westseite-ProfBunsen + zram aus auf E2-buerooben-MESH? + portfw + IP
- Doku Bansin versenden
- Doku Bansin aktualisieren
- router DNT x3
- fix USB-storage fuer db/ibfleesensee - also /database points to USB-stick...
- sollstedt/router kiga hinschicken/hinbringen?
- anruf elektriker sbansin
- rehungen: termine eintragen
- IFA: zyxel / statistik senden / sprache statistik
- email umziehen
- teitzl rueckmeldung
- router fundus 2x2
- ICVPN: backup ssh-priv + pubkey
- bot for every strange OS i have (e.g. fetch webpage-oneliner in regular intervals)
- and upload output via netcat or wget --get (server-cgi) or wget --POST
- OLSR: list in interface kann nur 1nen eintrag haben? -> bricht ab bei erstem nicht existenten interface
bansin:
- HWR -> hybrid
- hna4 0.0.0.0 aus!
- vpn zuenden
- roaming zuenden
- vpn-server muss IP-Schema kennen
- speed runter auf 7 und VPN auf 20?
- loader: introduce (fast?) substring() for posix-sh: e.g. substring 'bla:0:3'
a='/my/long/path/to/file'
expr "//$a" : '.*/\(.*\)'
-> "file"
expr also has a 'substring' statement
http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man1/expr.1?query=expr
- userdb-gui: log ALL actions from IP
- monami: portfw userdb
- ute: alien-ip kann 192.168.0.1 nicht erreichen, aber traceroute zu 8.8.8.8 geht.
etc/dropbear/dropbear_rsa_host_key.pub
etc/dropbear/dropbear_rsa_host_key
etc/dropbear/dropbear_dss_host_key.pub
etc/dropbear/dropbear_dss_host_key
etc/dropbear/authorized_keys
etc/crontabs/�v���v���v���v���v��`v���v���
etc/crontabs/root
etc/crontabs/fi
...
-> keine files sichern mit komischen namen?
# TODO:
- letsencrypt: POSIX: https://github.com/lukas2511/letsencrypt.sh/issues/116
- disable busybox-ip if full-ip is built for 'small' images?
- opkg install vfork-error
- hangs: wget -T 3 -O- http://1.2.3.4:567 -> fixed, but good usecase
- zram disable?
- kalender: rechtzeitiges austragen bei netflix
- spbansin: doku verschicken
- tkolleg: forward im ipfire an?
- EJBW: termin (war 23. Jan) + telefon umklemmen demokratie e.v.
- vpn-server DE
- testVPN
- kabeltester-batterie?
- sms aufladen
- GNM: bilder aufklappen + mail
- GNM: IE -> link mit passwort?
- monitoring: sichern meshrdf/recent jeden tag + backup
- fix schoeneck /database-issue
- echo 1 >/sys/kernel/debug/ieee80211/phy0/ath9k/disable_ani
- echo 0 >/sys/kernel/debug/ieee80211/phy0/ath9k/ani
- dnsmasq -> lookup youtube.com -> ipset -> use it
# Variables without spaces: https://github.com/koalaman/shellcheck/blob/master/ShellCheck/Data.hs#L38
# test: qemu-system-mipsel -M malta -hda openwrt-malta-le-root.ext4 -kernel openwrt-malta-le-vmlinux.elf -nographic -append "root=/dev/sda console=ttyS0"
- rechnung kamera aktualisieren GNM?
# showstopper:
# - network.@switch[0].reset='1' -> can hang -> https://dev.openwrt.org/ticket/22024 + https://dev.openwrt.org/ticket/19630
# - zram: crashes - https://dev.openwrt.org/ticket/21705
# - ag71xx/irqstorm: https://dev.openwrt.org/ticket/18922#comment:35
# - low performance eth0/eth1: https://dev.openwrt.org/ticket/21624
# - nslookup -> hostip oder was anderes - musl new dns? https://dev.openwrt.org/ticket/18333
# - dnsmasq: Regression: dnsmasq replies to forwarded query too early when receiving REFUSED response from upstream server
## - telnet ins image?
## - sysctl -w kernel.print-fatal-signals=1
## - ap-isolate default on? https://dev.openwrt.org/ticket/21767#comment:1
## - serial-console deaktivieren: askfirst -> inittab
# Acked-by: Bastian Bittorf <bittorf@bluebottle.com>
- mutt-git
- server holt mails
- fuer jede mail einzeln einen git-commit
- client holt git
- lesen + loeschen + taggen
- git commit auf client?
# lqmult-faktor: apply for all interfaces?
# compatible: ???
# SCRIPTDIR=$(dirname $(cd -P -- "$(dirname -- "$0")" && printf '%s\n' "$(pwd -P)/$(basename -- "$0")"))
# wireless-kick: anderer treshold bei 5ghz, e.g. -85?
# GNM: MOSCHIP usb-ethernet driver 8-1:1.0 eth1: register 'MOSCHIP usb-ethernet driver' at usb-0000:00:1d.7-1, MOSCHIP 7830/7832/7730 usb-NET adapter, 00:60:6e:01:2a:03
# malchowit: zimmer mellentin: tickets laufen nicht ab?
# busybox: bugreport 'ip n' <-> arp
# NM5: http://www.aredn.org/content/ubiquiti-airos-56-alert-0
# nodenumber-roaming: avoid clash >256
# patch: authorized.keys beimbooten
# test fake radius
# dropbear crash wenn:
ssh fe80::56e6:fcff:fea7:c086%eth0.1
# https://dev.openwrt.org/ticket/21738: iptables -t filter -I FORWARD -m conntrack --ctstate INVALID -j REJECT
# mac is wrong for 10.63.44.225 -> dc:9f:db:0c:c8:aa = false (from ip avove 10.63.160.129)
# the 2nd occurrence if correct: dc:9f:db:0d:c8:c5
# mac is wrong for 10.63.44.193 -> 64:66:b3:00:02:77 = false (from ip above 10.63.22.125)
# (the same node, but wifi - not directly reachable so: dc:9f:db:0d:c8:c5)
root@f36-longshot-schlacht:~ ip n
10.63.4.33 dev eth0 lladdr 00:13:10:14:c4:fc used 0/0/0 probes 1 STALE
10.63.44.193 dev eth0 lladdr dc:9f:db:0d:c8:c5 used 0/0/0 probes 0 STALE
10.63.160.129 dev wlan0 lladdr dc:9f:db:0c:c8:aa ref 1 used 0/0/0 probes 1 REACHABLE
10.63.44.225 dev wlan0 lladdr dc:9f:db:0c:c8:aa used 0/0/0 probes 6 FAILED
10.63.195.161 dev eth0 lladdr 00:10:75:2d:81:be used 0/0/0 probes 4 STALE
10.63.21.97 dev eth0 lladdr 00:18:84:88:65:98 ref 1 used 0/0/0 probes 1 REACHABLE
10.63.44.225 dev eth0 lladdr 00:18:84:88:65:98 used 0/0/0 probes 6 FAILED
10.63.160.161 dev wlan0 lladdr dc:9f:db:0c:c8:aa used 0/0/0 probes 6 STALE
10.63.82.125 dev eth0 lladdr f4:ec:38:9d:7a:1e ref 1 used 0/0/0 probes 1 DELAY
10.63.22.125 dev eth0 lladdr 64:66:b3:00:02:77 ref 1 used 0/0/0 probes 1 REACHABLE
10.63.44.193 dev wlan0 lladdr 64:66:b3:00:02:77 used 0/0/0 probes 6 FAILED
fe80::213:10ff:fe14:c4fc dev eth0 lladdr 64:66:b3:00:02:77 used 0/0/0 probes 6 FAILED
fe80::de9f:dbff:fe0d:c8c5 dev eth0 lladdr 64:66:b3:00:02:77 router ref 1 used 0/0/0 probes 6 INCOMPLETE
fe80::218:84ff:fe88:6598 dev eth0 lladdr 00:18:84:88:65:98 router used 0/0/0 probes 4 STALE
fe80::213:10ff:fe14:c4fc dev wlan0 lladdr 00:18:84:88:65:98 used 0/0/0 probes 6 FAILED
fe80::6666:b3ff:fe00:277 dev eth0 lladdr 64:66:b3:00:02:77 router ref 1 used 0/0/0 probes 1 REACHABLE
root@f36-longshot-schlacht:~ cat /proc/net/arp
IP address HW type Flags HW address Mask Device
10.63.4.33 0x1 0x2 00:13:10:14:c4:fc * eth0
10.63.44.193 0x1 0x2 dc:9f:db:0d:c8:c5 * eth0
10.63.160.129 0x1 0x2 dc:9f:db:0c:c8:aa * wlan0
10.63.44.225 0x1 0x0 00:00:00:00:00:00 * wlan0
10.63.195.161 0x1 0x2 00:10:75:2d:81:be * eth0
10.63.21.97 0x1 0x2 00:18:84:88:65:98 * eth0
10.63.44.225 0x1 0x0 dc:9f:db:0d:c8:c5 * eth0
10.63.160.161 0x1 0x2 dc:9f:db:0c:c8:aa * wlan0
10.63.82.125 0x1 0x2 f4:ec:38:9d:7a:1e * eth0
10.63.22.125 0x1 0x2 64:66:b3:00:02:77 * eth0
10.63.44.193 0x1 0x0 00:00:00:00:00:00 * wlan0
# IPv6 / linklocal / zone-id / workaround: ssh -L '8080:[fe80::209:5bff:fede:ad02%eth0]:80' user@router
# freifunk: extend Ideas - http://wiki.freifunk.net/Ideas#Automatic_Network_Configuration
# fix missing /etc/rc.common auf vpn-server
# /tmp/LOCKFILE_APPLY -> weg / scheduler + db_restore
olsr_build_tables() bad: remote: 10.10.12.1 cost: INFINITE
# busybox:
ip neigh add|change|replace -> not implemented!
# somehow mark user_add which comes not in via DHCP? -> drucker
# mail an gera / kommune4.0
config 'LoadPlugin'
option 'library' 'olsrd_nameservice.so.0.3'
option 'ignore' '0'
option 'hosts_file' '/var/etc/hosts'
option 'suffix' '.olsr'
option 'interval' '180'
option 'timeout' '3600'
option 'latlon_file' '/var/run/latlon.js'
option 'latlon_infile' '/var/run/latlon.txt'
provide: latlon
# dnsmasq: option3 = gateway, option6: dns
# compress URL:
# 0-9 A-Z a-z .:,;+*-_/()$=!@?~' -> base80
# 10 +26 +26 +18 = 80
# numbers, e.g. unixtime -> longint?
# http://cs.stackexchange.com/questions/29809/using-base-80-for-compressing-files
# http://stackoverflow.com/questions/2996049/how-to-compress-decompress-a-long-query-string-in-php
# ( sleep 100 ) 200>bla
# ls -1 /proc/22187/fd
# readlink /proc/22187/fd/200
# preinit: flock: invalid number '/tmp/tmp.ahbhoi' -> filen from 'mktemp'
# VPN:server: http://3.v.weimarnetz.de/freifunk/vpn/
# idee: eingesteckter USB-stick -> audiofiles -> radiosender-stream (icecast?)
# Tulpe: WTF? /usr/sbin/cron.monitoring: watch_hanging_command() killing '/usr/sbin/rsyslogd'
# Deluxe Rock: http://tunein.com/radio/Deluxe-Rock-s183707/
# Harrison Ford - auf der Flucht?
# BladERunner
# dropbear-patch: Child connection from fe80::224:7eff:fe12:72f3%br-lan:54722
#
# fail2ban: patch dropbear -> script when failed from IP
# Login attempt for nonexistent user from $IP:$PORT
# Bad password attempt for 'root' from $IP:$PORT
svr-auth.c: "Login attempt for nonexistent user from %s",
svr-auth.c: "Login attempt with wrong user %s from %s",
svr-authpam.c: "Bad PAM password attempt for '%s' from %s",
svr-authpam.c: "Bad PAM password attempt for '%s' from %s",
svr-authpasswd.c: "Bad password attempt for '%s' from %s",
# handyupdate:
# http://download.cyanogenmod.org/?device=crespo
# http://www.android-hilfe.de/forum/custom-roms-fuer-nexus-s.347/?direction=desc
# http://alchemistar.blogspot.de/2011/01/google-nexus-s-custom-rom-list.html
# definitions: SSID_AP + SSID_MESH
# dell2300 / meyer23 updaten
# teitzel: IP
# always make sure 'rm' is invoked with '-f', otherwise it can hang (e.g. readonly)
# root@EG-bastianHQ:~ rm /www/keep/coredumps/r47603.ar71xx.ip.*
rm: remove '/www/keep/coredumps/r47603.ar71xx.ip.1075.10.1448962860.core'? ^C
# https://github.com/davidshimjs/qrcodejs
# missing /etc/config/network -> trigger firstboot? + apply_profile + enforce IPv6?
# roaming-klasse fuer netzweites mac-addressen dingsi / unsplash
# kernel 4.3.0 is wrong age in monitoring?!
# konzept gesucht:
# auf medion:
# scp root@intercity-vpn.de:/root/.ssh/authorized_keys /home/bastian/.ssh/authorized_keys.ICVPN
# cat .ssh/authorized_keys.* >.ssh/authorized_keys
# klingonisch: http://www.klingonisch.net/d/index.html
# mail: medion: alle akzeptieren
# idea: /rom exists? ->we have squashfs/jffs2
# nachschauen: schroeder = schneller?
# reactivate fakedns - it works!
# name the adhoc-interface 'ibss0' instead of 'wlan0'?
# paltstadt + monami + palais -> 10.64.x.x
UML-crash: (since a long time - here r47958
[ 0.340000] Console initialized on /dev/tty0
[ 0.340000] console [tty0] enabled
[ 0.340000] Initializing software serial port version 1
[ 0.340000] console [mc-1] enabled
[ 0.340000] Computing a digest to use as ethernet address for device eth8
[ 0.340000] Netdevice 8 (b2:69:8f:a3:40:a6) :
[ 0.340000] TUN/TAP backend - IP = 192.168.0.254
[ 0.340000] ------------[ cut here ]------------
[ 0.340000] WARNING: CPU: 0 PID: 1 at drivers/base/dd.c:184 deferred_probe_initcall+0x60/0xb0()
[ 0.340000] Modules linked in:
[ 0.340000] CPU: 0 PID: 1 Comm: swapper Not tainted 4.1.13 #2
[ 0.340000] Stack:
[ 0.340000] 00000000 00000000 00000000 603afb9e
[ 0.340000] 6047a9cb 6003bb40 60560300 6006f623
[ 0.340000] 00000001 60548870 63774c00 60548870
[ 0.340000] Call Trace:
[ 0.340000] [<60032b95>] ? os_is_signal_stack+0x15/0x30
[ 0.340000] [<603afb9e>] ? printk+0x0/0x9b
[ 0.340000] [<60222600>] ? deferred_probe_initcall+0x60/0xb0
[ 0.340000] [<6001d1ad>] ? show_stack+0x12d/0x1b0
[ 0.340000] [<603afb9e>] ? printk+0x0/0x9b
[ 0.340000] [<6003bb40>] ? warn_slowpath_common+0xe0/0x120
[ 0.340000] [<6006f623>] ? mod_timer+0x173/0x1a0
[ 0.340000] [<601ee3b0>] ? strcmp+0x0/0x30
[ 0.340000] [<602225a0>] ? deferred_probe_initcall+0x0/0xb0
[ 0.340000] [<60222600>] ? deferred_probe_initcall+0x60/0xb0
[ 0.340000] [<6001a309>] ? do_one_initcall+0x139/0x230
[ 0.340000] [<60056c06>] ? parse_args+0x276/0x3e0
[ 0.340000] [<6001a1d0>] ? do_one_initcall+0x0/0x230
[ 0.340000] [<601ee310>] ? strcpy+0x0/0x30
[ 0.340000] [<60000f39>] ? kernel_init_freeable+0x1b0/0x292
[ 0.340000] [<600003d0>] ? repair_env_string+0x0/0xb4
[ 0.340000] [<6005b453>] ? finish_task_switch+0x43/0xc0
[ 0.340000] [<603ad5cd>] ? kernel_init+0xd/0x160
[ 0.340000] [<6001be62>] ? new_thread_handler+0x82/0xb0
[ 0.340000]
[ 0.340000] ---[ end trace 1c9c0c4a9a1cda20 ]---
[ 0.340000] EXT4-fs (ubda): couldn't mount as ext3 due to feature incompatibilities
[ 0.340000] EXT4-fs (ubda): couldn't mount as ext2 due to feature incompatibilities
[ 0.340000] EXT4-fs (ubda): mounted filesystem without journal. Opts: (null)
[ 0.340000] VFS: Mounted root (ext4 filesystem) readonly on device 98:0.
# todo: 2 x webcam -scp?
# TODO: test all olsr-subfunc for git?
# support for html-error-code 451?
# monitoring: switch: show red if no ipv6 ping
# leipzig: rother: prospekt/jakob
# rother: admin-mail an PC_Luense
# konnekteueber kueche: mrate=1000
wireless.@wifi-iface[3].device=radio1
wireless.@wifi-iface[3].network=wlanRADIO1
wireless.@wifi-iface[3].disassoc_low_ack=0
wireless.@wifi-iface[3].ssid=Schnelle PC Hilfe 5 GHz
wireless.@wifi-iface[3].mode=sta
wireless.@wifi-iface[3].key=Flugzeug987654!
wireless.@wifi-iface[3].disabled=0
wireless.@wifi-iface[3].encryption=psk2
vpn-server: logread missing
# track ap: ip-wechsel
iw phy pyh0 interface add mon0 type monitor
tcpdump -i mon0 -s 200 -tt -w /tmp/test.pcap
# mail: ejbw: secosys
# profile.d: show active ap-clients
# cron.add ... lock-login: only once alert
# weihnachtfeier-mail
# roaming: track avg-sig of each station each minute and kick if needed
# 2xvpn-server up
# travis: use cache for custom installs:
- https://docs.travis-ci.com/user/caching/
- remove cache when new shellsheck arrives in git
# use POSIX readlink: http://stackoverflow.com/questions/29832037/how-to-get-script-directory-in-posix-sh
# apply_profile: abort if nodenumber invalid for ip_system
# simon/openvpn
# vtund: type 'tun'? nolzo? -> short asking /json/ server, which version/which port
# ask via netcat special dns-server for entry-URL/port?
# mail: 2x Telefon: secosys
# @webis5.medien.uni-weimar.de
# riso3860 betaweb135.medien.uni-weimar.de
# EjReshAcDayheshrojio
# chromecast audio: Squeezelite und Logitech Media Server.
# idea: wget: first start listener in background & and then wget
# test schwaches pw: mkpasswd needed
# check: wird pmu wirklich direkt nach boot gemacht? ->check scheduler-table first run
# after reboot check more strict (once) if we really can download something from internet -> otherwise Wartungsmode
# S70prepare: http://127.0.0.1/cgi-bin/luci -> 401?
# monitoring: longshot, aber kein funknachbar: rot
# monitoring: longshot, aber defroute nicht ueber funk: rot
# ejbw: api -> extentsion X waehle nummer Y
# ejbw: https-cert
# ejbw: auf master: iptables -I INPUT -p tcp -i $WANDEV --dport 22 -s 172.17.0.0/22 -j ACCEPT
# ejbw: https erzwingen ausgeschaltet...: /etc/nginx/sites-available/fusionpbx - auskommentiert: rewrite ^(.*) https://$host$1 permanent;
# IFA
# monitoring:
# - alter des git in tagen
# - schnellinfo, wieviel clients in letzten 15mins
# datenbank auf 231 machen
# vorschlag optimierungsrecher in RZ
# portforwarding scheint auf 192.168.2.107 zu gehen (alias aendern?)
# - evtl. ist die 107 auf die per DHCP bezogene Adresse
#
# WebUI: Telekom-Master: pass = 08460851
# - Zugangsnummer: 551112888025 ("T-Online Nummer")
# - Kennwort: 71618140
# - Anschlusskennung: 002115159108
#
# WebUI: Telekom-Ersatz: pass = 56006535
# - PortFW auf die 192.168.2.100 (!!!)
#
# NetIO-230b = http://10.10.2.34/ -> user: admin pass: admin -> version 4.0
# alle Ports gehen an, beim einschalten
# _net_ping6 -> auto ff02::1%$LAN
# HTTPS / uhttpd:
- check: openssl s_client -connect example.com:443 -ssl3
- https://gethttpsforfree.com/
#
- openssl rsa -in yourkeyfile.pem -outform DER -out uhttpd.key
#
- cat "Signed Certificate:" + "Intermediate Certificate:" >cert.pem
- openssl x509 -in cert.pem -outform DER -out uhttpd.crt
#
# upload uhttpd.key + uhttpd.crt
# muenchen: bildschirm sofort schwarz? dpms?
# komische files:
# ls -la /var/www/networks/apphalle/meshrdf/
# EJWB: fax send / mail
# ls -lt /usr/local/freeswitch/storage/fax/3000/inbox|grep 557-|more
# update: mark "already installed" with 0 - and the clients will not install it, except configured
# dbGUI: explain -2 and -3
# check admin-pw:
# https://github.com/weimarnetz/weimarnetz/issues/187#event-479470882
# mini-json-monitoring
ubus call system board
ubus listen
# ejbw:
- auf master: ip route add 192.168.112.0/24 via 172.17.0.1
- auf 43 anderer DNS: 172.17.0.21 + 172.17.0.22
# USB 5m
# Fahrrad-Clip x 2
# braunes/rotes nwk
# https://de.wikipedia.org/wiki/Slowloris
root@fonera2n:~ nslookup krautchan.net
Server: 127.0.0.1
Address 1: 127.0.0.1 localhost
Name: krautchan.net
Address 1: 104.28.3.14
Address 2: 104.28.2.14
root@fonera2n:~ nslookup krautchan.net 208.67.222.123
Server: 208.67.222.123
Address 1: 208.67.222.123 resolver1-fs.opendns.com
Name: krautchan.net
Address 1: ::ffff:146.112.61.106
Address 2: 146.112.61.106 hit-adult.opendns.com
Mon Nov 23 08:59:02 2015 daemon.info kalua: /bin/sh: system_del_ramdisc() [OK] not mounted
Mon Nov 23 08:59:02 2015 daemon.info kalua: /bin/sh: system_add_ramdisc() adding ramdisk /database of size 28991488
Mon Nov 23 08:59:02 2015 daemon.info kalua: /bin/sh: db_restore() will unarc '/www/cgi-bin/db_backup.tgz' to /database
Mon Nov 23 08:59:05 2015 daemon.info kalua: /bin/sh: db_restore() [OK] untar
Mon Nov 23 08:59:05 2015 daemon.info kalua: /bin/sh: db_restore() [OK] restructure path
Mon Nov 23 08:59:25 2015 kern.info kernel: [ 147.891463]
Mon Nov 23 08:59:25 2015 kern.info kernel: [ 147.891463] do_page_fault(): sending SIGSEGV to sh for invalid read access from 36323134
Mon Nov 23 08:59:25 2015 kern.info kernel: [ 147.899668] epc = 36323135 in libgcc_s.so.1[77d14000+22000]
Mon Nov 23 08:59:25 2015 kern.info kernel: [ 147.905334] ra = 0041ce81 in busybox[400000+4e000]
Mon Nov 23 08:59:25 2015 kern.info kernel: [ 147.910302]
Mon Nov 23 08:59:25 2015 kern.info kernel: [ 148.021929]
Mon Nov 23 08:59:25 2015 kern.info kernel: [ 148.021929] do_page_fault(): sending SIGSEGV to sh for invalid read access from 00706964
Mon Nov 23 08:59:25 2015 kern.info kernel: [ 148.030150] epc = 00706964 inra = 00706964 in
Mon Nov 23 08:59:25 2015 kern.info kernel: [ 148.034640]
Mon Nov 23 08:59:26 2015 kern.info kernel: [ 148.557697]
Mon Nov 23 08:59:26 2015 kern.info kernel: [ 148.557697] do_page_fault(): sending SIGSEGV to gzip for invalid read access from 00000000
Mon Nov 23 08:59:26 2015 kern.info kernel: [ 148.566145] epc = 00000000 in busybox[400000+4e000]
Mon Nov 23 08:59:26 2015 kern.info kernel: [ 148.571172] ra = 00000000 in busybox[400000+4e000]
Mon Nov 23 08:59:26 2015 kern.info kernel: [ 148.576100]
Mon Nov 23 08:59:26 2015 kern.info kernel: [ 148.907487]
Mon Nov 23 08:59:26 2015 kern.info kernel: [ 148.907487] do_page_fault(): sending SIGSEGV to iw for invalid read access from 007d7280
Mon Nov 23 08:59:26 2015 kern.info kernel: [ 148.915940] epc = 007d7280 inra = 77872329 in libnl-tiny.so[77870000+15000]
Mon Nov 23 08:59:26 2015 kern.info kernel: [ 148.923505]
Mon Nov 23 08:59:28 2015 kern.info kernel: [ 151.149709]
Mon Nov 23 08:59:28 2015 kern.info kernel: [ 151.149709] do_page_fault(): sending SIGSEGV to uhttpd for invalid read access from 0091bfc8
Mon Nov 23 08:59:28 2015 kern.info kernel: [ 151.158303] epc = 77471c23 in libubox.so[7746e000+17000]
Mon Nov 23 08:59:28 2015 kern.info kernel: [ 151.163677] ra = 77471bfb in libubox.so[7746e000+17000]
Mon Nov 23 08:59:28 2015 kern.info kernel: [ 151.169206]
# tests: text2port() collision?
# ffweimar: fetch JSON or minimal monitoring?
# repair http://intercity-vpn.de/networks/error
# TODO: test all possible userdb-HTML output (first: a walkthrough for humans, later 'html-tidy')
- startseite/passwortabfrage:
- http://10.63.21.97/cgi-bin/userdb
- uebersicht:
- http://10.63.21.97/cgi-bin/userdb
oder
- http://10.63.21.97/cgi-bin/userdb?FORM_AUTH_USER=root&FORM_AUTH_PASS=fm1204&submit=Login
- profile bearbeiten:
- http://10.63.21.97/cgi-bin/userdb?FORM_ACTION=profile_update&FORM_ID=1
- logins
- hinzufuegen:
- http://10.63.21.97/cgi-bin/userdb?FORM_ACTION=login_add
- anzeigen: alle:
- http://10.63.21.97/cgi-bin/userdb?FORM_ACTION=login_show&FORM_RANGE_METHOD=all
- anzeigen: neuesten 32:
- http://10.63.21.97/cgi-bin/userdb?FORM_ACTION=login_show&FORM_RANGE_METHOD=last&FORM_RANGE_KEYWORD=32
- suche muster: nur fuer 1 profil: (":" -> macs)
- http://10.63.21.97/cgi-bin/userdb?FORM_ACTION=login_search&FORM_SEARCH_PATTERN=%3A&FORM_PROFILE_ID=1
- suche muster: fuer all profile:
- http://10.63.21.97/cgi-bin/userdb?FORM_ACTION=login_search&FORM_SEARCH_PATTERN=%3A&FORM_PROFILE_ID=
# friend-monitoring:
# shout out: please be my friend (linklocal/1hop?)
# somebody sees it and agrees (1...up to 2 friends or even X?)
# send email, when friend goes away
# rules for traceroute = perfekt DSCP
# http://lartc.org/howto/lartc.adv-filter.html
# "Packet will match to this rule, if its time to live (TTL) is 64. TTL is the field starting just after 8-th byte of the IP header."
# http://www.netfilter.org/documentation/HOWTO/netfilter-extensions-HOWTO-3.html
# "Check the value of a 1 byte field"
# also: earlyboot_netparam() store initial version: WIFIDEV=''
# weimarnetz/dyndns ueberall?
audiostudio (Parkseite) ---> RH-Sofia-MESH ---> F2.2 ---> 10.10.46.1
root@(none):/# uptime
04:47:45 up 76 days, 4:47, load average: 0.00, 0.01, 0.04
root@(none):/# ip a
1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether d8:5d:4c:f6:2f:9e brd ff:ff:ff:ff:ff:ff
inet 192.168.1.1/24 brd 192.168.1.255 scope global eth0
valid_lft forever preferred_lft forever
# convert mydesign-stuff
# http://www.cyberciti.biz/faq/unix-linux-sed-ascii-control-codes-nonprintable/
# http://www.fileformat.info/info/unicode/char/00e0/index.htm
json_init
json_add_string name "_adblock"
json_add_string ifname "eth0"
json_add_string proto "static"
json_add_array ipaddr
json_add_string "" "1.2.3.4"
json_close_array
json_close_object
ubus call network add_dynamic "$(json_dump)"
- monami: alles auf die 9
- tasso: hangs after: too much load: '177' - rebooting -> crashreboot?
- dropbear banner prob
# Dorfhotel Fl Wartungsmodus 21/0
# Huawei E398 (erhältlich als Vodafone K5005 & Telekom Speedstick LTE)
# weih:
# - WC
# - Wohnz
# - GewueReg x 3
# - lichtKue/dimm
# - fotokal
root@abtpark-hybrid--5:~ cat /www/monitoring.wifimac
14cc20ed24ed
# rose!
# drittanbietersperre
# SIP evernet
telegram:
- https://github.com/vysheng/tg/issues/48
- https://github.com/mikeadamz/telebot
- https://github.com/area31/Telegram-api-msg-bot/blob/master/send-msg-telegram
# ----------------------
# LTE-Modem:
# cat /sys/kernel/debug/usb/devices
T: Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 3 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=12d1 ProdID=14c3 Rev= 0.00
S: Manufacturer=Vodafone Group (Huawei)
S: Product=Vodafone Mobile Broadband (Huawei)
C:* #Ifs= 2 Cfg#= 1 Atr=c0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
# intercity-vpn.de 84.38.67.43 -> 198.23.155.210
# ejbw/kuerzere pause bis AB
# does it work? --hwardware X --info?
# first run
# first start
# do not check hw
#
# please run: 'mkdir openwrt_download' before starting this script
# android kiosk system? zurueck + menu-taste + kontexttaste totlegen
- root?
- reboot?
- busybox?
# bullet versenden: rehungen 106/107?
# idee: automatisierte Nachrichtensendung beim git-checkin, unterschiedliche sprecher und anderer applaus (je nach change-impact)
# x86_64/qemu: -> mit 4.1 nochmal schauen
# [ 4181.017348] rm[25456]: segfault at 3 ip 0000000000000003 sp 00007fffb88e5718 error 14 in busybox[400000+5a000]
# [ 1972.621758] grep[12377]: segfault at 0 ip 00007f6eec306c08 sp 00007ffc8e9b0600 error 4 in libc.so[7f6eec2bb000+65000]
# [10430.688218] which[597]: segfault at 3 ip 0000000000000003 sp 00007ffdb7e74e08 error 14 in busybox[400000+5a000]
# [13204.227236] sleep[18629]: segfault at 0 ip (null) sp 00007ffc3969dfe8 error 14 in busybox[400000+5a000]
# REMOTE=10.63.42.125
# wget -O - "http://$REMOTE/cgi-bin-tool.sh?OPT=notebookconf&IPWIZARD=ERR;\$(/sbin/reboot)+ZZZ=22222"
# radioshow / battlemesh / IPFS :
http://wcbn.org - 6 AM thuesday morning - Michigan/near detroit - 14.00
# paxos-alghorithm
-raft
# Ubiquiti Bullet r46298 with read errors in JFFS2 - only comes up in failsafe mode (but mount_root works)
#
# root@(none):/# find /usr -type f
# /bin/ash: find: I/O error
#
# /bin/busybox find /usr -type f
# -> OK
#
# a lot of symlinks where missing, so repairing was (a little bit) possible with:
# cd /bin; for i in $(./busybox --list); do ln -s busybox $i; done
#
# dmesg:
[ 5.740000] random: procd urandom read with 9 bits of entropy available
[ 8.280000] eth0: link up (100Mbps/Full duplex)
[ 40.990000] jffs2: error: (366) jffs2_build_inode_pass1: child dir "#81498440" (ino #730) of dir ino #722 appears to be a hard link
[ 41.000000] jffs2: notice: (366) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 41.020000] mount_root: switching to jffs2 overlay
[ 42.780000] jffs2: warning: (354) jffs2_get_inode_nodes: Eep. No valid nodes for ino #730.
[ 42.790000] jffs2: warning: (354) jffs2_do_read_inode_internal: no data nodes found for ino #730
[ 42.800000] jffs2: iget() failed for ino #730
[ 45.530000] jffs2: warning: (354) jffs2_get_inode_nodes: Eep. No valid nodes for ino #730.
[ 45.540000] jffs2: warning: (354) jffs2_do_read_inode_internal: no data nodes found for ino #730
[ 45.550000] jffs2: iget() failed for ino #730
[ 58.250000] jffs2: warning: (354) jffs2_get_inode_nodes: Eep. No valid nodes for ino #730.
[ 58.260000] jffs2: warning: (354) jffs2_do_read_inode_internal: no data nodes found for ino #730
[ 58.270000] jffs2: iget() failed for ino #730
[ 73.550000] random: nonblocking pool is initialized
[ 124.910000] jffs2: warning: (354) jffs2_get_inode_nodes: Eep. No valid nodes for ino #730.
[ 124.920000] jffs2: warning: (354) jffs2_do_read_inode_internal: no data nodes found for ino #730
[ 124.920000] jffs2: iget() failed for ino #730
[ 125.100000] jffs2: warning: (354) jffs2_get_inode_nodes: Eep. No valid nodes for ino #730.
[ 125.110000] jffs2: warning: (354) jffs2_do_read_inode_internal: no data nodes found for ino #730
[ 125.120000] jffs2: iget() failed for ino #730
# aboriginal linux
# build.sh mipsel
# ./dev-env.sh
#
### TODO: activate zram
#
# mkdir /home/bin
# export PATH="/home/bin:$PATH:/usr/local/bin"
# ln -s /home/bin /usr/local/bin
# unset DISTCC_HOSTS; export DISTCC_HOSTS
#
# mount -t tmpfs -o size=128000000,nosuid,nodev,mode=1777 tmpfs /tmp
#
# after each compile: (or raise size of initial disk?)
# mv /usr/local/bin/* /home/bin
# TODO: build everything in ramdisc
#
# wget m4 ftp://ftp.gnu.org/gnu/m4/m4-1.4.9.tar.gz
# wget binutils http://ftp.gnu.org/gnu/binutils/binutils-2.25.tar.gz
# wget perl http://www.cpan.org/src/5.0/perl-5.22.0.tar.gz
sed -i 's/usenm=true/usenm=false/g' 'Configure'
./Configure -des
# wget autoconf ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
wget -O build-aux/config.guess "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD"
wget -O build-aux/config.sub "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD"
# wget openssl ftp://ftp.openssl.org/source/openssl-1.0.2c.tar.gz
./config
make depend
make all
make install
export PATH="$PATH:/usr/local/ssl/bin"
# wget zlib http://zlib.net/zlib-1.2.8.tar.gz -> OK
#
# wget libtool ftp://ftp.gnu.org/gnu/libtool/libtool-2.4.tar.gz -> OK
./configure
sed -i 's/^\\/ /g' libtool
# wget libiconv http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz -> OK
./configure
# find . -name libtool
sed -i 's/^\\/ /g' ...
#
# wget gettext ftp://ftp.gnu.org/pub/gnu/gettext/gettext-0.19.tar.gz
./configure --with-libiconv-prefix=/usr/local/include
# find . -name libtool | while read LINE; do echo "$LINE"; sed -i 's/^\\/ /g' "$LINE"; done
sed -i 's/^\\/ /g' ./gettext-tools/libtool
sed -i 's/^\\/ /g' ./gettext-runtime/libtool
sed -i 's/^\\/ /g' ./gettext-runtime/libasprintf/libtool
# wget git http://github.com/git/git/archive/v2.4.8.tar.gz
make configure
make
# 192.168.1.222 = 24:A4:3C:E6:1E:CE = ewerk = AP = Channel/Frequency: 39 / 5195 MHz @ 10 mhz = NanoBeamM5
# 192.168.1.20 = 24:A4:3C:E6:DB:53 = client/ewerkseite? = NanoBeamM5
# 192.168.3.20 = 24:a4:3c:8e:a7:dc = fe80::26a4:3cff:fe8e:a7dc = wagenplatz = AP WDS = Channel/Frequency:60 / 5300 MHz @ 5 MHz = NanoBridge
# 192.168.3.30 = 04:18:D6:EC:3F:30 = wagenplatz = client/BAMAGseite = ...
# auf 10.63.34.225
#
iptables -t nat -I PREROUTING -p tcp --dport 10443 -j DNAT --to-destination 192.168.1.222:443
iptables -t nat -I PREROUTING -p tcp --dport 11443 -j DNAT --to-destination 192.168.1.20:443
iptables -t nat -I POSTROUTING -d 192.168.1.0/24 -j MASQUERADE
iptables -t nat -I PREROUTING -p tcp --dport 30443 -j DNAT --to-destination 192.168.3.20:443
iptables -t nat -I PREROUTING -p tcp --dport 31443 -j DNAT --to-destination 192.168.3.30:443
iptables -t nat -I POSTROUTING -d 192.168.3.0/24 -j MASQUERADE
# 1=unbestimmt, 2=1043, 3= wzr,4=nano,5=4300er,6=4900erPUTT,7=703er,8=bulletM,9=TP-LINK TL-WR841N/ND v8
# F='all.tar.bz2'; mkdir -p moni-html; cd moni-html; wget -O $F http://intercity-vpn.de/files/$F; tar xjf $F; cd ..
# F='all.tar.xz'; mkdir -p moni-html; cd moni-html; wget -O $F http://intercity-vpn.de/files/$F; tar xJf $F; cd ..
# F='all.tar.bz2'; mkdir -p moni-html; cd moni-html; wget -O $F http://172.30.0.1/files/$F; tar xjf $F; cd ..
# F='all.tar.bz2'; mkdir -p moni-html; wget -O moni-html/$F http://intercity-vpn.de/files/$F && tar xjf $F
# GW=fe80::fad1:11ff:fea9:b688%eth0
# while :;do ping -c1 -W1 -q -6 $GW >/dev/null && break; date;done; ssh $GW 'sed -i "s|/bin/echo|return;|" /etc/kalua/system'
# ip neigh change 192.168.1.1 dev eth0 lladdr b0:48:7a:c5:db:9a nud permanent
# ubus -v list lxc
# ubus call lxc list
# ubus call lxc stop 'json-name'
# ubus call service list '{"name":"dnsmasq"}'
# ubus call service list '{"name":"dnsmasq"}' | jsonfilter -e '@.*.instances.instance1.running'
# using channel below 1 http://yo3iiu.ro/blog/?p=1301
# try openwrt-compile on IBM Power8 with FORCE=1 -> https://patchwork.ozlabs.org/patch/497539/
# openwrt/routing:
# git checkout origin/for-15.05
# ...changes...
# commit
# git push origin HEAD:for-15.05
#
# git checkout origin/for-14.07
# ...
# http://xaychru.com/games/AlienCrab.html
# jffs2-putt: sysupgrade:
# uci add system profile
# uci set system.@profile[-1].nodenumber=266
# uci set system.@profile[-1].profile=liszt28_hybrid
[ 35.750000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[ 35.760000] block: extroot: not configured
[ 35.800000] jffs2: error: (407) jffs2_build_inode_pass1: child dir "rc.d" (ino #82) of dir ino #6 appears to be a hard link
[ 35.810000] jffs2: notice: (407) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 35.830000] mount_root: loading kmods from internal overlay
und:
[ 26.470000] jffs2: error: (357) jffs2_build_inode_pass1: child dir "init.d" (ino #1384) of dir ino #1345 appears to be a hard link
[ 26.480000] jffs2: notice: (357) jffs2_build_xattr_subsystem: complete building xattr subsystem, 3 of xdatum (2 unchecked, 1 orphan) and 3 of xref (1 dead, 0 orphan) found.
[ 26.500000] mount_root: switching to jffs2 overlay
# alle sind zimbies, bei denen in status NICHT 'PPid: 0' steht (also ein wert)
# tasklist if everything is broken with shell internals:
# for FILE in /proc/*; do case "$FILE" in */[0-9]*) read L1 <"$FILE/cmdline"; read NOP L2 <"$FILE/status"; echo "$FILE: '${L1:-[$L2]}'"; esac; done
# for FILE in /proc/*; do case "$FILE" in */[0-9]*) read LINE <"$FILE/cmdline"; echo "$FILE: '$LINE'"; esac; done
/proc/1: '/sbin/procd'
/proc/102: ''
/proc/10817: ''
/proc/10876: '/usr/sbin/hostapd-P/var/run/wifi-phy1.pid-B/var/run/hostapd-phy1.conf'
/proc/10896: '/usr/sbin/hostapd-P/var/run/wifi-phy0.pid-B/var/run/hostapd-phy0.conf'
/proc/14839: ''
/proc/155: ''
/proc/2: ''
/proc/2433: ''
/proc/2534: ''
/proc/2660: '/usr/sbin/dropbear-F-P/var/run/dropbear.1.pid-p22-K300'
/proc/278: ''
/proc/2785: '-ash'
/proc/3: ''
/proc/31: ''
/proc/3182: '/sbin/askfirst/bin/ash--login'
/proc/32363: ''
/proc/3349: ''
/proc/371: ''
/proc/3885: '/usr/sbin/dropbear-F-P/var/run/dropbear.1.pid-p22-K300'
/proc/5: ''
/proc/5060: ''
/proc/62: ''
/proc/63: ''
/proc/64: ''
/proc/7: ''
Making all in iptables
make[6]: Entering directory `/home/bastian/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/iptables-1.4.21/iptables'
/bin/bash ../libtool --tag=CC --mode=link mips-openwrt-linux-uclibc-gcc -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -DALL_INCLUSIVE -DENABLE_IPV4 -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -I/home/bastian/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/iptables-1.4.21/include -I/home/bastian/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.14/user_headers/include -ffunction-sections -fdata-sections -DNO_LEGACY -L../extensions/ -liptext -liptext4 -L/home/bastian/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib -L/home/bastian/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/lib -L/home/bastian/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/bastian/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib -Wl,--gc-sections -o xtables-multi xtables_multi-xtables-multi.o xtables_multi-iptables-xml.o xtables_multi-iptables-save.o xtables_multi-iptables-restore.o xtables_multi-iptables-standalone.o xtables_multi-iptables.o xtables_multi-xshared.o ../libiptc/libip4tc.la ../libxtables/libxtables.la -lm
OpenWrt-libtool: link: mips-openwrt-linux-uclibc-gcc -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -DALL_INCLUSIVE -DENABLE_IPV4 -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -I/home/bastian/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/iptables-1.4.21/include -I/home/bastian/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.14/user_headers/include -ffunction-sections -fdata-sections -DNO_LEGACY -Wl,--gc-sections -o .libs/xtables-multi xtables_multi-xtables-multi.o xtables_multi-iptables-xml.o xtables_multi-iptables-save.o xtables_multi-iptables-restore.o xtables_multi-iptables-standalone.o xtables_multi-iptables.o xtables_multi-xshared.o -L../extensions/ -liptext -liptext4 -L/home/bastian/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib -L/home/bastian/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/lib -L/home/bastian/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/bastian/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib ../libiptc/.libs/libip4tc.so ../libxtables/.libs/libxtables.so -ldl -lm
../libxtables/.libs/libxtables.so: warning: gethostbyaddr is obsolescent, use getaddrinfo() instead.
../libxtables/.libs/libxtables.so: warning: gethostbyname is obsolescent, use getnameinfo() instead.
xtables_multi-xtables-multi.o:(.rodata.multi_subcommands+0x34): undefined reference to `ip6tables_main'
xtables_multi-xtables-multi.o:(.rodata.multi_subcommands+0x3c): undefined reference to `ip6tables_main'
xtables_multi-xtables-multi.o:(.rodata.multi_subcommands+0x44): undefined reference to `ip6tables_save_main'
xtables_multi-xtables-multi.o:(.rodata.multi_subcommands+0x4c): undefined reference to `ip6tables_save_main'
xtables_multi-xtables-multi.o:(.rodata.multi_subcommands+0x54): undefined reference to `ip6tables_restore_main'
xtables_multi-xtables-multi.o:(.rodata.multi_subcommands+0x5c): undefined reference to `ip6tables_restore_main'
collect2: error: ld returned 1 exit status
make[6]: *** [xtables-multi] Error 1
make[6]: Leaving directory `/home/bastian/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/iptables-1.4.21/iptables'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/bastian/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/iptables-1.4.21'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/bastian/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/iptables-1.4.21'
make[3]: *** [/home/bastian/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/iptables-1.4.21/.built] Error 2
Thu Jun 4 13:37:13 2015 daemon.info dnsmasq-dhcp[14465]: DHCPOFFER(lo) 127.0.0.2 00:00:00:00:00:00
Thu Jun 4 13:37:13 2015 daemon.err dnsmasq-dhcp[14465]: ARP-cache injection failed: Invalid argument
Thu Jun 4 13:37:13 2015 daemon.info dnsmasq-dhcp[14465]: DHCPDISCOVER(lo) 127.0.0.2 00:00:00:00:00:00
Thu Jun 4 13:37:13 2015 daemon.info dnsmasq-dhcp[14465]: DHCPOFFER(lo) 127.0.0.2 00:00:00:00:00:00
Thu Jun 4 13:37:13 2015 daemon.err dnsmasq-dhcp[14465]: ARP-cache injection failed: Invalid argument
Thu Jun 4 13:37:13 2015 daemon.info dnsmasq-dhcp[14465]: DHCPDISCOVER(lo) 127.0.0.2 00:00:00:00:00:00
Thu Jun 4 13:37:13 2015 daemon.info dnsmasq-dhcp[14465]: DHCPOFFER(lo) 127.0.0.2 00:00:00:00:00:00
Thu Jun 4 13:37:13 2015 daemon.err dnsmasq-dhcp[14465]: ARP-cache injection failed: Invalid argument
Thu Jun 4 13:37:13 2015 daemon.info dnsmasq-dhcp[14465]: DHCPDISCOVER(lo) 127.0.0.2 00:00:00:00:00:00
Thu Jun 4 13:37:13 2015 daemon.info dnsmasq-dhcp[14465]: DHCPOFFER(lo) 127.0.0.2 00:00:00:00:00:00
Thu Jun 4 13:37:13 2015 daemon.err dnsmasq-dhcp[14465]: ARP-cache injection failed: Invalid argument
Thu Jun 4 13:37:13 2015 daemon.info dnsmasq-dhcp[14465]: DHCPDISCOVER(lo) 127.0.0.2 00:00:00:00:00:00
Thu Jun 4 13:37:13 2015 daemon.info dnsmasq-dhcp[14465]: DHCPOFFER(lo) 127.0.0.2 00:00:00:00:00:00
Thu Jun 4 13:37:13 2015 daemon.err dnsmasq-dhcp[14465]: ARP-cache injection failed: Invalid argument
Thu Jun 4 13:37:13 2015 daemon.info dnsmasq-dhcp[14465]: DHCPDISCOVER(lo) 127.0.0.2 00:00:00:00:00:00
Thu Jun 4 13:37:13 2015 daemon.info dnsmasq-dhcp[14465]: DHCPOFFER(lo) 127.0.0.2 00:00:00:00:00:00
Thu Jun 4 13:37:13 2015 daemon.err dnsmasq-dhcp[14465]: ARP-cache injection failed: Invalid argument
Thu Jun 4 13:37:13 2015 daemon.info dnsmasq-dhcp[14465]: DHCPDISCOVER(lo) 127.0.0.2 00:00:00:00:00:00
Thu Jun 4 13:37:13 2015 daemon.info dnsmasq-dhcp[14465]: DHCPOFFER(lo) 127.0.0.2 00:00:00:00:00:00
Thu Jun 4 13:37:13 2015 daemon.err dnsmasq-dhcp[14465]: ARP-cache injection failed: Invalid argument
Thu Jun 4 13:37:13 2015 daemon.info dnsmasq-dhcp[14465]: DHCPDISCOVER(lo) 127.0.0.2 00:00:00:00:00:00
root@UFO:~ cat
root@UFO:~ reb
root@UFO:~
root@UFO:~
root@UFO:~
root@UFO:~
root@UFO:~ cat /etc/banner
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
CHAOS CALMER (Bleeding Edge, r45702)
-----------------------------------------------------
* 1 1/2 oz Gin Shake with a glassful
* 1/4 oz Triple Sec of broken ice and pour
* 3/4 oz Lime Juice unstrained into a goblet.
* 1 1/2 oz Orange Juice
* 1 tsp. Grenadine Syrup
-----------------------------------------------------
root@UFO:~
# /usr/local/freeswitch/storage/fax/8850/inbox/*
# /usr/local/freeswitch/storage/fax/failed_fax_emails.log
# /usr/local/freeswitch/storage/fax/emailed_faxes.log
#
# grep 'postfix/' /var/log/syslog | tail -n100
# ejbw-pbx-mailversand in syslog
May 31 11:29:01 ejbw-pbx postfix/pickup[28044]: 794D741BC7: uid=0 from=<root>
May 31 11:29:01 ejbw-pbx postfix/cleanup[28991]: 794D741BC7: message-id=<20150531092901.794D741BC7@ejbw-pbx>
May 31 11:29:01 ejbw-pbx postfix/qmgr[6758]: 794D741BC7: from=<root@ejbw-pbx>, size=573, nrcpt=1 (queue active)
May 31 11:29:01 ejbw-pbx postfix/local[20554]: 794D741BC7: to=<root@ejbw-pbx>, orig_to=<root>, relay=local, delay=0.07, delays=0.05/0/0/0.02, dsn=2.0.0, status=sent (delivered to mailbox)
May 31 11:29:01 ejbw-pbx postfix/qmgr[6758]: 794D741BC7: removed
[ 83.120000] jffs2: iget() failed for ino #114
[ 83.130000] jffs2: warning: (1416) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 83.140000] jffs2: warning: (1416) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 83.150000] jffs2: iget() failed for ino #114
[ 83.160000] jffs2: warning: (1420) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 83.170000] jffs2: warning: (1420) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 83.170000] jffs2: iget() failed for ino #114
[ 83.190000] jffs2: warning: (1421) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 83.190000] jffs2: warning: (1421) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 83.200000] jffs2: iget() failed for ino #114
[ 83.210000] jffs2: warning: (1421) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 83.220000] jffs2: warning: (1421) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 83.220000] jffs2: iget() failed for ino #114
[ 83.260000] jffs2: warning: (1422) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 83.270000] jffs2: warning: (1422) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 83.280000] jffs2: iget() failed for ino #114
[ 83.330000] jffs2: warning: (1424) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 83.340000] jffs2: warning: (1424) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 83.340000] jffs2: iget() failed for ino #114
[ 83.350000] jffs2: warning: (1427) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 83.360000] jffs2: warning: (1427) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 83.370000] jffs2: iget() failed for ino #114
[ 83.380000] jffs2: warning: (1424) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 83.390000] jffs2: warning: (1424) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 83.400000] jffs2: iget() failed for ino #114
[ 83.410000] jffs2: warning: (1428) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 83.410000] jffs2: warning: (1428) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 83.420000] jffs2: iget() failed for ino #114
[ 83.430000] jffs2: warning: (1429) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 83.440000] jffs2: warning: (1429) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 83.450000] jffs2: iget() failed for ino #114
[ 83.460000] jffs2: warning: (1429) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 83.460000] jffs2: warning: (1429) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 83.470000] jffs2: iget() failed for ino #114
[ 83.510000] jffs2: warning: (1430) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 83.520000] jffs2: warning: (1430) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 83.530000] jffs2: iget() failed for ino #114
[ 83.570000] jffs2: warning: (1432) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 83.580000] jffs2: warning: (1432) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 83.590000] jffs2: iget() failed for ino #114
[ 83.600000] jffs2: warning: (1435) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 83.600000] jffs2: warning: (1435) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 83.610000] jffs2: iget() failed for ino #114
[ 83.620000] jffs2: warning: (1432) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 83.630000] jffs2: warning: (1432) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 83.640000] jffs2: iget() failed for ino #114
[ 83.650000] jffs2: warning: (1436) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 83.650000] jffs2: warning: (1436) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 83.660000] jffs2: iget() failed for ino #114
[ 83.670000] jffs2: warning: (1437) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 83.680000] jffs2: warning: (1437) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 83.690000] jffs2: iget() failed for ino #114
[ 83.700000] jffs2: warning: (1437) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 83.700000] jffs2: warning: (1437) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 83.710000] jffs2: iget() failed for ino #114
[ 83.750000] jffs2: warning: (1438) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 83.760000] jffs2: warning: (1438) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 83.770000] jffs2: iget() failed for ino #114
[ 83.810000] jffs2: warning: (1440) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 83.820000] jffs2: warning: (1440) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 83.830000] jffs2: iget() failed for ino #114
[ 83.840000] jffs2: warning: (1443) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 83.840000] jffs2: warning: (1443) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 83.850000] jffs2: iget() failed for ino #114
[ 83.860000] jffs2: warning: (1440) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 83.870000] jffs2: warning: (1440) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 83.880000] jffs2: iget() failed for ino #114
[ 83.890000] jffs2: warning: (1444) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 83.890000] jffs2: warning: (1444) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 83.900000] jffs2: iget() failed for ino #114
[ 83.910000] jffs2: warning: (1445) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 83.920000] jffs2: warning: (1445) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 83.930000] jffs2: iget() failed for ino #114
[ 83.940000] jffs2: warning: (1445) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 83.950000] jffs2: warning: (1445) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 83.950000] jffs2: iget() failed for ino #114
[ 84.020000] jffs2: warning: (1446) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 84.030000] jffs2: warning: (1446) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 84.040000] jffs2: iget() failed for ino #114
[ 84.080000] jffs2: warning: (1448) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 84.090000] jffs2: warning: (1448) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 84.090000] jffs2: iget() failed for ino #114
[ 84.100000] jffs2: warning: (1451) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 84.110000] jffs2: warning: (1451) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 84.120000] jffs2: iget() failed for ino #114
[ 84.130000] jffs2: warning: (1448) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 84.140000] jffs2: warning: (1448) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 84.140000] jffs2: iget() failed for ino #114
[ 84.150000] jffs2: warning: (1452) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 84.160000] jffs2: warning: (1452) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 84.170000] jffs2: iget() failed for ino #114
[ 84.180000] jffs2: warning: (1453) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 84.190000] jffs2: warning: (1453) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 84.200000] jffs2: iget() failed for ino #114
[ 84.210000] jffs2: warning: (1453) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 84.210000] jffs2: warning: (1453) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 84.220000] jffs2: iget() failed for ino #114
[ 84.270000] jffs2: warning: (1454) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 84.280000] jffs2: warning: (1454) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 84.290000] jffs2: iget() failed for ino #114
[ 84.340000] jffs2: warning: (1456) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 84.350000] jffs2: warning: (1456) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 84.360000] jffs2: iget() failed for ino #114
[ 84.370000] jffs2: warning: (1459) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 84.380000] jffs2: warning: (1459) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 84.380000] jffs2: iget() failed for ino #114
[ 84.390000] jffs2: warning: (1456) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 84.400000] jffs2: warning: (1456) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 84.410000] jffs2: iget() failed for ino #114
[ 84.420000] jffs2: warning: (1460) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 84.430000] jffs2: warning: (1460) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 84.430000] jffs2: iget() failed for ino #114
[ 84.450000] jffs2: warning: (1461) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 84.450000] jffs2: warning: (1461) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 84.460000] jffs2: iget() failed for ino #114
[ 84.470000] jffs2: warning: (1461) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 84.480000] jffs2: warning: (1461) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 84.490000] jffs2: iget() failed for ino #114
[ 84.520000] jffs2: warning: (1462) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 84.530000] jffs2: warning: (1462) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 84.540000] jffs2: iget() failed for ino #114
[ 84.580000] jffs2: warning: (1464) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 84.590000] jffs2: warning: (1464) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 84.600000] jffs2: iget() failed for ino #114
[ 84.610000] jffs2: warning: (1467) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 84.620000] jffs2: warning: (1467) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 84.630000] jffs2: iget() failed for ino #114
[ 84.630000] jffs2: warning: (1464) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 84.640000] jffs2: warning: (1464) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 84.650000] jffs2: iget() failed for ino #114
[ 84.660000] jffs2: warning: (1468) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 84.670000] jffs2: warning: (1468) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 84.680000] jffs2: iget() failed for ino #114
[ 84.690000] jffs2: warning: (1469) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 84.700000] jffs2: warning: (1469) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 84.700000] jffs2: iget() failed for ino #114
[ 84.710000] jffs2: warning: (1469) jffs2_get_inode_nodes: Eep. No valid nodes for ino #114.
[ 84.720000] jffs2: warning: (1469) jffs2_do_read_inode_internal: no data nodes found for ino #114
[ 84.730000] jffs2: iget() failed for ino #114
root@Emilio-derZar:/#
Jan 01 01:01:21 ' [up 81s 17223680 bytes free] TERM:linux /etc/kalua_init [daemon.info] gen_loader() [OK] done '/tmp/loader' (in 2.82sec, using 563683 bytes in /tmp/kalua) - you MUST reinclude the new loader with 'LODEV= . /tmp/loader' if this is an interactive shell
root: /etc/init.d/apply_profile.code: ....working on section 'softwareinstall'
rm: can't stat '/etc/rc.d/S??olsrd': Input/output error
rm: can't stat '/etc/rc.d/K??olsrd': Input/output error
ln: /etc/rc.d/S65olsrd: Input/output error
rm: can't stat '/etc/rc.d/S??dnsmasq': Input/output error
rm: can't stat '/etc/rc.d/K??dnsmasq': Input/output error
ln: /etc/rc.d/S60dnsmasq: Input/output error
rm: can't stat '/etc/rc.d/S??crashlog_apport': Input/output error
rm: can't stat '/etc/rc.d/K??crashlog_apport': Input/output error
ln: /etc/rc.d/S99crashlog_apport: Input/output error
rm: can't stat '/etc/rc.d/S??count_reboots': Input/output error
rm: can't stat '/etc/rc.d/K??count_reboots': Input/output error
ln: /etc/rc.d/S11count_reboots: Input/output error
rm: can't stat '/etc/rc.d/S??generate_kalua_loader': Input/output error
rm: can't stat '/etc/rc.d/K??generate_kalua_loader': Input/output error
ln: /etc/rc.d/S00generate_kalua_loader: Input/output error
rm: can't stat '/etc/rc.d/S??generate_netparams': Input/output error
rm: can't stat '/etc/rc.d/K??generate_netparams': Input/output error
ln: /etc/rc.d/S41generate_netparams: Input/output error
rm: can't stat '/etc/rc.d/S??end_boot': Input/output error
rm: can't stat '/etc/rc.d/K??end_boot': Input/output error
ln: /etc/rc.d/S99end_boot: Input/output error
rm: can't stat '/etc/rc.d/S??prepare_stuff': Input/output error
rm: can't stat '/etc/rc.d/K??prepare_stuff': Input/output error
ln: /etc/rc.d/S70prepare_stuff: Input/output error
rm: can't stat '/etc/rc.d/S??netfilter': Input/output error
rm: can't stat '/etc/rc.d/K??netfilter': Input/output error
ln: /etc/rc.d/S45netfilter: Input/output error
rm: can't stat '/etc/rc.d/S??cron.user': Input/output error
rm: can't stat '/etc/rc.d/K??cron.user': Input/output error
ln: /etc/rc.d/S51cron.user: Input/output error
/etc/init.d/apply_profile.code: line 1812: /etc/init.d/samba: not found
/etc/init.d/apply_profile.code: line 1812: /etc/init.d/siproxd: not found
/etc/init.d/apply_profile.code: line 1812: /etc/init.d/netserver: not found
/etc/init.d/apply_profile.code: line 1812: /etc/init.d/ulogd: not found
/etc/init.d/apply_profile.code: line 1812: /etc/init.d/cron: not found
/etc/init.d/apply_profile.code: line 1812: /etc/init.d/firewall: not found
root: /etc/init.d/apply_profile.code: [ok] ready with section 'softwareinstall'
root: /etc/init.d/apply_profile.code: ....working on section 'system'
root: /etc/init.d/apply_profile.code: [ok] ready with section 'system'
root: /etc/init.d/apply_profile.code: ....working on section 'mail'
root: /etc/init.d/apply_profile.code: [ok] ready with section 'mail'
root: /etc/init.d/apply_profile.code: ....working on section 'wireless'
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
root: /etc/init.d/apply_profile.code: configuring radio0 ...
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Invalid argument
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Invalid argument
root: /etc/init.d/apply_profile.code: [ok] ready with section 'wireless'
root: /etc/init.d/apply_profile.code: ....working on section 'network'
root: /etc/init.d/apply_profile.code: [ok] ready with section 'network'
root: /etc/init.d/apply_profile.code: ....working on section 'dhcp'
uci: Entry not found
root: /etc/init.d/apply_profile.code: [ok] ready with section 'dhcp'
root: /etc/init.d/apply_profile.code: ....working on section 'aliases'
root: /etc/init.d/apply_profile.code: [ok] ready with section 'aliases'
root: /etc/init.d/apply_profile.code: ....working on section 'olsrd'
root: /etc/init.d/apply_profile.code: [ok] ready with section 'olsrd'
root: /etc/init.d/apply_profile.code: ....working on section 'sms'
root: /etc/init.d/apply_profile.code: [ok] ready with section 'sms'
root: /etc/init.d/apply_profile.code: ....working on section 'polipo'
root: /etc/init.d/apply_profile.code: [ok] ready with section 'polipo'
[ok] READY/synched - now type: reboot && exit
13:29 < johnf1911> the embedded space is far more constraining
13:29 < jow_laptop> well, there is libxml2, libssh, ... shouldn't be hard to write a C client
13:29 < jow_laptop> but its not cool
13:30 < johnf1911> bit disappointed with the updated version of sscep you helped me with yesterday
13:30 < johnf1911> it seg faults
13:30 < johnf1911> need to gdb it but it's going to need to wait until after I deploy these devices
13:30 < johnf1911> then I will rescue it from oldpackages
13:31 < jow_laptop> johnf1911: install gdbserver on your unit, run gdbserver :9000 /usr/bin/sscep ...
13:31 < jow_laptop> johnf1911: then in your buildroot, ./scripts/remote-gdb 192.168.1.1:9000 build_dir/target-*/sscep-*/sscep_dyn
13:31 < jow_laptop> type "c" to continue the program and if the SIGSEGV is catched, a "bt full"
13:32 < jow_laptop> thats the basic process
13:32 < jow_laptop> no need to copy unstripped binaries or something to the router
13:32 < johnf1911> yes, I read about that on the wiki
13:32 < johnf1911> it's pretty nice
13:32 < johnf1911> but I can't do it right now, not that high a priority
13:32 < jow_laptop> ok
13:32 < johnf1911> need to get this deployment process working right
13:32 < johnf1911> it is very elegant though
13:32 < johnf1911> like all of openwrt really
13:33 < johnf1911> what do you do with openwrt? I assume that you work on it professionally for someone
13:33 < jow_laptop> not really, just a hobby
13:33 < johnf1911> damn
13:33 < jow_laptop> since like 6+ years
13:34 < johnf1911> I need to admit I'm a bit surprised
13:34 < jow_laptop> I joined with a freifunk community background and then gradually shifted to the core development work
13:34 < johnf1911> even if it started as a hobby I'd have expected someone using it commercially to try to head hunt you
13:34 < johnf1911> at the same time, there are advantages to not turning your hobbies into jobs
13:34 < johnf1911> I work on routers and computers all day
13:35 < johnf1911> then, to relax
13:35 < johnf1911> I work on routers and computers???
13:35 < johnf1911> there's something wrong with that :)
13:35 < jow_laptop> yeah I (and others) get regular offers
13:35 < jow_laptop> but I don't want to work paid on openwrt
13:35 < jow_laptop> it helps if at least some develoeprs retain an outside perspective not driven by paid customer demands
13:37 < johnf1911> makes sense
13:37 < johnf1911> hopefully you have a day job that's similarly interesting and leverages your abilities well
13:37 < johnf1911> this is my first time doing openwrt based routers professionally
13:37 < johnf1911> but I do a lot of networking
13:38 < johnf1911> anyways, to work
# die kraftidioten
system.led_wan=led
system.led_wan.name=WAN
system.led_wan.sysfs=tp-link:green:wan
system.led_wan.trigger=netdev
system.led_wan.dev=eth0
system.led_wan.mode=link tx rx
system.led_lan1=led
system.led_lan1.name=LAN1
system.led_lan1.sysfs=tp-link:green:lan1
system.led_lan1.trigger=switch0
system.led_lan1.port_mask=0x04
system.led_lan2=led
system.led_lan2.name=LAN2
system.led_lan2.sysfs=tp-link:green:lan2
system.led_lan2.trigger=switch0
system.led_lan2.port_mask=0x08
system.led_lan3=led
system.led_lan3.name=LAN3
system.led_lan3.sysfs=tp-link:green:lan3
system.led_lan3.trigger=switch0
system.led_lan3.port_mask=0x10
system.led_lan4=led
system.led_lan4.name=LAN4
system.led_lan4.sysfs=tp-link:green:lan4
system.led_lan4.trigger=switch0
system.led_lan4.port_mask=0x02
system.led_wlan=led
system.led_wlan.name=WLAN
system.led_wlan.sysfs=tp-link:green:wlan
system.led_wlan.trigger=phy0tpt
# test ag71xx-patch:
# cp ag71xx-test.patch ./target/linux/ar71xx/patches-3.18/904-ag71xx-test.patch
# make target/linux/clean
# make -j25
# ap99 war r44945 - gesehen auf mit stube: r45447
# r45511 laesst kein sysupgrade zu
# factory und sysupgrade (beides geht nicht!)
# 841 v8
# ubuntu: nameserver: nmcli dev list iface wlan0 | grep name
# ssh -o UserKnownHostsFile=/dev/null root@$( ip route list exact '0.0.0.0/0' | cut -d' ' -f3 )
# roaming-change X301:
# wlan0: deauthenticated from a2:f3:c1:a8:75:db (Reason: 3=DEAUTH_LEAVING)
# hack HOTSPLOTS
# md5-hash1: rxvKaK7B$EMAzmsKx7OskN4WgRgO601
# md5-hash2: OA7Z/6NP$r7oTHgVBho/NTEw8wbLUM0
#
# jede minute wird per wget URL geholt:
# http://firmware.hotsplots.de/service/pulse3.0.php?hash=d19365367df2c3d9ed7b0acad8139ac0&csize=0&vers=3.0-521&intval=1&filter=off&vpn_s=vpn23.hotsplots.net&vpn_r=1&vpn_ok=0&vpn_service=openvpn
# d.h. alle anfragen an 'firmware.hotsplots.de' muessen beantwortet werden mit der gleichen antwort:
# einen shellscript, was direkt ausgefuehrt wird (kein https!)
# im shellscript muss stehen: grep -q "## HOTSPLOTS update 3.0 ##" /tmp/hs_update.txt
#
#
# leider ist 'update.update.url' = leer
#
# evtl. ueber ntp was holen?
/usr/sbin/ntpd -n -p 0.openwrt.pool.ntp.org
#
# debugmodus = touch /etc/hotsplots/debug
#
# in init: / md5 = d19365367df2c3d9ed7b0acad8139ac0 -> route-up.sh
wget -O /tmp/test.tar "http://firmware.hotsplots.de/service/getVPN3.0.php?hash=$md5"
root@liszt28-adhoc--2:~ tar tf /tmp/test.tar
hotsplots-ca.crt
vpn-routing.key
vpn-routing.crt
vpn-routing.conf
vpn-remote
route-up.sh
# -> vpn muss laufen, dann injecten in route-up.sh? -> nur http!
#
# HOTSPLOTS Firmware 3.0-521 (r38430)
# Linux version 3.10.32 (jontrup@splot3) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2013.05 r38430) ) #1 Thu Jul 17 17:25:25 CEST 2014
# Joerg Ontrup -> http://www.hotsplots.de/profile/heads/joerg-ontrup.html
#
#
# uci set uhttpd.main.config='/etc/httpd.conf'
# echo '/cgi-bin/:root:admin' >/etc/httpd.conf
# /etc/init.d/uhttpd restart
# -> http://192.168.43.254:8080 -> geht -> luci
#
# -> https://192.168.43.254:8080
# -> crash
root@HOTSPLOTS:/# ls -l /www/cgi-bin/[ 2608.000497] NETDEV WATCHDOG: eth0 (fsl-gianfar): transmit queue 4 timed out
[ 2608.007549] ------------[ cut here ]------------
[ 2608.012158] WARNING: at net/sched/sch_generic.c:255
[ 2608.017026] Modules linked in: pppoe pppox ppp_async ppp_generic slhc lib80211_crypt_tkip lib80211_crypt_ccmp lib80211_crypt_wep lib80211 ts_fsm ts_bm crc_ccitt xt_u32 nf_nat_tftp nf_conntrack_tftp nf_nat_snmp_basic nf_conntrack_snmp nf_nat_sip nf_conntrack_sip nf_nat_pptp nf_conntrack_pptp nf_nat_h323 nf_conntrack_h323 nf_nat_proto_gre nf_conntrack_proto_gre nf_nat_amanda ts_kmp nf_conntrack_amanda nf_conntrack_broadcast nf_nat_irc nf_nat_ftp nf_conntrack_irc nf_conntrack_ftp xt_REDIRECT ipt_MASQUERADE iptable_nat nf_nat_ipv4 xt_nat nf_nat xt_mark xt_time ipt_REJECT xt_TCPMSS xt_LOG xt_comment xt_multiport xt_mac xt_limit iptable_mangle iptable_filter xt_tcpudp xt_recent xt_helper xt_connmark xt_connbytes xt_conntrack xt_CT iptable_raw ip_tables xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack gpio_keys ebt_snat ebt_dnat ebt_arpreply ebt_ip ebt_arp ebt_redirect ebt_mark ebt_vlan ebt_stp ebt_pkttype ebt_mark_m ebt_limit ebt_among ebt_802_3 ebtable_nat ebtable_filter ebtable_broute ebtables ath9k mac80211 ath9k_common ath9k_hw ath cfg80211 compat arptable_filter arpt_mangle arp_tables sch_teql sch_tbf sch_sfq sch_red sch_prio sch_htb sch_gred sch_dsmark sch_codel em_text em_nbyte em_meta em_cmp cls_basic act_police act_ipt x_tables act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_hfsc sch_ingress leds_gpio booke_wdt ehci_platform ehci_hcd fsl_mph_dr_of tun button_hotplug input_core usbcore nls_base usb_common arc4 crypto_blkcipher crypto_hash ipv6
[ 2608.148719] CPU: 0 PID: 0 Comm: swapper Not tainted 3.10.32 #1
[ 2608.154545] task: c02f02e0 ti: c7ff2000 task.ti: c0304000
[ 2608.159934] NIP: c01cbc6c LR: c01cbc6c CTR: c01612a0
[ 2608.164890] REGS: c7ff3e70 TRAP: 0700 Not tainted (3.10.32)
[ 2608.170712] MSR: 00029000 <CE,EE,ME> CR: 44042042 XER: 20000000
[ 2608.176810]
GPR00: c01cbc6c c7ff3f20 c02f02e0 0000003f 00000006 00000005 000057f0 75652034
GPR08: c02f4174 c02f6af8 c02f6afc 00000004 0000011a 00000000 00000000 00000000
GPR16: c0000a00 c02f43e4 c028f95c 00200000 0008cde9 00000000 c032ffd0 c032fdd0
GPR24: c032fbd0 00000000 00200200 c032f9d0 c0300000 c02f0000 00000004 c781b000
[ 2608.206522] NIP [c01cbc6c] dev_watchdog+0x160/0x248
[ 2608.211393] LR [c01cbc6c] dev_watchdog+0x160/0x248
[ 2608.216173] Call Trace:
[ 2608.218614] [c7ff3f20] [c01cbc6c] dev_watchdog+0x160/0x248 (unreliable)
[ 2608.225235] [c7ff3f40] [c002d050] call_timer_fn.isra.38+0x28/0x80
[ 2608.231324] [c7ff3f60] [c002d208] run_timer_softirq+0x160/0x1a0
[ 2608.237240] [c7ff3fa0] [c0027dc0] __do_softirq+0xbc/0x16c
[ 2608.242642] [c7ff3ff0] [c000b424] call_do_softirq+0x14/0x24
[ 2608.248209] [c0305e60] [c0004374] do_softirq+0x60/0xa0
[ 2608.253343] [c0305e80] [c0027f78] irq_exit+0x4c/0x68
[ 2608.258303] [c0305e90] [c0007f34] timer_interrupt+0xe8/0x100
[ 2608.263959] [c0305eb0] [c000ca3c] ret_from_except+0x0/0x18
[ 2608.269443] --- Exception: 901 at arch_cpu_idle+0x24/0x58
[ 2608.269443] LR = arch_cpu_idle+0x24/0x58
[ 2608.279095] [c0305f70] [c005fe48] rcu_idle_enter+0x94/0xac (unreliable)
[ 2608.285713] [c0305f80] [c004a844] cpu_startup_entry+0xb0/0x10c
[ 2608.291540] [c0305fb0] [c000270c] rest_init+0x68/0x78
[ 2608.296594] [c0305fc0] [c02cd7a8] start_kernel+0x2cc/0x2e0
[ 2608.302072] [c0305ff0] [c00003c0] skpinv+0x2ac/0x2e8
[ 2608.307026] Instruction dump:
[ 2608.309985] 396b0074 4200ffac 4800004c 7fe3fb78 4bfea4fd 7fe4fb78 7c651b78 3c60c02b
[ 2608.317735] 7fc6f378 38638818 4cc63182 4807ab75 <0fe00000> 38000001 981c2126 813f00e8
[ 2608.325662] ---[ end trace ec89c8f1f8b7e23d ]---
#
# WAN = dhcp
# LAN = br-can = 192.168.43.254/24
#
# vpn23.hotsplots.net
PORT STATE SERVICE
22/tcp open ssh
5001/tcp open commplex-link
5002/tcp open rfe
5003/tcp open filemaker
5004/tcp open unknown
5009/tcp open airport-admin
9999/tcp closed abyss
#
# firmware.hotsplots.de
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
113/tcp closed auth
443/tcp open https
#
root@HOTSPLOTS:/# ps
PID USER VSZ STAT COMMAND
1 root 1480 S init
2 root 0 SW [kthreadd]
3 root 0 SW [ksoftirqd/0]
5 root 0 SW< [kworker/0:0H]
7 root 0 SW< [khelper]
8 root 0 SW [kworker/u2:1]
93 root 0 SW< [writeback]
95 root 0 SW< [bioset]
97 root 0 SW< [kblockd]
127 root 0 SW [kswapd0]
186 root 0 SW [fsnotify_mark]
722 root 0 SW< [ffe07000.spi]
786 root 0 SW< [deferwq]
1471 root 0 SWN [jffs2_gcd_mtd4]
1486 root 1484 S /bin/ash --login
1504 root 1484 S syslogd -C16
1506 root 1468 S klogd
1520 root 868 S /sbin/hotplug2 --override --persistent --set-worker
1648 root 1476 S udhcpc -t 0 -i eth0.2 -b -p /var/run/dhcp-eth0.2.pid
1738 root 0 SW [khubd]
1743 root 0 SW [kworker/u2:2]
1777 root 0 SW< [cfg80211]
2096 root 1480 S hostapd -P /var/run/wifi-phy0.pid -B /var/run/hostap
2535 root 1480 S crond -c /etc/crontabs -l 5
2546 root 1140 S /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
2556 root 1028 S /usr/sbin/uhttpd -f -h /www -r HOTSPLOTS -x /cgi-bin
2571 nobody 928 S /usr/sbin/dnsmasq -K -D -y -Z -b -E -s lan -S /lan/
2614 root 3168 S /usr/sbin/openvpn --syslog openvpn(vpn_routing) --wr
2647 root 1476 S /usr/sbin/ntpd -n -p 0.openwrt.pool.ntp.org -p 1.ope
2650 root 1088 S /sbin/hs_watchd
3085 root 0 SW [kworker/0:0]
3500 root 0 SW [kworker/0:1]
3685 root 0 SW [kworker/0:2]
3826 root 1472 R ps
# Sphairon 1113 VDSL Modem - 50mbit
# http://www.allnet.de/de/allnet-brand/produkte/vdsl2/vdsl2modem-router/p/allnet-all126as2-vdsl2-slave-modem-geeignet-fuer-vdsl2-highspeed-internet/
#
# http://www.onlinekosten.de/forum/showthread.php?t=135750&page=10
# http://www.easy-computerservice.de/html/vdsl_mit_vorhandener_firewall_.html
#
# netkom = translumina networks ag
# http://www.mygate.de/fileadmin/templates/mygate.net/pdf/130515_Bestellformular_Thueringer_Netkom_FTTH_NEU.pdf
# Internetverbindung wurde erfolgreich erneuert. IP-Adresse: 91.137.62.100, DNS-Server: 100.64.0.135 und 100.64.0.136, Gateway: 91.137.63.254
# Internetverbindung wurde erfolgreich hergestellt. IP-Adresse: 91.137.62.100, DNS-Server: 100.64.0.135 und 100.64.0.136, Gateway: 91.137.63.254
# http://www.pcwelt.de/ratgeber/Fritzbox-Hacks__Der_Router_als_Webserver-Linux_Workshop-8669093.html
# evtl. ist das:
91.137.62.100/22 = 255.255.252.0 -> hostmax=254
91.137.60.1 ... 91.137.63.254
# mit DHCP bekommt das zyxel:
# 100.127.64.12 / 255.255.192.0
# zyxel = langsam: 1727 kbps /19374 kbps
/*
* /var/flash/ar7.cfg
* Sun Apr 12 15:32:41 2015
*/
meta { encoding = "utf-8"; }
ar7cfg {
mode = dsldmode_router;
active_provider = "ThueringenDSL";
active_name = "";
igddenabled = yes;
igdd_control_enabled = no;
wan_bridge_with_dhcpc = yes;
wan_bridge_gateway = 0.0.0.0;
dhcpc_use_static_dns = no;
dhcp_dslforumorg = no;
ethmode = ethmode_bridge;
tcom_targetarch = no;
vdsl_resalearch = no;
aontv_arch = no;
hsi_use_wan_vlan = yes;
hsi_vlancfg {
vlanencap = vlanencap_none;
vlanid = 0;
vlanprio = 0;
}
mtu_cutback_mode = mtumode_auto;
mtu_cutback = 1500;
StatisticStartOfMonth = 1;
enable_mac_override = yes;
macdsl_override = 00:00:00:00:00:00;
ipv6mode = ipv6_off;
ipv4mode = ipv4_normal;
serialcfg {
mode = serialmode_off;
number = "*99#";
provider = "internet.t-mobile";
username = "$$$$2YQX2YCPBFXQC6TZPXDKTVMQPMRIC3OWRIKELNYJ33I3VDXLWQS6W3AV4SCK1POFKYXCD2ULKI45CKXO";
passwd = "$$$$5BWHV33DURRYDGFWQEMEZUZV3IBKMGSPMS3UQ1BDIG2HUHUUX4RD1224T1XQT2QXXE5KSHGFYOSXMKXO";
connect_chatscript = "ABORT BUSY ABORT 'NO CARRIER'",
"ABORT VOICE ABORT 'NO DAILTONE'",
"ABORT 'NO ANSWER' ABORT DELAYED",
"ABORT ERROR", "TIMEOUT 20",
"'' 'AT+cgdcont=1,\"IP\",\"${provider}\"'",
"OK 'ATDT${number}'", "CONNECT",
"WAIT 2";
stay_always_online = no;
inactivity_timeout = 1m;
backup {
enabled = no;
quickstart = serialquickstart_off;
downtime = 3m;
reverttime = 30m;
}
# gzip -d decode_passwords.tgz
# ls -l decode_passwords.tar
-rw-r--r-- 1 root root 40960 Oct 2 2014 decode_passwords.tar
# tar xvf decode_passwords.tar
decode_passwords
micro_decode
md5sums
sha1sums
sha256sums
sha512sums
# grep -o -E '"[$]{4}.*"' /var/flash/ar7.cfg | sh decode_passwords
"ppp"
"ppp"
"ftpuser"
"fm1204"
"@CompatMode"
"fm1204"
# grep -o -E '"[$]{4}.*"' /var/flash/voip.cfg | sh decode_passwords
"4936434684011"
"oKa38gHpf"
"4936434684032"
"oKa38gHpf"
"4936434684033"
"oKa38gHpf"
#
# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: tunl0: <NOARP> mtu 1480 qdisc noop
link/ipip 0.0.0.0 brd 0.0.0.0
3: sit0: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
4: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP200> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 34:81:c4:c3:d8:38 brd ff:ff:ff:ff:ff:ff
5: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP200> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 34:81:c4:c3:d8:39 brd ff:ff:ff:ff:ff:ff
6: eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP200> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 34:81:c4:c3:d8:3d brd ff:ff:ff:ff:ff:ff
7: eth3: <NO-CARRIER,BROADCAST,MULTICAST,UP200> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 34:81:c4:c3:d8:3e brd ff:ff:ff:ff:ff:ff
8: wasp: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:de:ad:be:ef:ca brd ff:ff:ff:ff:ff:ff
9: ptm_vr9: <BROADCAST,MULTICAST,UP,LOWER_UP100> mtu 1500 qdisc tbf qlen 1000
link/ether 34:81:c4:c3:d8:3c brd ff:ff:ff:ff:ff:ff
10: adsl: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 2000 qdisc pfifo_fast qlen 32
link/[19]
11: lan: <BROADCAST,MULTICAST,UP,LOWER_UP200> mtu 1500 qdisc noqueue
link/ether 34:81:c4:c3:d8:38 brd ff:ff:ff:ff:ff:ff
inet 192.168.178.1/24 brd 192.168.178.255 scope global lan
inet 169.254.1.1/16 brd 169.254.255.255 scope global lan:0
inet6 fe80::3681:c4ff:fec3:d838/64 scope link
valid_lft forever preferred_lft forever
12: guest: <BROADCAST,MULTICAST,UP,LOWER_UP200> mtu 1500 qdisc noqueue
link/ether 34:81:c4:c3:d8:38 brd ff:ff:ff:ff:ff:ff
inet 192.168.179.1/24 brd 192.168.179.255 scope global guest
inet6 fe80::3681:c4ff:fec3:d838/64 scope link
valid_lft forever preferred_lft forever
13: dsl: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP200> mtu 1500 qdisc pfifo_fast qlen 100
link/ppp
inet 192.168.178.1/32 scope global dsl
14: wifi0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
link/ieee802.11 34:81:c4:c3:d8:3a brd ff:ff:ff:ff:ff:ff
15: wifi1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
link/ieee802.11 34:81:c4:c3:d8:3b brd ff:ff:ff:ff:ff:ff
16: ath0: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 34:81:c4:c3:d8:3a brd ff:ff:ff:ff:ff:ff
17: ath1: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 34:81:c4:c3:d8:3b brd ff:ff:ff:ff:ff:ff
18: wlan: <BROADCAST,MULTICAST,UP,LOWER_UP200> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 34:81:c4:c3:d8:38 brd ff:ff:ff:ff:ff:ff
#
# ip r
100.64.0.6 dev dsl metric 4
100.64.0.68 dev dsl metric 3
100.64.0.5 dev dsl metric 4
100.64.0.135 dev dsl metric 2
192.168.180.1 dev dsl metric 2
100.64.0.67 dev dsl metric 3
192.168.180.2 dev dsl metric 2
100.64.0.136 dev dsl metric 2
192.168.178.0/24 dev lan src 192.168.178.1
192.168.179.0/24 dev guest src 192.168.179.1
91.137.32.0/19 dev dsl metric 2
100.126.64.0/18 dev dsl metric 3
100.127.64.0/18 dev dsl metric 4
169.254.0.0/16 dev lan src 169.254.1.1
default dev dsl metric 2
# cat /proc/net/vlan/config
VLAN Dev name | VLAN ID
Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD
#
# # Dach, Fruehsteck, normal,normal, normal(buero), eg, keller
# let it crash: