Commit Graph

338 Commits

Author SHA1 Message Date
Conrad Lara - KG6JEI 39729157c6 bugfix: Signal levels do not show up on "new extended" RF Channels
Switch to iw over iwinfo because it handles the new channels better.

Partially reverts changeset:808a8d5019fce4a7ca2c027ea7838d43c6d8cad0/aredn_ar71xx

fixes AREDN->ticket:129
2015-06-30 00:05:45 -07:00
Conrad Lara - KG6JEI 4816a47751 Merge branch 'FixupDuplicateMAC' into release-3.15.1.0
ref AREDN🎫115
2015-06-29 23:00:43 -07:00
Conrad Lara - KG6JEI 7985ff6ba3 bugfix: deal with duplicate MAC on LAN and WIFI
ref AREDN->ticket:115
2015-06-29 22:58:08 -07:00
Darryl Quinn d4f6aea68e bugfix: define tun hostname for olsrd 2015-06-29 20:07:01 -05:00
AE6XE 9481c21db6 bugfix: fixes AREDN->ticket:128 remote neighbor incorrectly shown as having tunnel 2015-06-21 22:06:40 -07:00
Conrad Lara - KG6JEI f915225459 bugfix: Add in-testing support for older NanoStation M5 XW boards
board.info provided by VE3KMV
{{{
board.sysid=0xe005
board.cpurevision=0x000000c2
board.name=NanoStation M5
board.shortname=N5N
board.subtype=
board.netmodes=7
board.hwaddr=00272232336C
board.reboot=30
board.upgrade=150
board.phycount=2
board.phy.1.maxmtu=1524
board.phy.2.maxmtu=1524
radio.1.name=
radio.1.shortname=
radio.1.bus=pci
radio.1.subsystemid=0xe005
radio.1.subvendorid=0x0777
radio.1.txpower.max=27
radio.1.txpower.offset=5
radio.1.antennas=1
radio.1.def_antenna=4
radio.1.antenna.1.id=4
radio.1.antenna.1.name=Combined
radio.1.antenna.1.gain=16
}}}
2015-06-21 19:24:43 -07:00
Conrad Lara - KG6JEI ff43a707c1 cleanup: Make note about automatic antenna selection look better on screen 2015-06-18 21:15:05 -07:00
Conrad Lara - KG6JEI 547069986c bugfix: Antenna selection handle by kernel: Cleanup errors reported by build tests. 2015-06-18 21:09:10 -07:00
Conrad Lara - KG6JEI 21edf5fa02 bugfix:Let kernel handle antenna selection: Remove antenna name mapping data. 2015-06-18 20:18:03 -07:00
Conrad Lara - KG6JEI ea9dfc5d1a bugfix: Let kernel handle antennas:Remove sub functions wifi_validant and wifi_defaultant 2015-06-18 20:15:47 -07:00
Conrad Lara - KG6JEI ee90c366aa bugfix: The 'hack' we have been using to set RF chain has been discontinued.
Trying to registry over-write the antenna setting has never been a good idea in the first place.

The  hardware fully handles antenna selection without forcing it already.

ref AREDN->ticket:120
2015-06-18 18:57:04 -07:00
Conrad Lara - KG6JEI d1253c0d9d bugfix: Channel "0" means "Problem" inside the kernel.
To overhaul the system to allow "0" would take a significant re-write of kernel code. At this time its best to pull channel '0' as it is not in any clear RF space (channel 1 overlaps it)

