1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00
Commit Graph

474 Commits

Author SHA1 Message Date
billz
a4c594beff Update release version 2020-03-25 16:54:06 +00:00
billz
422a46e92c Fix PHP notices 2020-03-24 18:48:35 +00:00
Taikuh
80b0634d2d corrected hostapd toggle display 2020-03-23 20:41:06 +08:00
billz
c56a48234f Update dnsmasq.d path 2020-03-20 17:43:46 +00:00
Taikuh
8082430c30 ovpn, uap0 compatibility; readme 2020-03-15 19:02:20 +08:00
Taikuh
5e44aae1c5 Disable incompatible settings when bridged 2020-03-13 05:02:26 +08:00
Taikuh
8823c0602e Add bridged-routed toggle to webgui 2020-03-10 19:07:15 +08:00
Bill Zimmerman
33b6a42aa0
Merge pull request #519 from glaszig/fix/markup
dhcp page maintenance
2020-03-06 20:05:25 +01:00
billz
88f0859955 Terminal theme => Lights Out 2020-03-06 18:40:47 +00:00
glaszig
29d4653524 prevent variable name collision in renderTemplate() function 2020-03-06 16:54:48 +01:00
billz
90b922c432 Update with dnsmasq logfile output 2020-03-05 10:35:40 +00:00
Bill Zimmerman
3ba6c135a8
Merge pull request #506 from glaszig/feature/dhcp-upstream-server
[WIP] added ui to manage upstream dns servers
2020-03-04 23:07:35 +01:00
glaszig
cfa3f9cfd3 added selectable hosted dns servers 2020-03-04 19:43:22 +01:00
glaszig
e037bd92e7 prevent empty upstream server field if non is set 2020-03-04 18:23:51 +01:00
glaszig
6bb4abac56 added checkbox for no-resolv option in dnsmasq.conf 2020-02-29 18:33:51 +01:00
glaszig
a3c8def120 added ui to manage upstream dns servers 2020-02-28 23:41:56 +01:00
glaszig
3cc2720a35 respect common dhcpcd config options in ap mode
resolves #502
2020-02-28 17:51:33 +00:00
glaszig
ad1ca08de3 escape qrencode arguments in multibyte-safe way 2020-02-27 23:52:35 +00:00
glaszig
409adb0c05 add conf-dir option to dnsmasq.conf, closes #403
this allows custom configuration stored
in files in /etc/dnsmasq.d. raspap does not
touch them and they'll always be loaded.

