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>
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>
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>
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.
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>
- 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>
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>
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>
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>