ref AREDN->ticket:114
2015-06-18 18:35:41 -07:00
Darryl Quinn 8da9756817 bugfix: removed debugging statements 2015-06-17 22:43:20 -05:00
Darryl Quinn 3d7893fd46 Revert "Revert "fixes AREDN->125""
This reverts commit d917b5b2ec.
2015-06-17 00:40:34 -05:00
Darryl Quinn d917b5b2ec Revert "fixes AREDN->125"
This reverts commit 7a05f76c93.
2015-06-17 00:39:07 -05:00
Darryl Quinn 7a05f76c93 fixes AREDN->125 2015-06-17 00:38:13 -05:00
Darryl Quinn 8619bd379e bugfix: force node name to upper in config files for tunnel client 2015-06-16 23:13:58 -05:00
AE6XE 177f831e14 bugfix: tunnel firewall rules update for Barrier Breaker chain rename 2015-06-15 22:10:21 -07:00
AE6XE 02c756a489 Merge branch 'MeshBugfix' into release-3.15.1.0
Fixes AREDN->118:Mesh Status links incoorect
2015-06-14 23:09:42 -07:00
AE6XE 4ce0e1e21d Fixes AREDN->118:Mesh Status links incoorect 2015-06-14 23:06:32 -07:00
Darryl Quinn 807f381a04 bugfix: network and firewall tunnel rules reworked 2015-06-14 23:30:06 -05:00
Darryl Quinn 5dc1d0fa02 Revert "bugfix: missing include in firewall config"
This reverts commit 05839715f6.
2015-06-14 22:28:47 -05:00
Darryl Quinn cc2415faf0 bigfix: active icon not appearing on server 2015-06-14 20:50:54 -05:00
Darryl Quinn 05839715f6 bugfix: missing include in firewall config 2015-06-11 01:21:30 -05:00
Darryl Quinn 91762973a5 bugfix: tunnel firewall changes 2015-06-11 01:02:55 -05:00
Darryl Quinn 049e8ce364 Merge branch 'release-3.15.1.0' of ssh://git.aredn.org/aredn_ar71xx into release-3.15.1.0 2015-06-11 00:40:40 -05:00
Darryl Quinn 81ac8b7fbe bugfix: losing network interfaces after node-setup 2015-06-11 00:40:14 -05:00
AE6XE 3429462627 fixes AREDN->ticket:112 wifi scan improperly sorted by signal strength 2015-06-09 21:51:52 -07:00
Darryl Quinn a2456e4df9 bugfix: made firmware upgrade "keep settings" checked by default 2015-06-02 14:49:49 -05:00
Conrad Lara - KG6JEI 1f2737f0f3 bugfix: tunnels: Unable to route to connections across tunnel
Firewall rules don't get called because vtund is at /usr/sbin/vtund not /usr/bin/vtund

Also make the check if line posix compatible while we are chaning the path to be sure it works in the future too.
2015-05-25 23:04:34 -07:00
AE6XE f1df364997 bugfix: mesh stat: previous neig remove mid notation, show double same neigh {rf,dtd} 2015-05-25 10:46:15 -07:00
AE6XE 2e5c239ed5 bugfix: mesh stat added ref to wan gateways, was ommitted alongside dtd & tun. 2015-05-25 09:25:38 -07:00
AE6XE b314c4539f bugfix: correctly show primary wifi hostname for all references, etx sort, denote dtd & tun* iface 2015-05-24 22:43:26 -07:00
AE6XE f610c58b82 BUGFIX: tunnel firewall to behave same as dtdlink part 2 2015-05-24 15:57:44 -07:00
AE6XE 15f8792001 BUGFIX: tunnel firewall to work same as dtdlink 2015-05-24 15:55:27 -07:00
Conrad Lara - KG6JEI e25756ffbe setup: mesh gateway: Better define as an advanced feature.
Better define the Mesh Gateway as an advanced feature.

Increase documentation in help about what the feature does.

ref AREDN->ticket:109
2015-05-24 15:37:56 -07:00
Conrad Lara - KG6JEI af1eaa1107 Merge branch 'CleanupTunnels' into release-3.15.1.0
various fixups to improve the quality of bringing tunnel's into mainline code
2015-05-24 15:18:54 -07:00
Conrad Lara - KG6JEI 1f4fa46887 supporttool: Add nodename and tsamp to default filename
add nodename and tstamp to default filename to reduce chance of submitting wrong file

timestamp may not always be 'real' time if a node does not have ntp access
2015-05-24 14:17:31 -07:00
Conrad Lara - KG6JEI 23b634e6ac bugfix: supportool: Sensitive files are being included in the support dump.
Add feature to remove files that are sensitive (such as vtun configuration with passwords)
2015-05-24 13:47:16 -07:00
Conrad Lara - KG6JEI c788d2daff supporttool: Obtain better diagnostic information
Add dmesg

fix olsrd collection to obtain actual information
2015-05-24 13:29:49 -07:00
Conrad Lara - KG6JEI c7c615a750 bugfix: Missing AREDN Logo and alert banner on tunnel pages 2015-05-24 13:08:19 -07:00
Conrad Lara - KG6JEI 3850cbac53 tunnels: Tunnels should only start when in mesh mode
Tunnels are not supported in other modes as such we should only let them start in mesh mode.
2015-05-24 12:59:11 -07:00
Conrad Lara - KG6JEI 5cc53dec88 tunnels: Set tunnel init.d scripts to be executable
Remove the chmod step inside of setup.