also creates /etc/dnsmasq.d if it doesn't exist.
2020-02-26 02:13:19 +00:00
billz
8e29570d07 Enable restart when hostapd is active. Addresses #495 2020-02-18 21:01:38 +00:00
billz
457da91008 Processed with phpcbf 2020-02-15 17:57:46 +00:00
John
8fe0e9e59a fully locked down the back-end in monitoring mode 2020-02-13 23:08:46 -03:30
John Karabudak
c7785ce672 fixed security hole that allowed web console in monitor mode 2020-02-13 21:59:58 -03:30
billz
90fe706fba Update release version 2020-02-11 07:12:14 +00:00
billz
7180501272 Added cputemp + memuse led values 2020-02-03 09:32:16 +00:00
billz
b37221b55b Update SSID label 2020-02-03 09:28:06 +00:00
billz
49cb572069 Update w/ hostapd svc indicator 2020-02-02 12:40:24 +00:00
billz
857ffb15d4 Fix indents 2020-02-02 11:57:31 +00:00
billz
8b0c4d7308 Added hostapd status 2020-02-02 11:55:10 +00:00
billz
298bec2465 Removed unused system class 2020-02-02 11:35:55 +00:00
billz
82db0a34b9 WIP: dashboard redesign 2020-02-02 08:37:15 +00:00
billz
2056236c42 Get hostapdStatus from System 2020-02-01 11:07:54 +00:00
billz
7f12ef1cee Added support for Greek. Thanks Chris K! 2020-01-14 09:23:13 +00:00
billz
6325f4dd02 Update dnsmasq with bind-dynamic. Addresses #429 2020-01-13 09:42:05 +00:00
billz
ff2c91fe8d Bugfix, resolves #457 2020-01-06 18:00:07 +00:00
Bill Zimmerman
bc8ed88d93
Merge pull request #465 from billz/802.11ac
802.11ac config
2020-01-01 10:58:22 -08:00
billz
a596568fbc Revert "Allow channel input up to 64 (testing)"
This reverts commit 40bc21a04b.
2019-12-30 04:39:37 +00:00
billz
40bc21a04b Allow channel input up to 64 (testing) 2019-12-28 00:05:59 +00:00
billz
3292bc580b Added disabled param to SelectorOptions() 2019-12-27 03:08:51 +00:00
billz
f8ac55da6f Added missing 4B models 2019-12-27 00:50:53 +00:00
billz
597f2ebdb9 Added support for wireless mode AC 2019-12-26 06:17:27 +00:00
billz
6d7aa1b401 Added optional $event param to SelectorOptions() 2019-12-26 06:16:13 +00:00
billz
5462e26d95 Add detect managedModeEnabled state with iwgetid 2019-12-13 14:05:41 +00:00
billz
aeaa6432d6 Update release version 2019-12-01 11:14:08 +00:00
billz
07ca2900a1 Omit wpa_pasphrase is sec type = none. Resolves #439 2019-11-26 13:14:14 +00:00
billz
e4e3089a82 Update openvpn paths 2019-11-17 18:22:55 +00:00
billz
5c8b18a0ac Allow empty credentials in case of client key auth. Thanks @r45635 2019-11-17 18:16:14 +00:00
billz
81db069626 Resolve public_ip 2019-11-17 12:00:30 +00:00
billz
ebcdd4d47b Minor: mode change 2019-11-17 10:16:55 +00:00
billz
5ddad7e39c Update tmp paths, parameterize control script 2019-11-17 10:16:10 +00:00
billz
d10d349e9a Handle .ovpn file upload, auth-user-pass config, client svc start/stop 2019-11-16 10:10:25 +00:00
billz
a15ed37adc Update svc control init.d w/ systemd 2019-11-15 09:02:37 +00:00
billz
11955a9641 Update svc control init.d w/ systemd 2019-11-15 09:00:36 +00:00
billz
23d40b138d Added OPENVPN_CLIENT_LOGIN 2019-11-15 08:44:29 +00:00
billz
25d1ddeed6 Templatized Tor proxy config 2019-11-12 21:05:21 +00:00
billz
2c9f135389 Templatized OpenVPN config 2019-11-12 16:03:26 +00:00
billz
e4225086e1 Moved DisplayOpenVPNConfig() to new file 2019-11-12 16:02:05 +00:00
billz
4e4a937ccd Handler for restart lighttpd 2019-11-11 13:35:48 +00:00
billz
eb0442b130 Added support for lighttpd server port. Resolves #146 2019-11-10 22:10:49 +00:00
billz
7e6a8f35af Added lighttpd conf 2019-11-10 22:09:16 +00:00
billz
3c93fe4d6f Update supported locales 2019-11-08 17:20:50 +00:00
billz
f8b1f407f7 Added option to disable system tab. Thanks @sedgett 2019-11-08 08:20:47 +00:00
glaszig
313852a698 handle configuration in a conflict-free way
* config defaults in includes/defaults.php
* removed includes/config.php, added to gitignore
* during installation copy config/config.php
  to includes/config.php
