Skip to content

Instantly share code, notes, and snippets.

View yanosz's full-sized avatar
Drawn by the tides of confusion

yanosz yanosz

Drawn by the tides of confusion
View GitHub Profile
= Project: Pad-based salespoint
== Intro:
At my relief organisation there's a frige. Everybody is able to take out drinks an to pay using cash.
This happends on a "trust" basis: Everybody puts the right number of coins in a cup nearby
- OR - marks, that's he's going to pay later one.
== Idea / Problem:
We don't know how many drinks are sold. People have outstanding credits for quite a while.
This makes buying drinks cumbersome.
{ "router" : "a2:f3:c1:5c:59:24", "neighbor" : "06:80:5b:34:b7:f9", "label" : "1.118" }
{ "router" : "a2:f3:c1:5c:59:24", "neighbor" : "56:54:78:6b:e2:34", "label" : "1.000" }
{ "router" : "a2:f3:c1:5c:59:24", "gateway" : "a0:f3:c1:5b:59:24", "label" : "TT" }
{ "router" : "a2:f3:c1:5c:59:24", "gateway" : "00:22:43:5f:70:03", "label" : "TT" }
{ "router" : "a2:f3:c1:5c:59:24", "gateway" : "16:e4:66:c0:a9:92", "label" : "TT" }
{ "primary" : "a2:f3:c1:5c:59:24" }
{ "router" : "52:54:00:12:62:97", "neighbor" : "52:54:00:4a:0d:02", "label" : "1.015" }
{ "router" : "52:54:00:12:62:97", "gateway" : "92:09:b2:49:ac:e7", "label" : "TT" }
{ "primary" : "52:54:00:12:62:97" }
{ "router" : "da:5d:4c:af:42:0c", "neighbor" : "06:80:5b:34:b7:f9", "label" : "1.250" }
{
'version' : '1.1.2',
'updated_at': '2014-12-09T07:39:22+00:00',
'community': {
'href': 'URL-to_API-FILE.json' // May be embedded
}
'nodes' : [{
'id' : "r_0815", // To be detailed: Non-Numeric IDs? Why?
'version': '1.1.1',
'updated_at': '2014-12-09T07:39:22+00:00',
### Hetzner Online AG - installimage
# Loopback device:
auto lo
iface lo inet loopback
# device: eth0
auto eth0
iface eth0 inet static
address 78.46.91.136
broadcast 78.46.91.159
Status 500 Internal Server Error
/usr/lib/lua/luci/dispatcher.lua:448: Failed to execute function dispatcher target for entry '/'.
The called action terminated with an exception:
/usr/lib/lua/luci/dispatcher.lua:448: Failed to execute firstchild dispatcher target for entry '/admin'.
The called action terminated with an exception:
/usr/lib/lua/luci/dispatcher.lua:448: Failed to execute function dispatcher target for entry '/admin/status'.
The called action terminated with an exception:
/usr/lib/lua/luci/dispatcher.lua:448: Failed to execute template dispatcher target for entry '/admin/status/overview'.
The called action terminated with an exception:
root@e894f6f58040:/tmp/usr/sbin# ./tcpdump -i br-freifunk icmp6
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on br-freifunk, link-type EN10MB (Ethernet), capture size 65535 bytes
20:32:26.518155 IP6 fe80::1 > ff02::1: ICMP6, router advertisement, length 88
20:32:27.521492 IP6 2001:67c:20a0:b111:ea94:f6ff:fef5:8040 > ff02::1:ff00:1: ICMP6, neighbor solicitation, who has fe80::1, length 32
20:32:28.520168 IP6 2001:67c:20a0:b111:ea94:f6ff:fef5:8040 > ff02::1:ff00:1: ICMP6, neighbor solicitation, who has fe80::1, length 32
20:32:29.520171 IP6 2001:67c:20a0:b111:ea94:f6ff:fef5:8040 > ff02::1:ff00:1: ICMP6, neighbor solicitation, who has fe80::1, length 32
20:32:35.954879 IP6 fe80::3e97:eff:fe9d:b5f1 > ff02::1: ICMP6, echo request, seq 1, length 64
20:32:35.955116 IP6 fe80::ea94:f6ff:fef5:8040 > fe80::3e97:eff:fe9d:b5f1: ICMP6, echo reply, seq 1, length 64
root@e894f6f58040:/tmp/usr/sbin# ./tcpdump -i br-freifunk icmp6
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on br-freifunk, link-type EN10MB (Ethernet), capture size 65535 bytes
20:36:11.714174 IP6 fe80::ea94:f6ff:fef5:8040 > ff02::1:ff00:1: ICMP6, neighbor solicitation, who has fe80::1, length 32
20:36:12.710198 IP6 fe80::ea94:f6ff:fef5:8040 > ff02::1:ff00:1: ICMP6, neighbor solicitation, who has fe80::1, length 32
20:36:13.710174 IP6 fe80::ea94:f6ff:fef5:8040 > ff02::1:ff00:1: ICMP6, neighbor solicitation, who has fe80::1, length 32
20:36:15.295772 IP6 fe80::ea94:f6ff:fef5:8040 > ff02::1:ff00:1: ICMP6, neighbor solicitation, who has fe80::1, length 32
20:36:16.290173 IP6 fe80::ea94:f6ff:fef5:8040 > ff02::1:ff00:1: ICMP6, neighbor solicitation, who has fe80::1, length 32
20:36:17.290174 IP6 fe80::ea94:f6ff:fef5:8040 > ff02::1:ff00:1: ICMP6, neighbor solicitation, who has fe80::1, length 32
20:36:18.296783 IP6 fe80::ea94:f6ff:fef5:8040 > ff02::1:ff00:1: ICMP6, neighbor
root@e894f6f58040:/sys/devices/virtual/net/br-freifunk/bridge# ls -lh
-rw-r--r-- 1 root root 4.0K Apr 20 15:45 ageing_time
-r--r--r-- 1 root root 4.0K Apr 20 15:45 bridge_id
--w------- 1 root root 4.0K Apr 20 15:45 flush
-rw-r--r-- 1 root root 4.0K Apr 20 15:45 forward_delay
-r--r--r-- 1 root root 4.0K Apr 20 15:45 gc_timer
-rw-r--r-- 1 root root 4.0K Apr 20 15:45 group_addr
-rw-r--r-- 1 root root 4.0K Apr 20 15:45 group_fwd_mask
-rw-r--r-- 1 root root 4.0K Apr 20 15:45 hash_elasticity
-rw-r--r-- 1 root root 4.0K Apr 20 15:45 hash_max
router id 10.159.255.251;
define ownas = 65528;
table ibgp; # internal BGP peerings
table ebgp; # external (icvpn) BGP peerings
table freifunk; # kernel table 66 for routing from ff network
debug protocols all;
### functions ###
root@icvpn:/etc/bird# tail -n 50 /var/log/daemon.log
Feb 1 13:50:32 icvpn bird6: p_maintbl: Connected to table ebgp
Feb 1 13:50:32 icvpn bird6: p_maintbl: State changed to feed
Feb 1 13:50:32 icvpn bird6: p_ibgptbl: Starting
Feb 1 13:50:32 icvpn bird6: p_ibgptbl: Connected to table ebgp
Feb 1 13:50:32 icvpn bird6: p_ibgptbl: Connected to table ibgp
Feb 1 13:50:32 icvpn bird6: p_ibgptbl: State changed to feed
Feb 1 13:50:32 icvpn bird6: p_freitbl: Starting
Feb 1 13:50:32 icvpn bird6: p_freitbl: Connected to table ibgp
Feb 1 13:50:32 icvpn bird6: p_freitbl: Connected to table freifunk