Came across one time where this didn't trigger.

In addition this saves us from using additional storage space on the node as a +x creates a duplicate file.
2015-05-24 12:30:23 -07:00
Conrad Lara - KG6JEI 0aaa6b6204 bugfix: tunnels: Tunnel config is deleted by saving changes on node.
Make sure we always save a copy of the tunnel config to /etc/config.mesh/ not just when we have an error.
2015-05-24 12:26:25 -07:00
Conrad Lara - KG6JEI fbb98d0539 bugfix: firewall rules not being written by node-setup
When calling uci commit the file gets overwritten and as such the additional file lines are discarded because the active /etc/config/firewall is diffrent than the open file.

Use the uci commit further down in node setup.
2015-05-24 11:36:15 -07:00
Conrad Lara - KG6JEI d15668d592 documentation: setup: Deprecation notice for all but mesh mode
All node type's except mesh have been deprecated.

In a future release we will remove them (and the associated code) to streamline the project.

It is recommended to use a dedicated purpose driven device for these modes in the future
2015-05-21 11:11:59 -07:00
Conrad Lara - KG6JEI 1b68255c7f hardware: NanoStation M3: Set NanoStation M3 to "in testing"
25dbm max power, with 3dbm offchip amplifier.

ref AREDN->ticket:53
2015-05-21 10:51:58 -07:00
Conrad Lara - KG6JEI 0cf4c912ad bugfix: setup: wired router: Country invalid error
Resolve country invalid error when using wired router mode.

Also resolves a chanbw missing error later as well.

ref AREDN->ticket:108
2015-05-21 10:44:25 -07:00
Conrad Lara - KG6JEI 06a46e4d2a bugfix: Radio0Path is unknonw WIFI doesn't start.
wifi detect  is called in /etc/init.d/boot before uci_apply_defaults is called.

Because of this if we don't have the data about the radio0path we need to remove the wifi config file first before calling wifi detect.
2015-05-16 11:32:29 -07:00
Conrad Lara - KG6JEI e69f1e98ba bugfix: Move aredn_include setup to uci-defaults and fix radio0path upgrade flaw
Needs to be in uci-defaults to be sure these data sets execute BEFORE the OS boots

We also need to get radio0 path because its mandatory for wifi to work.

Needed for sysupgrade from 3.0.2 to latest version.
2015-05-15 22:54:16 -07:00
Conrad Lara - KG6JEI 42ee986cd3 bugfix: Untill user visit status page theme is not set.
Move default theme selection to html_header() to solve theme not being set.
2015-05-14 11:36:51 -07:00
Conrad Lara - KG6JEI d59709d840 bugfix: Theme reverts to no-theme when status page reset button is pressed.
A symlink loop occurs because the default theme selector links back to itself.

Removing the value= on the select title entry prevents this.
2015-05-14 10:56:41 -07:00
Conrad Lara - KG6JEI dff687eed7 Merge branch 'DefaultChannel' into develop
Allows nodes to default to a common channel that is in the most common bandplan space for Part 97 usage.

Local cordination is still needed by users to make sure the channel matches the local deployment.

Defaults are as follows:

Band   : Channel Freq : Bandwidth
900    : 912MHz       : 5MHz
2400   : 1 2412MHz    : 20MHz
3400   : 3420MHz      : 5MHz
5800   : 149 5745MHz  : 5MHz

2.4GHz keeps channel 1 at 20MHz because it is the standard deployment.
All other bands are still 'new' and no standard exist so we are creating one.

5MHz chosen because it better fits the emcomm goal. Smaller width should be stronger allowing for better networks.

Local networks can change as they see fit.
2015-05-13 22:02:08 -07:00
Conrad Lara - KG6JEI 8761ffc3b8 feature: default rf channel : Remove setting RF channel on first boot.
Remove setting RF channel on first boot in uci-defaults.

This should allow the node to use standard wifi channels when it boots allowing mesh setup to be run from a laptop or mobile device.

We will later move them to a real mesh channel during the mesh setup page.

