Matthias Schiffer
ee597c6676
gluon-wan-dnsmasq: fix handling of static DNS servers
...
Fixes #886
2016-09-18 22:54:13 +02:00
Matthias Schiffer
7d95f0d9a9
gluon-wan-dnsmasq: add interface name to link-local addresses
...
Fixes #854
2016-08-28 22:11:31 +02:00
Matthias Schiffer
9095c9a706
ar71xx-generic: switch default WAN/LAN assignment on Ubiquiti UAP Pro
...
Fixes #764
2016-07-19 15:50:05 +02:00
Matthias Schiffer
02c27480ab
gluon-luci-wifi-config: fix to work with legacy configs using macaddr instead of path to identify radios
2016-07-09 23:33:33 +02:00
Sven Eckelmann
6899e50c97
ar71xx-generic: Use eth0 as OpenMesh primary mac address
...
The OpenMesh devices have a sticker with the eth0 mac address on the
bottom. Also all other mac addresses are calculated based on this address.
Therefore, it is better to use this as primary mac address instead of the
WiFi mac address.
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
2016-05-25 13:05:51 +02:00
Sven Eckelmann
e76efb2659
gluon-luci-admin: Fix uploaded image validation
...
The image validation currently fails on some devices (tested OpenMesh)
because it isn't done via sysupgrade. But the checks depend partially on
the integration in sysupgrade (e.g. via loops that can be stopped via
"break statements").
Instead of hacking its own version check, it is easier and better tested to
just use 'sysupgrade -T' like it is already done by LuCI.
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
2016-05-19 00:24:55 +02:00
Matthias Schiffer
15886fb65b
gluon-mesh-vpn-fastd: add missing iptables dependency confusing Kconfig
...
This was causing "recursive dependency" errors and potentially broken
configurations.
2016-05-18 01:34:34 +02:00
Jan-Philipp Litza
41062d9582
gluon-core: use exec on uci commit
2016-04-29 17:41:55 +02:00
kb-light
b788b6684d
gluon-node-info: add a script to fix whitespaces within the coordinates
...
Signed-off-by: kb-light <freifunk@kb-light.de>
2016-04-28 16:12:42 +02:00
Matthias Schiffer
63fb516bd3
gluon-core: commit all UCI configs at the end
...
Avoid commiting configs inbetween to decrease number of flash writes.
Fixes #714 .
2016-04-28 16:12:21 +02:00
Matthias Schiffer
8adce872cb
gluon-config-mode-mesh-vpn: fix save() call for traffic limits
...
It doesn't seem like this mistake had any effect.
2016-04-28 16:11:01 +02:00
Jan Niehusmann
e44043f647
ar71xx-generic: add support for Carambola 2
...
Device information can be found at:
http://www.8devices.com/products/carambola-2
https://wiki.openwrt.org/toh/8devices/carambola2
I only did some minimal testing of gluon on the carambola 2 development
board:
- Config mode works
- Connects to Wifi Mesh
- Allows clients to connect
Notably, autoupgrade has not yet been tested.
Change to 010-primary-mac is necessary as the mac address printed
on the sticker is the one of eth0, not the wifi mac.
2016-04-25 10:04:38 +02:00
Matthias Schiffer
337b43c715
gluon-core: use correct file variable in get_site_config()
2016-04-25 10:03:33 +02:00
Matthias Schiffer
9017bb3cb0
gluon-mesh-batman-adv-core: remove 'gluon.batman_adv' Lua module
...
It is not used anymore.
2016-04-25 10:03:18 +02:00
Matthias Schiffer
70d586c3bd
gluon-status-page: unify prefix list of prettyBytes and prettyBits
2016-03-01 00:07:57 +01:00
Matthias Schiffer
35922740e6
gluon-status-page: don't use internationalization API
...
It is not supported by all browsers yet.
Also change load display always to display 2 decimal digits (as it is read
from the kernel with 2 decimal digits).
Fixes #606
2016-03-01 00:07:49 +01:00
Matthias Schiffer
dfd5d7bdff
gluon-status-page: fix neighbour purging
...
notUpdated is a Set, so a for-in loop doesn't work.
Fixes #657
2016-02-29 01:16:04 +01:00
Matthias Schiffer
6a6eb6282f
gluon-config-mode-*, gluon-luci-portconfig: improve validation
...
Make bandwidth limits unsigned; trim numbers, the validator accepts
trailing whitespace.
2016-02-28 22:41:44 +01:00
Matthias Schiffer
48c7039d53
gluon-status-page: don't reset signal graphs on resize events if width hasn't changed
...
Mobile browsers will often show or hide the address bar while scrolling.
This causes resize events which would often reset the signal graphs.
Fixes #662
2016-02-28 19:27:02 +01:00
Matthias Schiffer
e0e96b7b28
Merge branch 'restrict-respondd'
2016-02-05 19:18:40 +01:00
Matthias Schiffer
145cb4ded2
gluon-luci-admin: ensure that the authorized_keys file always ends with a newline
...
Fixes #558
2016-02-05 18:31:25 +01:00
Matthias Schiffer
2f499dbfc1
gluon-respondd: restrict queries from the mesh to link-local addresses
...
Restrict to link-local addresses to prevent amplification attacks from
outside the mesh, or such attacks affecting the outside world.
Fixes #637
2016-02-05 17:06:07 +01:00
Matthias Schiffer
6554cc21ab
Merge remote-tracking branch 'origin/firewall-multicast'
2016-02-03 08:40:20 +01:00
Matthias Schiffer
d58484c84e
gluon-mesh-batman-adv-core: respondd: fix pattern to count clients to work with compat 15
2016-02-02 17:18:52 +01:00
Jan-Philipp Litza
5bb4316f71
gluon-neighbour-info: Open firewall on WAN for respondd replies
...
If the query was via multicast, the response isn't matched by
--state ESTABLISHED,RELATED
This fixes #619
2016-02-02 13:06:54 +01:00
Matthias Schiffer
0005b3b5a2
autoupdater: stop non-essential services before downloading the image
2016-02-02 09:22:50 +01:00
Matthias Schiffer
b4aaf8a1f8
gluon-respondd: add init script
...
Instead of starting gluon-respondd from a hotplug handler, add a proper
init script. The new init script has a restart_if_running argument which
is now used by the hotplug handler.
2016-02-02 09:18:13 +01:00
Matthias Schiffer
9004028cb4
Convert gluon-announce Lua code to C modules, rename to gluon-respondd
...
gluon-announced and gluon-announce are merged to gluon-respondd.
2016-02-02 09:18:12 +01:00
Matthias Schiffer
840d07dd48
Add utility library libgluonutil
2016-02-02 06:39:22 +01:00
Daniel Golle
4ce85afc22
gluon-status-page-api: support batadv-in-VLAN on ibss interface
...
introduce function to recurse down to the lowest layer-2 interface
corresponding to a given interface.
also re-introduce some of the previously removed input validation plus
some more to protect against glob and path based exploits.
2016-01-13 12:59:16 +01:00
Matthias Schiffer
0880159eb5
gluon-status-page: fix handling of interface names containing dots
2016-01-08 14:54:30 +01:00
Delta / Stefan
bbdc334b43
gluon-status-page: add TB to list of units for transfer volumes
...
Fixes #614
2016-01-07 18:09:30 +01:00
Matthias Schiffer
f23e024787
Convert site.conf to JSON during build
...
This will allow us to use its content from other languages than Lua as
well.
2016-01-02 23:49:25 +01:00
Matthias Schiffer
8ffdcaaa1b
gluon-mesh-batman-adv-core: announce/neighbours.d: use batman-adv-visdata
2015-12-18 17:46:24 +01:00
Matthias Schiffer
939087cec9
gluon-status-page-api: neighbours-batadv: use batman-adv-visdata, increase interval
2015-12-18 17:46:24 +01:00
Matthias Schiffer
90a64ca87f
gluon-status-page-api: use sse-multiplex
2015-12-18 17:46:24 +01:00
Matthias Schiffer
fa504dae8d
gluon-neighbour-info: simplify and fix timeout calculation
...
The timeout was calculated incorrectly (in each iteration the span between
the start time and the current time was substracted from the timeout
again), and would often become negative, causing warnings in the kernel
log.
2015-12-18 17:46:24 +01:00
Matthias Schiffer
a3155c427a
gluon-neighbour-info: fix a few compiler warnings
2015-12-18 17:46:24 +01:00
Matthias Schiffer
d3bc707caa
gluon-neighbour-info: flush after writing the HTTP header
...
sse-multiplex likes to get the header as fast as possible.
2015-12-18 17:46:24 +01:00
Matthias Schiffer
c3150d821f
gluon-announce{,d}: create a new UCI cursor for each run
2015-12-18 17:46:24 +01:00
Matthias Schiffer
077dbe3c08
gluon-status-page-api: decrease dyn/statistics event frequency
...
The statistics data is now cached for 5s, no need to send an event every
second. The new interval is 3s, which is coprime with the cache timeout.
2015-12-18 17:45:45 +01:00
Matthias Schiffer
48d24c2674
gluon-announce: enable caching
2015-12-18 17:43:16 +01:00
Matthias Schiffer
eba7ecbbc0
gluon-announced: add support for caching announced data
2015-12-18 17:43:12 +01:00
Matthias Schiffer
5927fd66db
gluon-status-page: filter out duplicate events in statistics event stream
...
Allows simple handling of cached events.
2015-12-18 17:37:48 +01:00
Matthias Schiffer
5ecb8a7366
gluon-mesh-vpn-fastd: gluon-annouced: fix fastd status always being reported as enabled
2015-12-08 22:47:32 +01:00
Nils Schneider
0bb530d1c6
gluon-status-page: fix display of rx and tx traffic
...
On the status page statistics section counters for transmitted and received traffic were mixed up. Transmitted traffic was shown as received while received traffic was shown as being transmitted.
Fixes #586
2015-12-07 13:44:17 +01:00
Matthias Schiffer
9c7582afe0
gluon-luci-private-wifi: fix typo in code file and regenerate translation files (correctly this time)
2015-11-27 14:33:56 +01:00
Matthias Schiffer
7f0fe061dc
gluon-luci-private-wifi: fix translation files
2015-11-27 09:49:12 +01:00
Matthias Schiffer
d428576ec5
Merge pull request #552 from freifunk-gluon/disable-mesh
...
gluon-mesh-batman-adv-core: keep disabled state even when the mesh interface section name is changed
2015-11-23 00:42:39 +01:00
Matthias Schiffer
81b2142e65
Merge branch 'patch-1' of https://github.com/ohrensessel/gluon
2015-11-22 23:28:39 +01:00