Tim Niemeyer
ece49e2454
bsp/def/network.sh: configure switch based on HW name
...
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2014-08-16 13:11:00 +02:00
Tim Niemeyer
3f92b90dd5
bsp/wr740: fix board name
...
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2014-08-16 13:11:00 +02:00
Tim Niemeyer
74ccf5b24a
bsp/default/fastdstart.sh.tpl: update to fastd v14
...
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2014-08-16 13:11:00 +02:00
Tim Niemeyer
5a5af9614c
bsp/wr*: set fixed ifname for wifi interfaces
...
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2014-08-16 13:10:59 +02:00
Tim Niemeyer
25d1a19624
Rework network config
...
- remove obsolete crontabs
- move mac handling to network.sh
- update wr741xx, wr740 and wr1043 to new network config
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2014-08-16 13:10:59 +02:00
Tim Niemeyer
055232d13b
bsp: wr841: make dynamic network functions available for all
...
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2014-08-16 13:10:30 +02:00
Tim Niemeyer
c8ef1aa724
bsp: make board config dynamic
...
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2014-08-16 13:10:30 +02:00
Tim Niemeyer
ec81a2e441
bsp: wr841n9: configure network
...
Make the network config more dynamically.
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2014-08-16 13:10:30 +02:00
Tim Niemeyer
c20afe129d
Update to OpenWRT trunk r39056
...
Signed-off-by: Tim Niemeyer <tim@fipux.org>
2014-08-16 13:10:25 +02:00
Tim Niemeyer
704c8b69c0
buildscript/get_source: apply batman no rebroadcast patch
...
This also enables the no_rebroadcast option on the fastd vpn interface.
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-12-09 23:51:50 +01:00
Marc René Schädler
2aa4ff1360
"admin.sh" remove outdoor information
2013-12-09 23:51:31 +01:00
Marc René Schädler
616c298119
"report.sh": Add average mesh quality, Report used instead of free memory
2013-12-09 23:50:00 +01:00
Marc René Schädler
556b5d7b93
"report.sh" Do more things with awk
...
Conflicts:
bsp/default/root_file_system/etc/report.sh
2013-12-09 23:49:49 +01:00
Marc René Schädler
7dec4ad686
"rc.local.tpl" serve.sh should rund in background
2013-12-01 22:27:02 +01:00
Marc René Schädler
e2cdbae554
"wlanwatchdog.sh" re-fix missing ';' and fix indentation
2013-11-19 20:11:39 +01:00
Marc René Schädler
6f1b52d393
Serve cached gzipped reports on port 81
2013-11-14 21:04:14 +01:00
Marc René Schädler
bb2dae42ea
"report.sh": Add and restructure some info
2013-11-14 20:58:40 +01:00
Marc René Schädler
a70fdddb57
Add json report generator script "report.sh"
2013-11-14 20:56:54 +01:00
Marc René Schädler
4e98822cd6
Add functions to set info needed for libremap and some more to "admin.sh"
2013-11-14 20:50:42 +01:00
marc René Schädler
e55b2a7533
Add "admin.sh", a tool for easy administration tasks
2013-11-14 20:30:28 +01:00
marc René Schädler
b44caefc96
Run statistics (for now only traffic) calculation with "statistics.sh" via crontab every 5 minutes
2013-11-14 20:26:46 +01:00
Tim Niemeyer
dc66cf862a
statistics.sh: remove unused function
...
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-11-14 20:24:34 +01:00
marc René Schädler
325690c0cd
Add "statistics.sh", a script that calculates temporal derivatives
2013-11-14 20:24:11 +01:00
marc René Schädler
a6d1e32948
Add "cache.sh", a script that caches a programs output
2013-11-14 19:42:04 +01:00
marc René Schädler
3f2a6e9f94
Add "serve.sh", a script to serve another script's output via netcat
2013-11-14 19:36:36 +01:00
Clemens John
d55b034e4a
Remove tincstart.sh because we do not use tinc anymore
...
Signed-off-by: Clemens John <clemens-john@gmx.de>
2013-11-09 00:13:29 +01:00
Clemens John
26d8485da6
Add fastd version to nodewatcher
...
Signed-off-by: Clemens John <clemens-john@gmx.de>
2013-11-09 00:11:00 +01:00
Jan-Tarek Butt
f6fe4f81c5
Einrückungen Korrigiert
...
Signed-off-by: Jan-Tarek Butt <buttjantarek@googlemail.com>
2013-10-30 23:03:17 +01:00
Jan-Tarek Butt
8468b4c130
Einrückungen Korigiert
...
Signed-off-by: Jan-Tarek Butt <buttjantarek@googlemail.com>
2013-10-30 23:03:11 +01:00
Tim Niemeyer
4da35ed062
wlanwatchdog: fix NUMBER lookup for brctrl
...
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-10-29 21:21:11 +01:00
marc René Schädler
0409076991
Add minimum quality/max age thresholds to originatos and clients in "wlanwatchdog.sh"
2013-10-28 19:49:32 +01:00
Tim Niemeyer
49bf540db4
firewall.user: Filter ssh brute force attacks
...
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-10-27 13:10:56 +01:00
Clemens John
e05a70e826
Fastd v10 doesnt know the option syslog-level anymore. Logging needs to be configured in the fastd config file.
...
Signed-off-by: Clemens John <clemens-john@gmx.de>
2013-10-27 02:18:27 +02:00
Jan-Tarek Butt
b59b5c945d
Einrückungen Korrigiert
...
Signed-off-by: Jan-Tarek Butt <buttjantarek@googlemail.com>
2013-10-27 01:21:56 +02:00
Tim Niemeyer
f7f46092c4
fastdstart.sh: deferrer start and always send mac
...
The deferred start ensures, that the mac dosn't change anymore.
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-10-20 20:08:13 +02:00
Clemens John
ad7f5d2a02
Nodewatcher: add information about batman adv. gateway mode and gateway list to xml
...
Signed-off-by: Clemens John <clemens-john@gmx.de>
2013-10-18 17:01:39 +02:00
Jan-Tarek Butt
f334acd23b
Enfernen von Leerzeichen
...
Signed-off-by: Jan-Tarek Butt <buttjantarek@googlemail.com>
Reviewed-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-10-05 21:25:26 +02:00
Jan-Tarek Butt
22995c940f
Entfernen von überflüssigen Leerzeichen
...
Signed-off-by: Jan-Tarek Butt <buttjantarek@googlemail.com>
Reviewed-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-10-05 21:12:33 +02:00
Tim Niemeyer
6893bf00fb
bsp/default/fastdstart.sh.tpl: remove garbage
...
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-10-04 22:40:58 +02:00
Clemens John
5fae48753c
configurator: Check if hostname is valid RFC 1123
...
(check length of labels, check the whole length
and allow . and - where allowed
Signed-off-by: Clemens John <clemens-john@gmx.de>
Rebased: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-10-03 22:25:20 +02:00
Clemens John
18b82b58a8
Prevent configurator from setting unwanted or malformed hostnames
2013-09-19 15:45:54 +00:00
Tim Niemeyer
8329a1fbfd
buildscript: support community files with templates
...
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-09-14 00:16:31 +02:00
Tim Niemeyer
fe192d9a21
wlanwatchdog: do not use fixed addr for the gateway
...
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-09-14 00:11:17 +02:00
Tim Niemeyer
360bdb2d28
wlanwatchdog: fix confusing batman message
...
If there is no batman originator the kernel reports "No batman nodes in range"
which was counted as one originator.
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-09-14 00:11:17 +02:00
Tim Niemeyer
844b16ea98
wlanwatchdog: do not find local macs as clients
...
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-09-14 00:11:17 +02:00
Tim Niemeyer
2dd397b0f1
Preserve /etc/shadow to save password over reflash
...
With this change, the sysupgrade should be run without -n flag.
But only if this code runs already on the device.
Signed-off-by: Tim Niemeyer <tim@fipux.org>
2013-09-14 00:11:17 +02:00
Marc René Schädler
c306813c26
add execution of environment variables script to rc.local
2013-09-09 11:07:16 +00:00
Marc René Schädler
212bdd41a1
add environment variables script
...
Use faststart.sh for get_vpn_interface
-- Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-09-09 11:07:09 +00:00
Marc René Schädler
6061b7a38e
add wlanwatchdog script
...
Use *) as unknown STATE, fixes Startup delay
-- Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-09-09 11:07:00 +00:00
Clemens John
dda1cba333
Add an option for the ip version so that netmon does not need to guess
2013-08-04 17:31:04 +00:00
Clemens John
370d9f69d9
Add option for interface name so netmon does not need to add a dummy interface like configurator_ipv6
2013-08-04 17:02:45 +00:00
Clemens John
8f58079510
No code changes, just formatting. Replace whitespaces with tabs to indent
2013-08-04 16:58:53 +00:00
Clemens John
18111568fb
Remove code duplicates and move adding of ipv6 addr to better place in script.
2013-08-04 16:56:08 +00:00
Clemens John
1dfb536728
Do not use bind option because it causes problems on some hosts and was not used before
2013-07-19 20:23:42 +00:00
Tim Niemeyer
734b8b23d2
fastdstart.sh: do not use the owrt init skript
...
The init skript is the wrong place to start this vpn daemon as it
needs wan connection first.
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-07-13 23:11:57 +00:00
Clemens John
5bcc7c65db
Try to add ipv6 adress also if the router is already assigned (if there went something wrong the first time). Add option for specififing the netask of an ip addres and remove the netmask from the end of the ip address
2013-07-13 11:12:24 +00:00
Clemens John
f592a8ae09
Store api key of router owner to be able to use netmons new REST API
2013-05-04 00:25:03 +02:00
Tim Niemeyer
66d46b1860
Nodwatcher: read also unknown interfaces
...
Fixes #501
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-04-01 17:57:18 +02:00
Tim Niemeyer
dcee86e97c
All: Disable 802.11b wifi
...
The new ODFM modulation is much better and the old one isn't really
used these days.
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-04-01 16:29:16 +02:00
Tim Niemeyer
00d1d2c987
add an ipv6 host to fastdstart to detect connectivity
...
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-03-30 01:22:37 +01:00
Tim Niemeyer
118d7d8236
Enable IPv6 RA's on WAN Port
...
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-03-30 01:21:26 +01:00
Tim Niemeyer
192dd3765c
Change BATMAN ethernet ports
...
BATMAN couldn't handle devices with the same MAC, so this uses the internal
switch to bridge the ports. It also changes the MAC to a localy unique
address.
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-03-30 00:10:52 +01:00
Bjoern Franke
313ef61f10
shortened L in FFOL-banner
2013-03-17 20:01:14 +01:00
Bjoern Franke
0dd9c6076a
remove ath9k-watchdog, backport ath9k-patches from openwrt r35786, should fix many dDMA issues
2013-02-27 19:28:07 +01:00
Bjoern Franke
055ab542a2
forgot to add watchdog in last commit
2013-02-24 09:36:43 +01:00
Tim Niemeyer
d6d2fdb773
All: add ethernet ports to batman
...
This should fix #469
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-02-16 16:00:06 +01:00
Tim Niemeyer
c2c758d573
Fastdstart: replace fff with $project
...
This fixes #460
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-02-04 18:46:45 +01:00
Tim Niemeyer
ea8cade28c
Fix the use os sysctls to prevent router_ads
...
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-02-03 20:40:17 +01:00
Tim Niemeyer
d1bcab12b6
rc.local [all devices] optimize mac correction
...
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-02-03 18:01:27 +01:00
Tim Niemeyer
2325990415
fastdstart.sh: diet, too
...
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-02-03 17:50:35 +01:00
Tim Niemeyer
0f57b3662a
configurator: yep.. it got a diet, too
...
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-02-03 17:20:04 +01:00
Tim Niemeyer
239234c0fa
Nodewatcher optimisation
...
The nodewatcher.sh got a diet. :)
Stats from DIR300
Old nodewatcher:
real 1m 43.86s
user 0m 5.59s
sys 0m 32.78s
Memory consumption.. over ~1.5MB
New nodewatcher:
real 0m 17.17s
user 0m 0.99s
sys 0m 4.33s
Memory consumption.. below ~0.5MB
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-02-02 01:02:02 +01:00
Tim Niemeyer
16fd33e7c7
faststart.sh: fixes handling with node names
...
There was an error, when a node name implies another node name.
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-02-02 01:02:02 +01:00
Tim Niemeyer
b9ce647543
Batman: Disable BLAII as it's not needed on vpn setup
...
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-02-02 01:02:02 +01:00
Tim Niemeyer
0dd637d097
Revert "ssh reopened in firewall config for debugging purposes, should be closed again in stable release"
...
This isn't really needed for debugging. The default port number 22 is often
targeted for brute-force attacks. Dropbear on 16M memory isn't relly capable
of handling this.
This reverts commit 2083df18d1
.
2013-02-02 01:01:21 +01:00
Tim Niemeyer
a7e79f3adf
Nodewatcher: fix out interface detection
...
Sometimes the interfaces have shorter names, then batctl adds some
spaces just before the iface name. With cut we can get this right.
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2012-12-16 11:47:41 +01:00
Bjoern Franke
2083df18d1
ssh reopened in firewall config for debugging purposes, should be closed again in stable release
2012-11-23 17:41:58 +01:00
Tim Niemeyer
3622ea8cb5
wan-firewall: fix and clean up
...
- use -A (append) instead of -I (insert)
This makes shure the rule order is correct. This fixes #421 .
- use uci to determine the correct wan interface
This is the reason, why #421 was only on wr1043. Now the firewall rule
applies to all router.
- remove old and not used rules
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2012-11-17 18:20:52 +01:00
Tim Niemeyer
ce90577b5d
Nodewatcher was confused if link_quality was below 100
...
When the link_quality is below below 100 there is a little whitespace
between the value an the bracket like ( 99). This confused the awk
skript and is fixed by filtering all brackets.
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2012-10-24 22:15:14 +02:00
Tim Niemeyer
16f1b7c8d4
Do not accept RAs and other stuff
...
Fixes #396
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2012-10-24 22:15:14 +02:00
Bjoern Franke
3cee096c6d
fastd mtu fix from fff-branch
2012-10-24 08:32:50 +02:00
Tim Niemeyer
317e7bdfbe
Little clean up on fastdstart.sh
...
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2012-10-20 23:46:23 +02:00
Tim Niemeyer
422634275c
mtu problem fixed on fastd
...
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2012-10-13 01:40:05 +02:00
Tim Niemeyer
bf9c42a24c
Statefull Inspektion for WAN Interface
...
On a router wich is directly connected to the internet, there is lot of traffix
on the WAN port. E.g. ssh bruteforces. That's like a DOS for a small device.
This fixes #395
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2012-09-30 11:26:11 +02:00
Tim Niemeyer
6cd4a52e15
update the default rc.local based on dir300
...
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2012-09-30 02:53:59 +02:00
Tim Niemeyer
b4d756cb91
New build_script structure.
...
The new build_script uses a bsp-style interface. Now it's possible
to work on more than one board at the same time. Just select the
selected_bsp with the build_script and start over.
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2012-09-29 18:58:44 +02:00