2019-11-05 15:30:08 +01:00
billz
bcdadd3d43 Parse/set static ip_address value for uap0. #329 2019-11-04 10:04:11 +00:00
billz
fdef2a3d7a Parse/set dhcp-range & dhcp-option values from system config. #329 2019-11-04 09:40:23 +00:00
billz
0b9f7d232e Replace empty values with placeholder 2019-11-03 09:45:55 +00:00
Bill Zimmerman
b1f9312175
Merge pull request #416 from billz/bootstrap4
Bootstrap 4 / SB Admin 2 v4 update
2019-11-01 18:30:32 +01:00
billz
7f384e9ff1 Abbreviate serviceStatus for small devices 2019-11-01 09:10:24 +00:00
billz
23c60010b3 Update release version 2019-10-31 09:14:10 +00:00
Bill Zimmerman
253b3cddc4 Added support for Indonesian, 한국어, 日本語 & Tiếng Việt 2019-10-28 21:18:40 +01:00
billz
9d38e6a806 Update OpenVPN + Tor to bootstrap4. Todo: templatize 2019-10-24 23:35:59 +01:00
Bill Zimmerman
093080cb49
Merge branch 'master' into bootstrap4 2019-10-20 22:33:09 +02:00
billz
b29bbf4f11 Replace HTML linebreaks in ConvertToSecurity() 2019-10-15 21:07:21 +01:00
billz
f0ab44a9fe Minor: update comment 2019-10-15 21:06:07 +01:00
billz
ce944f92bb Rebase master 2019-10-14 23:33:41 +01:00
billz
40e408dd98 Work in progress 2019-10-12 23:04:27 +01:00
Yusnel Rojas Garcia
4d45afa27b support dns options in dnsmasq configuration 2019-10-11 13:24:22 -04:00
billz
976ae2a6bb Update release version 2019-10-10 18:17:39 +01:00
billz
3fa1be1cd6 Update include path 2019-10-08 19:10:18 +01:00
billz
d1558413d4 Update paths to reflect gulp build 2019-10-08 18:36:31 +01:00
billz
7d8cce9fb1 Update release version 2019-10-06 12:43:45 +01:00
billz
f9afd96280 Fix: update tmp/dnsmasqdata to match sudoers. Resolves #407 2019-10-04 18:57:58 +01:00
billz
009f51c20c Parse/set dhcpcd & dnsmasq values from system config #329 2019-09-08 16:28:01 +01:00
billz
7938069841 Minor: mode change 2019-09-08 16:13:45 +01:00
billz
e399450cef Minor: mode change 2019-09-08 16:13:31 +01:00
billz
b641e963a9 Minor: mode change 2019-09-08 16:13:25 +01:00
billz
8be24381a8 Processed with phpcbf for PSR-2 coding standard 2019-09-07 16:42:31 +01:00
billz
bfc0dba6ad Added monitor option. Resolves #378 2019-09-07 09:53:37 +01:00
Bill Zimmerman
f59faabf1d
Merge branch 'master' into feature/templates 2019-08-27 15:16:56 +02:00
glaszig
452ad764d9
fix panel heading style in network config 2019-08-20 22:32:18 +02:00
billz
595a7eafcd Updated version 2019-08-20 10:18:25 +01:00
glaszig
259d3838b5 improved theme dropdown, selected theme detection 2019-08-19 22:37:22 +02:00
glaszig
2c64ff0b3e removed logic from system template 2019-08-19 22:37:22 +02:00
glaszig
df429064c6 fixed up dhcp template 2019-08-19 22:37:22 +02:00
glaszig
89f3330606 use template for network page 2019-08-19 22:37:22 +02:00
glaszig
33b99c0ae7 use template for hostapd page 2019-08-19 22:37:22 +02:00
glaszig
9defff1cf4 use template for dhcp page 2019-08-19 22:37:22 +02:00
glaszig
c1f75a696a use template for data usage page 2019-08-19 22:37:22 +02:00
glaszig
7fcdd5e89c use template for dashboard 2019-08-19 22:37:22 +02:00
glaszig
d7ee29aeee use template for configure client page 2019-08-19 22:37:22 +02:00
glaszig
e4e9b5c5c1 use template for admin page 2019-08-19 22:35:30 +02:00
glaszig
2215b11c21 use template for themes page 2019-08-19 22:35:29 +02:00
glaszig
0608b6cb22 use template for system page 2019-08-19 22:35:29 +02:00
glaszig
10dd214b17 add class for system information 2019-08-19 22:35:29 +02:00
glaszig
76f905fe9d use template for about page 2019-08-19 22:35:29 +02:00
glaszig
5a49768614 fix renderTemplate() function to allow data-less rendering 2019-08-19 22:35:29 +02:00
Bill Zimmerman
6985322ca0
Merge pull request #387 from glaszig/fix/wifi-stations
restore configuration of multiple networks
2019-08-19 18:50:58 +02:00
glaszig
1c8931c63b restore configuration of multiple networks
fucked up in 993dc633a9
2019-08-19 18:06:15 +02:00
glaszig
20d9e919c3 generate only one csrf token per session
some pages issue xhr which lead to new
tokens in the session and a future check
is garuanteed to fail.
2019-08-19 03:12:37 +01:00
Bill Zimmerman
5858971762
Merge pull request #372 from glaszig/ui/xhr-load-cached-wifi-stations
load wifi stations via ajax, cache the scan result
2019-08-17 09:53:13 +02:00
glaszig
d2bb1b02b5 move CSRFTokenFieldTag up to the opening form tag
for style and discoverability
2019-08-14 02:44:13 +02:00
glaszig
f5e3b717ff add missing CSRFTokenFieldTag's 2019-08-14 02:41:58 +02:00
Bill Zimmerman
d124e68275 Processed with phpcs for PSR-2 2019-08-12 11:22:06 +02:00
Bill Zimmerman
6d347f9a52
Merge pull request #374 from glaszig/feature/rpi4b
add RPI 4
2019-08-12 11:12:26 +02:00
Bill Zimmerman
e2f07044b4
Merge pull request #362 from glaszig/feature/ap-client-limit
make hostapd's max_num_sta configurable
2019-08-10 12:13:30 +02:00
sunnybank101
f3e3beb0ce add RPI 4 2019-08-10 12:09:04 +02:00
glaszig
3f9d176793 show current nax_num_sta as input value,
make field description translatable
2019-08-10 11:57:10 +02:00
Bill Zimmerman
6286595898
Merge pull request #369 from glaszig/fix/arp-speed
speed up dashboard
2019-08-09 18:02:54 +02:00
Bill Zimmerman
b878e87cae
Merge pull request #371 from glaszig/ui/layout-fixes
layout improvements
2019-08-09 16:34:14 +02:00
glaszig
916072f7fd bootstrap panel-footer goes directly after panel-body
https://getbootstrap.com/docs/3.3/components/#panels-footer
2019-08-09 16:21:58 +02:00
Bill Zimmerman
a00f1be009
Merge pull request #366 from glaszig/feature/improved-service-status-indicator
improved service status display
2019-08-08 20:55:04 +02:00
glaszig
993dc633a9 load wifi stations via ajax, cache the scan result
until the "rescan" button is pressed. speeds up
"configure client" page massively.
2019-08-08 03:44:28 +02:00
glaszig
56097d5629 send proper csrf header 2019-08-08 00:14:12 +02:00
glaszig
1fddad190f fix require paths 2019-08-07 23:51:22 +02:00
glaszig
c1da509053 remove superfluous, overly nested html (mainly bootstrap panels) 2019-08-07 23:16:56 +02:00
sunnybank101
62c7e99465 arp can take for ever
added -n to the arp command to speed it up!
2019-08-07 22:48:59 +02:00
billz
b5f875cce7 Updated CSRFTokenFieldTag 2019-08-07 21:01:05 +01:00
glaszig
da69d3d768 send CSRF token in a response header,
update the page's CSRF tokens with the new token
from the response header,
verify csrf token in ajax endpoints,
initialize a session for every endpoint
2019-08-06 21:34:58 +02:00
glaszig
8f3489cd4a remove id attribute from csrf token field due to obsolescence
and if there's multiple form's on the page it would lead to
multiple elements with the same id which is illegal in html
2019-08-06 20:55:16 +02:00
glaszig
f36b08c10a rename CSRFToken() to the more apt CSRFTokenFieldTag() 2019-08-06 20:55:16 +02:00
glaszig
0a255e8b49 don't write the csrf token field to the output buffer
but return and echo it
2019-08-06 20:55:16 +02:00
glaszig
6f1ae104f3 improve CSRFToken() implementation 2019-08-06 20:55:16 +02:00
glaszig
2f6dc2cc05 remove superfluous semi-colon 2019-08-06 20:55:16 +02:00
glaszig
964dc00fab generate a new csrf token for each request 2019-08-06 20:55:16 +02:00
glaszig
7898dc24c8 mcrypt_create_iv is deprecated, openssl_random_pseudo_bytes
depends on openssl. php7 has the platform-independent
`random_bytes` to generate "cryptographically secure"
random data. use that for csrf token.
2019-08-06 20:55:16 +02:00
glaszig
490cb14acd removing superfluous call to CSRFToken() which
just put the hidden input onto the page for js
to have access to it. this is now handled with
a meta tag.
2019-08-06 20:55:16 +02:00
glaszig
b9e9b7fe39 move csrf token initialization into function 2019-08-06 20:55:16 +02:00
glaszig
0967a53152 validate token value from csrf token header
if supplied and not overridden by post request param
2019-08-06 20:55:16 +02:00
glaszig
20bb9fe42f add csrf meta tag (for use with xhr, for example) 2019-08-06 20:55:16 +02:00
glaszig
87fe8948b8 remove splattered, duplicated csrf validation code
since we do that always and early, now.
2019-08-06 20:55:16 +02:00
glaszig
f989b8060b always verify csrf token for resource-modifying requests,
that is post, put, patch, delete
2019-08-06 20:55:16 +02:00
Bill Zimmerman
93b458197a
Merge pull request #365 from glaszig/feature/connect-hidden-ssid
enable wifi client to connect to hidden ssid
2019-08-05 16:04:29 +02:00
Bill Zimmerman
9b66c2cd03
Merge pull request #363 from glaszig/fix/hostapd-wmm
properly enable wmm by fixing a typo
2019-08-05 15:46:10 +02:00
billz
c0cfcfa117 Bugfix, resolves #367 2019-08-05 14:26:55 +01:00
glaszig
1152637120 puts service status as label into panel heading 2019-08-02 23:40:06 +02:00
Bill Zimmerman
ff21343751
Merge branch 'master' into ui/escape-interface-settings 2019-08-02 18:18:19 +02:00
Bill Zimmerman
fe35742519
Merge pull request #361 from glaszig/feature/static-dhcp-hosts
static dhcp leases
2019-08-02 17:49:29 +02:00
glaszig
493269e061
enable wifi client to connect to hidden ssid
according to the docs:
For finding networks using hidden SSID, scan_ssid=1 in the network block can be used with nl80211.

and

scan_ssid:
	0 = do not scan this SSID with specific Probe Request frames (default)
	1 = scan with SSID-specific Probe Request frames (this can be used to
	    find APs that do not accept broadcast SSID or use multiple SSIDs;
	    this will add latency to scanning, so enable this only when needed)

https://w1.fi/cgit/hostap/plain/wpa_supplicant/wpa_supplicant.conf

see billz/raspap-webgui#345
2019-08-02 14:42:15 +02:00
glaszig
b52f290020 improved 802.11 standard select option labels in hostapd ui 2019-08-01 23:01:31 +02:00
glaszig
0e9ed7d833 make hostapd's max_num_sta configurable 2019-08-01 22:42:52 +02:00