Commit Graph

877 Commits

Author SHA1 Message Date
Matthias Schiffer 5f9fc05c06 gluon-ebtables-filter-multicast: allow hop-by-hop options as ICMPv6 is sometimes prefixed by an HBH header 2014-11-13 02:37:30 +01:00
Matthias Schiffer 3e5206d4f4 Merge remote-tracking branch 'origin/status-page-164' 2014-11-13 01:37:18 +01:00
Nils Schneider a270b9a67f status-page: escape html, move script to body 2014-11-13 01:36:38 +01:00
Nils Schneider 4e79c0437d status-page: lua rewrite, use gluon-neighbour-info 2014-10-27 23:21:40 +01:00
ohrensessel 8a349f4131 Fix ebtables dhcpv6 rules
the ports were interchanged, see the following packet flow:

client:546 --> [ff02::1:2]:547
server:547 --> client:546

therefore we need to allow outgoing multicast packets with dst-port 547
and unicast packets from bat0 to clients with dst-port 546 and 547 in the other direction
2014-10-19 16:02:30 +02:00
Kokel a4a75281db deactivate multicast_mode by default 2014-10-05 15:24:58 +02:00
Matthias Schiffer 567b8133f3 gluon-luci-admin: fix SSH keys being removed when a password is set 2014-10-03 00:47:48 +02:00
Matthias Schiffer 91a85c80ee gluon-mesh-vpn-fastd: use delete_all instead of foreach to delete the old peers 2014-09-15 21:50:43 +02:00
Matthias Schiffer 10ea4ecd55 Configure unique MAC addresses for all WLAN interfaces 2014-09-15 19:55:09 +02:00
Matthias Schiffer afecfc43f6 Add utility function to generate unique MAC addresses derived from the primary MAC 2014-09-15 19:55:09 +02:00
Matthias Schiffer 7f63515332 Fix mesh-batman-adv-core legacy script path 2014-09-15 19:55:09 +02:00
Matthias Schiffer 8ae79ac83b Remove obsolete legacy upgrade script 2014-09-15 19:55:09 +02:00
Nils Schneider 65f11b1c75 gluon-node-info: remove fixup-owner script 2014-09-15 19:54:30 +02:00
Nils Schneider d3aea8343b gluon-core: port initial/020-wireless to lua 2014-09-15 19:50:10 +02:00
Nils Schneider bb612c0b45 Merge pull request #74 from freifunk-gluon/authorized-keys
gluon-authorized-keys: add keys from site.conf
2014-09-15 19:20:01 +02:00
Nils Schneider 318cb29a0a gluon-authorized-keys: add keys from site.conf
This package will run as invariant script after each upgrade and copy
all keys from site.conf's authorized_keys entry to
/etc/dropbear/authorized_keys.

Existing keys will be preserved.

The site.conf entry 'authorized_keys' is required (if this package is
selected) and must contain a list of strings, each representing a line
of the resulting file.
2014-09-15 19:19:21 +02:00
Nils Schneider eb784fdd00 Merge pull request #69 from freifunk-gluon/gluon-neighbour-info
gluon-neighbour-info: query direct neighbours
2014-09-15 18:52:25 +02:00
Nils Schneider b42c6a65fe Merge pull request #75 from freifunk-gluon/node_id
gluon-core: add node_id() to gluon.util
2014-09-11 12:52:45 +02:00
Nils Schneider 52e704ee86 gluon-core: add node_id() to gluon.util 2014-09-11 12:27:29 +02:00
Matthias Schiffer 2a1c9f11b4 lua-platform-info: add x86 support 2014-09-09 17:30:45 +02:00
Matthias Schiffer c1068fef42 autoupdater: exit when the image name is not defined for a hardware model 2014-09-09 16:07:35 +02:00
Nils Schneider f36a58e77d Merge pull request #73 from freifunk-gluon/igmp-snoop-disable
mesh-batman-adv-core: disable igmp_snooping on br-client
2014-09-09 14:06:35 +02:00
Nils Schneider 1fafaeb558 mesh-batman-adv-core: disable igmp_snooping on br-client
IGMP snooping causes serious trouble with IPv6 neighbour discovery.
2014-09-09 11:29:51 +02:00
Nils Schneider 862a480506 gluon-neighbour-info: global timeout 2014-09-06 15:40:03 +02:00
Nils Schneider 396ff9ce49 gluon-neighbour-info: newlines between responses 2014-09-06 14:10:43 +02:00
Nils Schneider da924e5a61 gluon-neighbour-info: cleanup, use recv instead of recvfrom 2014-09-06 14:02:19 +02:00
Nils Schneider aa9d6b662d Merge pull request #72 from freifunk-gluon/fastd-site-enable
mesh-vpn-fastd: enable from site.conf
2014-09-06 13:38:43 +02:00
Nils Schneider 34a40708af Merge pull request #70 from jplitza/patch-2
gluon-core: Remove VERSION_DIR hack
2014-09-06 13:33:51 +02:00
Nils Schneider 31976c242d mesh-vpn-fastd: enable from site.conf
This patch allows fastd's enabled flag's default value to be set from
site.conf.
2014-09-03 20:37:17 +02:00
Jan-Philipp Litza 6160f1a966 gluon-core: Remove VERSION_DIR hack
As the (removed) comment said, this was a one-time-hack that was obsoleted long ago.
2014-08-30 15:13:52 +02:00
Nils Schneider 70f19a5596 gluon-neighbour-info: query direct neighbours
This is a simple client for gluon-announced.
2014-08-28 18:48:57 +02:00
Nils Schneider e4fc1955cc gluon-luci-admin: restructure firmware upgrades 2014-08-28 16:36:04 +02:00
NeoRaider 24d7f1e875 Merge pull request #68 from FreifunkBremen/gluon-cron-fix
gluon-cron: Fix endless loop parsing invalid lines
2014-08-27 10:33:34 +02:00
Jan-Philipp Litza 53e9630da1 gluon-cron: Fix endless loop parsing invalid lines
Using the line
```
* * * * echo "foobar"
```
(notice the missing fifth time field) in a crontab causes gluon-cron
to enter an endless loop while parsing it, thus it won't even execute
the other, valid crontabs.

