Commit Graph

186 Commits

Author SHA1 Message Date
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