Should also resolv issue where nodes were booting up on channel -2 and similar and wifi would refuse to start due to regdomain.
2015-05-13 21:50:32 -07:00
Conrad Lara - KG6JEI c11eae61e8 feature: default rf channel : Make setup page use mesh defaults on reset or unconfigured
When a node is first setup (unconfigured) the rf channel or when user presses reset button the wifi channel and bandwidth will be set to mesh default even if it does not match the current RF channel.
2015-05-13 21:47:15 -07:00
Conrad Lara - KG6JEI 99bd244753 feature: default rf channel: Create new function to return default channel+bw 2015-05-13 20:19:22 -07:00
Darryl Quinn 1ffa2b69a4 bugfix: tunnel: hot plug monitoring wrong interface name to trigger fw scripts 2015-05-12 19:24:06 -05:00
Conrad Lara - KG6JEI f33a60819e bugfix: Status Screen: No word wrap on status screen initial warning text
A {{{</nobr>}}} was removed in changeset:9444716fbd923731e453456410b5d54b7be04370/aredn_ar71xx
2015-05-11 21:29:28 -07:00
Conrad Lara - KG6JEI dcb4994cda bugfix: tunnels: Tunnels fail to start after saving.
etc/init.d/vtund needs to be +x
2015-05-10 14:39:03 -07:00
Conrad Lara - KG6JEI ea9638e787 bugfix: tunnels: Missing AREDN footer on pages.
Add call to page_footer(); to pages
2015-05-10 14:38:03 -07:00
Conrad Lara - KG6JEI 994c4948d1 bugfix: get_boardid : echo should be a cat 2015-05-09 23:04:54 -07:00
Darryl Quinn eb20b40eb8 Merge branch 'tunnel_mainline' into develop 2015-05-09 22:04:18 -05:00
Darryl Quinn 370808578b cleanup: unused vars 2015-05-08 23:26:54 -05:00
Conrad Lara - KG6JEI 27bf54f2dc Merge branch 'SupportTool' into develop
Add new feature for support information to admin interface

Conflicts:
	files/etc/httpd.conf
2015-05-08 20:03:22 -07:00
Conrad Lara - KG6JEI 01fa7b5666 feature: supporttool: Add link to admin page
Add link to admin page for users to download support data
2015-05-08 20:02:09 -07:00
Conrad Lara - KG6JEI 8299862b57 feature: support tool: Restrict Access
Restrict access to support tool to logged in admin user
2015-05-08 19:55:09 -07:00
Conrad Lara - KG6JEI b3798fecdd feature: New tool to provide support providers with information about a node
support tool will dump a tar file with copy of key files and command outputs to aid in diagnostics of support questions.
2015-05-08 19:52:49 -07:00
Conrad Lara - KG6JEI 18339b7443 Merge branch 'SpectrumTest' into develop
Spectrum testing proved to work out well. Merge code into mainline so we can better test with the rest of the hardware.

Also extends ability for 3.4 GHz devices (3.38=3.50)

Adds 5MHz spacing options for 5.8Ghz and allows more channels

Adds -2,-1,0 channel support on 2.4GHz

Conflicts:
	files/www/cgi-bin/channelmaps.pm
2015-05-08 16:09:44 -07:00
Conrad Lara - KG6JEI f9eb33339c feature: Extend RF channel list to match arednbase.
Additional channels have been added to the image, adding them to the GUI as well.
2015-05-08 15:23:02 -07:00
Darryl Quinn 76ffed042f Merge branch 'tunnel_mainline' into develop 2015-05-07 22:55:58 -05:00
Darryl Quinn f19d8e33fd cleanup based on shellcheck tests 2015-05-07 22:55:15 -05:00
Darryl Quinn 18ec1ff82c Merge branch 'tunnel_mainline' into develop 2015-05-07 22:41:59 -05:00
Darryl Quinn 5afde21c9f bugfix: secured vpn and vpnc pages 2015-05-07 22:41:06 -05:00
Darryl Quinn c26b5fd992 Merge branch 'tunnel_mainline' into develop 2015-05-07 19:25:14 -05:00
Darryl Quinn f9f046f111 dynamic integration of tun interfaces with olsrd 2015-05-06 23:46:25 -05:00
Darryl Quinn 5a246f7441 reworked ucifunc.pm
added server DNS name field
reworked to use section names in ici
2015-05-06 22:01:28 -05:00
Conrad Lara - KG6JEI bd3de68231 ar71xx: hardware: NanoBeam-M5-19 Add testing support
Add NanoBeam M5 19 in testing support
2015-05-05 16:29:53 -07:00
Conrad Lara - KG6JEI 2af1e3e0c3 ar71xx: Copy get_model to get_boardid and modify to return a boardid
When model exiss that has a boardid in EEPROM it will return from there, otherwise it returns the model as chosen by ar71xx
2015-05-05 16:18:24 -07:00
Conrad Lara - KG6JEI 3465b45732 feature: mesh status: Display NLQ
Add the NLQ to the remote neighbors display so users can see both directions of the path from the mesh status screen.