This is caused by the loop in [line 138] where `begin - min`
substracts the unsigned `min` from the signed `begin`. If now `begin`
is invalid, `strict_atoi` returns -1 and the loop starts at
`(-1)-1=MAX_INT` and runs while `i <= MAX_INT` which is always true.

The real culprit lies in [line 134] where exactly this case
`begin < min` is checked - but because of the signedness, this check doesn't
work as expected either.

The easiest solution is to make `min` a signed integer instead of an unsigned
one, as we do not require it to be very large and only pass the constants 0 or
1 to it.

To avoid other similar problems, this patch makes the input variable `n` a
signed integer as well.
2014-08-27 10:20:04 +02:00
Nils Schneider 8a71c02ce6 gluon-announced: avoid spawning zombies 2014-08-25 21:53:21 +02:00
Nils Schneider 955cc686db Merge pull request #62 from freifunk-gluon/clientcount
mesh-batman-adv-core: add clientcount statistics
2014-08-22 14:40:09 +02:00
Nils Schneider 817aff13c4 Merge pull request #65 from ohrensessel/overlayusage
add overlay usage to statistics.d
2014-08-18 14:12:30 +02:00
ohrensessel 5821b5b998 calculate rootfs usage instead of overlayfs
in case a target does not use overlayfs
2014-08-18 14:07:23 +02:00
ohrensessel 9bb443c6a6 adapt overlay_usage to match the comments from luebeck 2014-08-18 13:08:54 +02:00
ohrensessel ed50873b27 overlay: rename to clarify value 2014-08-18 12:12:00 +02:00
ohrensessel 155e261099 overlay: change to normalized, fix error handling 2014-08-18 12:10:54 +02:00
ohrensessel c64fbd8140 add overlay usage to statistics.d 2014-08-18 11:40:13 +02:00
Matthias Schiffer 6421f01502 Remove gluon-ath9k-workaround 2014-08-17 19:34:03 +02:00
Matthias Schiffer e7dfba0d03 gluon-setup-mode: cleanup and upgrade fix
Since switching to Barrier Breaker/procd, we'd not notice if we were
upgrading from a version before renaming the config file to gluon-setup-mode
as the upgrade scripts run after the preinit.

Fix this by checking later during setup mode init again and rebooting into the
regular run mode if we detect this case.
2014-08-16 15:15:24 +02:00
Matthias Schiffer f2eacad78b gluon-mesh-vpn-fastd: delete all old backbone peers on update 2014-08-16 14:51:18 +02:00
penguineer 6467e74224
Beschreibungstext umformuliert, damit die Option "Mesh-VPN" klarer wird.
Die Bezeichnung "Mesh-VPN" ist etwas irreführend. Man kann denken, dass hiermit das Meshing aktiviert wird, wobei es ja — im Gegenteil — um eine Nutzung des WAN geht.
2014-08-15 15:28:05 +02:00
Nils Schneider 28e332ae11 luci-portconfig: fix dns 2014-08-10 17:13:39 +02:00
Nils Schneider cb66d542db mesh-batman-adv-core: add clientcount statistics
This adds

  "client" { "total": <int>, "wifi": <int>" }

to statistics.d. "total" will be the number of clients connected.
"wifi" will be the number of clients connected over wifi. I.e. "total"
will always be equal to or greater than "wifi".

The node will not count itself.
2014-08-10 13:24:08 +02:00
Nils Schneider 9e1d5bb4f3 Merge pull request #61 from freifunk-gluon/configurable-wan
Configurable WAN
2014-08-09 23:31:19 +02:00
Nils Schneider a7360b0420 Merge pull request #59 from freifunk-gluon/form-fields
luci-theme: fix centering of form fields
2014-08-09 20:56:48 +02:00