ETX is dependent upon both directions of the path.
2015-05-04 09:39:52 -07:00
AE6XE ece70e2f63 BUGFIX: Mesh Status missing some advertised service links or names 2015-04-29 23:29:25 -07:00
Conrad Lara - KG6JEI a1ce01044d feature: Add Disable Default Route checkbox to Lan box
Allows users to disable publishing 0.0.0.0/0 (all/internet) route via DHCP.
2015-04-29 23:18:09 -07:00
Conrad Lara - KG6JEI 0be1ee22dc Update node help to include details about "Disable Default Route" checkbox 2015-04-29 23:11:23 -07:00
Darryl Quinn cc1f683121 feature: adding support to add tun interfaces dynamically to olsrd 2015-04-29 23:02:29 -07:00
Darryl Quinn 8aa7b84712 bugfix: correct unmatched quote error 2015-04-29 21:33:36 -07:00
Darryl Quinn defd944fc1 changed graphics: https://www.iconfinder.com/icons/183208/bin_can_garbage_trash_icon#size=20 (Free for commercial use) 2015-04-28 22:37:33 -07:00
Darryl Quinn 5d6ba0c244 fix client options and disconnect graphic 2015-04-26 23:21:42 -05:00
Darryl Quinn 7327c2de51 Merge branch 'develop' into tunnel_mainline 2015-04-23 23:00:00 -05:00
Conrad Lara - KG6JEI 9840db43de hardware: Add CPE210 in testing support 2015-04-22 11:31:23 -07:00
Conrad Lara - KG6JEI 14ddd34906 Merge branch 'RocketM3' into develop
RocketM3 will remain in untested status until we get spectrum report.

ref AREDN->ticket:53
2015-04-22 00:06:43 -07:00
Darryl Quinn a43ef2827b feature: improved stop methods for client and server. added IPs to uci config 2015-04-20 23:53:57 -05:00
Darryl Quinn 344992b096 Merge commit '714a3d6f5404bcd650019bd59e92d2cc2bb54164' into develop 2015-04-17 18:50:53 -05:00
Darryl Quinn dec3eeeb47 Merge commit '88037845309b311901a590ca2a2b91adbd79bfc0' into tunnel_mainline 2015-04-15 21:09:32 -05:00
Darryl Quinn 7371373235 feature: client and server fixes. calculate IP's for dest/gateway 2015-04-15 17:39:45 -05:00
Conrad Lara - KG6JEI 94a803d456 feature: Add initial read-only SNMP support in mesh mode.
Config file is present upon initial start and in mesh mode.

Daemon still starts up in other modes but will not function w/o settings.

Firewall:
Permit access for UDP:161 (SNMPD) on  WIFI and DTDLINK
Lan is permitted by default allow rules.
2015-04-14 22:31:21 -07:00
Conrad Lara - KG6JEI 2917bb0f4b Prep work for switching to procd olsrd-config will be called for both IPv4 and IPv6 executions.
Since we are not writing for IPv6 yet we exit early in the process.
2015-04-12 20:27:55 -07:00
Darryl Quinn e80f67f139 bugfix: email link did not contain password value 2015-04-11 22:37:26 -05:00
Darryl Quinn 45e82607f9 bugfix: correcting 0 offset issue when getting list of clients, added copyright notice 2015-04-11 22:33:13 -05:00
Darryl Quinn 7695dcdc4c Merge branch 'develop' into tunnel_mainline 2015-04-10 17:42:21 -05:00
AE6XE c1f293a6f9 Merge branch 'develop' of git.aredn.org:aredn_ar71xx into develop 2015-04-09 20:44:05 -07:00
AE6XE 56749d19ff Merge branch 'wscan' into develop 2015-04-09 20:43:04 -07:00