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

256 Commits

Author SHA1 Message Date
billz
e8c9587f5a Added OpenVPN install option. addresses #147 2019-11-18 11:51:59 +00:00
billz
cd92bdae46 Update iptables msgs 2019-11-17 19:08:39 +00:00
billz
47af4c7815 Update sudoers 2019-11-17 18:46:39 +00:00
billz
5eac756946 Added argument for auth-user-pass 2019-11-17 18:20:25 +00:00
billz
40ac95af59 Update openvpn client path 2019-11-17 18:17:46 +00:00
billz
607a72e5e9 Merge branch 'master' of https://github.com/billz/raspap-webgui 2019-11-17 12:03:31 +00:00
billz
122609866a Add iptables entries to rc.local 2019-11-17 10:17:57 +00:00
billz
844182f704 Minor: update comment block 2019-11-17 10:11:52 +00:00
billz
e0bb18b283 Update openvpn-client sudoers 2019-11-16 17:42:55 +00:00
billz
b412587249 Update msgs 2019-11-16 09:15:39 +00:00
billz
06c00b727b Initial commit 2019-11-15 09:01:57 +00:00
billz
21cff18275 Added create_openvpn_scripts, update svc controls to systemd 2019-11-15 08:57:17 +00:00
billz
e58e1df283 Added -h, --help 2019-11-11 19:24:01 +00:00
billz
d83dab1937 Simplify usage string 2019-11-11 19:18:20 +00:00
billz
24b669b157 Added -r option, changed msgs 2019-11-11 13:37:06 +00:00
billz
21ae039589 Minor: update legacy version check 2019-11-11 09:17:35 +00:00
billz
fa0c18c52e Error handling 2019-11-11 08:57:30 +00:00
billz
a08005dca7 Added repo & branch command line options 2019-11-11 08:51:45 +00:00
billz
cbec3c40d2 Added create_lighttpd_scripts() 2019-11-10 22:21:55 +00:00
billz
d3e0aca3d7 Initial commit 2019-11-10 22:09:36 +00:00
billz
1a533234d4 Hotfix. Resolves #430 2019-11-08 10:54:05 +00:00
billz
0fa61f8626 Bugfix 2019-11-07 20:12:41 +00:00
billz
35894bc4fc Minor: messages 2019-11-07 20:12:23 +00:00
billz
a66bb13703 Cleanup + error handling 2019-11-07 18:04:41 +00:00
billz
3a0540c266 Replace $certname with $HOSTNAME 2019-11-07 16:45:21 +00:00
billz
bf9647c5bb Update installer paths 2019-11-07 13:48:30 +00:00
billz
76ee50ec96 Cleanup debug output 2019-11-07 13:36:21 +00:00
billz
2f0db78955 Added usage notes, handle default & known cases 2019-11-07 13:29:42 +00:00
billz
fbcb6c3836 Updated install_complete help text 2019-11-07 13:24:06 +00:00
billz
7914110a77 Added configure_lighttpd() 2019-11-07 12:33:17 +00:00
billz
23d1ab83c7 Update version method 2019-11-07 10:41:56 +00:00
billz
5f4bd25ddc WIP 2019-11-07 10:41:05 +00:00
billz
61fe3cc6ee Removed trailing slash on webroot prompt 2019-11-07 10:35:17 +00:00
billz
de56289ca6 Generalize installer 2019-11-07 08:44:13 +00:00
billz
cf63968ca3 Initial commit 2019-11-07 08:39:54 +00:00
billz
b0c874254a Move shared functions 2019-11-07 08:39:33 +00:00
Bill Zimmerman
966f5319a0
Merge pull request #426 from glaszig/conflict-free-config
handle configuration in a conflict-free way
2019-11-06 10:35:06 +01: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
25c4b965eb Added install option for web root. Resolves #294 2019-11-05 07:25:48 +00:00
Bill Zimmerman
c75788e31c Get latest release version from GitHub API 2019-11-04 18:18:33 +01:00
Bill Zimmerman
1d45ef7f2c Display release version in welcome msg 2019-11-04 18:17:30 +01:00
billz
33b8017181 Update sudo_add() with $raspap_user. Resolves #409 2019-10-10 08:34:40 +01:00
billz
fe2d01f42f Added comment block with command-line options 2019-10-06 23:59:21 +01:00
billz
83e6f60cb7 Fix handling of command-line options 2019-09-30 18:58:12 +01:00
billz
3404aeebe0 Updated with $apt_option for non-interactive install 2019-09-30 18:44:03 +01:00
billz
44f6762cb1 Updated with unattended install option. Resolves #397 2019-09-30 18:42:04 +01:00
glaszig
9182c5509c allow raspap to read hostapd log without elevated privileges 2019-08-20 22:17:27 +02:00
billz
99b0c04ef2 Bugfix in sudoers. Resolves #373 2019-08-13 00:11:10 +01:00
billz
e4757a06ae Minor: use install_log for raspap.service 2019-08-07 09:28:20 +01:00
glaszig
2104ccb91a favicons and sorts can stay in subdirectories
and be pointed to by proper meta tags.
do not copy these around during installation and poison the git tree.
2019-08-06 21:36:52 +02:00
glaszig
748348f407 during installation copy files from the git working tree
to their destinations instead of moving them and making
git think they got deleted
2019-08-06 21:36:52 +02:00
billz
76d23e33f9 Hotfix 2019-07-10 07:46:58 +01:00
Bill Zimmerman
a280c9df89
Updated to support Buster "stable" release 2019-07-08 21:49:38 +02:00
Bill Zimmerman
4940255cc6
Minor update to version_msg 2019-06-29 09:54:29 +02:00
Bill Zimmerman
acd58ce557
Minor update to version_msg 2019-06-29 09:51:36 +02:00
billz
f9b5a8f126 Updated php version for Raspbian 10.0 (Buster) 2019-06-25 07:40:08 +00:00
billz
913ce3b5c0 Updated php version for Raspbian 10.0 (Buster) 2019-06-25 07:40:02 +00:00
billz
de8bdef908 Updated to detect Raspbian 10.0 (Buster) 2019-06-24 22:14:38 +00:00
billz
13aa0864d0 Updated to detect Raspbian 10.0 (Buster). Resolves #337 2019-06-24 21:57:49 +00:00
billz
cdf1406aba Added prompt to remove installed packages. Resolves #336 2019-06-24 21:42:15 +00:00
billz
fc2375ab18 Bugfix + cleanup 2019-04-30 22:19:34 +00:00
billz
93e1fff5d5 Update read WifiManaged interface from config. Resolves #323 2019-04-30 18:30:26 +00:00
billz
d247f3fb90 Updated download_latest_files() 2019-04-24 22:20:41 +00:00
billz
8796b5d359 Moved favicons to dist/icons. Updated installer 2019-04-24 22:11:43 +00:00
billz
be24aa2a20 Added prompt to install raspap.service 2019-04-21 10:59:36 +00:00
billz
b54289098e Check for presence of raspap/hostapd.ini 2019-04-19 12:23:05 +00:00
billz
f73dcd4e99 Install raspap.service daemon 2019-04-19 11:36:09 +00:00
billz
57f42f2019 Added check for WifiAPEnable flag 2019-04-19 11:35:03 +00:00
billz
1e93189a65 Initial commit, RaspAP daemon 2019-04-19 11:33:18 +00:00
billz
713f52fac4 Minor, fixed indent 2019-04-10 09:02:28 +00:00
billz
4d2d79b404 Conditional prompt for reboot 2019-04-07 22:13:05 +00:00
billz
cc6fe6f2ac Added restart rc-local.service 2019-04-06 08:52:36 +01:00
billz
c83f2883ce bugfix: added slashes to iptables rules 2019-04-06 08:36:36 +01:00
Bill Zimmerman
be1929117a
Bugfix, patch sudoers 2019-03-14 10:50:12 +01:00
billz
d55f83ce16 Deleted servicesdisable.sh 2019-03-12 15:30:09 +00:00
billz
a9cc4a0c2a Removed servicesdisable.sh from sudoers 2019-03-12 00:02:52 +00:00
billz
e30fb10da7 Added /bin/cp /etc/dhcpcd.conf to sudoers 2019-03-11 23:43:39 +00:00
billz
9abf79b23c Merge branch 'master' into wificlient-ap 2019-03-09 21:11:54 +00:00
Bill Zimmerman
ba7a2904ea
Hotfix: enable hostapd.service 2019-03-09 19:45:27 +01:00
billz
e83e99656d Hotfix: unmask hostapd.service 2019-03-09 17:48:51 +00:00
billz
bdc5958c4f Cleanup, typo fix 2019-03-07 22:14:27 +00:00
billz
47a2b7c346 Paramaterized service start, handles both uap0 and default 2019-03-07 10:17:16 +00:00
billz
a2829dcf78 Added iptables nat rules for uap0 config 2019-03-07 10:15:51 +00:00
billz
cd3ac06bf1 Renamed 2019-03-06 19:33:40 +00:00
billz
39e9037593 Renamed 2019-03-06 19:14:04 +00:00
billz
5bb549868b Minor: move service control script 2019-03-06 19:13:17 +00:00
billz
66a3944039 Minor, updated for rename 2019-03-06 13:22:16 +00:00
billz
7fcf22e4c3 Update create_hostapd_scripts, sudoers 2019-03-06 10:48:18 +00:00
Bill Zimmerman
ef20f3dd6f Minor, edit comments 2019-03-06 09:58:37 +01:00
Bill Zimmerman
f9f0924d34 Initial commit 2019-03-06 00:57:49 +01:00
billz
22976669ee Added wpa_cli -i wlan[0-9] select_network, thanks @PRO2XY 2018-11-13 22:21:02 +00:00
D9ping
183f04f53f Enable data usage page by default.
Signed-off-by: D9ping <D9ping@users.noreply.github.com>
2018-09-14 01:07:23 +02:00
D9ping
23d2718854 Renamed vnstat.php to bandwidth.php.
Disabled bandwidth page by default.

Signed-off-by: D9ping <D9ping@users.noreply.github.com>
2018-09-11 16:15:31 +02:00
D9ping
e90b9899a3 Merge branch 'master' of https://github.com/billz/raspap-webgui into bandwidthmonitoring 2018-09-06 21:31:38 +02:00
billz
22c791e1f3 Standardized messages, modified php config install order 2018-09-05 12:59:49 +00:00
D9ping
03f2620e48 Backup php.ini to $raspap_dir/backups folder.
Ask for before changing php configuration of httpOnly and opcache.
Do not change session.use_strict_mode, no extra question.
Ask to restore backup of php.ini from $raspap_dir/backups folder in uninstall.sh.

Signed-off-by: D9ping <D9ping@users.noreply.github.com>
2018-08-31 23:38:30 +02:00
D9ping
e428271ef2 Fix for #225, (Credits to DrStacheWH)
Removed duplicated create_logging_scripts function.

Signed-off-by: D9ping <D9ping@users.noreply.github.com>
2018-08-27 23:10:56 +02:00
D9ping
aa96780c0b Backup php configuration before changing it.
Removed support for disabling php extensions.

Signed-off-by: D9ping <D9ping@users.noreply.github.com>
2018-08-24 10:36:20 +02:00
D9ping
8355c1cbfe Use sed regular expressions to deal with changing php configuration.
Don't try turn on not existing Zend Opcache under php 5<=
Turn on session.use_strict_mode if off.
Don't change decreated expose_php.

Signed-off-by: D9ping <D9ping@users.noreply.github.com>
2018-08-23 00:44:12 +02:00
D9ping
19f123b0c4 WIP: Php default configuration hardening.
Signed-off-by: D9ping <D9ping@users.noreply.github.com>
2018-08-21 23:43:50 +02:00
D9ping
d6d89df024 Display bandwidth use total per day, week, month from vnstat.
Signed-off-by: D9ping <D9ping@users.noreply.github.com>
2018-08-21 16:42:04 +02:00
randyoo
2805e6eb6d
support secondary (or more) wlan interfaces
patch installer.sh with /etc/sudoer commands that support wlan1 - wlan9.
2018-07-06 11:09:57 -06:00
randyoo
2649991675
add wlan1 scan capability to sudoers commands 2018-06-29 14:22:39 -06:00
Ali Borhani
088bf99637
Use --depth option during cloning the repo 2018-04-23 01:02:07 +04:30
billz
f873073570 Hotfix: specify interface with wpa_cli in patch_system_files(). Addresses #163 2018-03-28 10:13:44 +00:00
Bill Zimmerman
98ace52351 bug fixes to default_configuration(). Resolves #174. Thanks @Austin-RR 2018-03-19 12:43:24 +01:00
Joe
ba9d6cba59
Fix /etc/sudoers entries
- symlink to hook wpa_supplicant if multiple wireless adapters. Otherwise, "wpa_cli" cmds fail if you have more than one wlan device
- set cmds array items to double quotes
- added entries for wlan1 interfaces, to be able to control more than one wireless adapter
- updated if statement checking the number of lines in /etc/sudoers
- added IFS in do loop, to handle spaces in array items properly (current method truncates the line if it finds a space)
2018-02-16 07:31:04 -07:00
billz
5d9d58630c Merge branch 'master' of https://github.com/billz/raspap-webgui 2017-11-16 22:38:54 +00:00
billz
951228275c Fixes #138 2017-11-16 22:38:03 +00:00
Bill Zimmerman
6dc944603c
Merge branch 'master' into new-php-pa 2017-11-16 02:28:59 +01:00
billz
0f7658221e Installs php7.0-cgi on Stretch, maintains backwards compatibility 2017-11-16 01:24:02 +00:00
billz
b950a1966d Fixed permission error. Resolves #136 2017-11-08 08:23:02 +00:00
billz
17e737792f Fixed path 2017-11-07 17:05:09 +00:00
Lawrence
39d743ae89 merge from upstream 2017-11-04 12:53:29 +08:00
Lawrence
068c4c519e Merge from Upstream 2017-11-04 12:49:48 +08:00
Lawrence
7b93326478 updated stylesheet and installer with left out stuff 2017-11-02 22:48:15 +08:00
Lawrence
f61cc31b20 Created new branch off master to help troubleshoot with #132 2017-11-02 22:43:41 +08:00
Lawrence
604b28130f Updating to help troubleshoot #132
Added the scripts to disable and enable logging for hostapd
Updated sudoers to allow running scripts
2017-11-02 22:33:11 +08:00
Lawrence
8d77295fd3 Updated sudoers to accomodate restarting dhcpcd to apply network settings.
Updated installer to insert new lines
Created files to generate / modify / save dhcpcd files and networking configuration
2017-10-30 02:21:34 +08:00
Lawrence
db8e201624 Merge from Upstream/Master https://github.com/billz/raspap-webgui 2017-10-29 12:32:36 +08:00
Joseph Haig
c8f863aeaf Fix properly 2017-10-28 20:59:17 +01:00
Joseph Haig
f0f4f16438 Fix fastcgi-php setup for fresh install 2017-10-28 12:00:15 +00:00
Lawrence
7749b79e2f Implemented start of web interface to update Static IP addresses or use DHCP.
Currently saves to files in /etc/raspap/networking, still need to build something to generate a working config for dhcpcd
2017-10-28 02:40:30 +08:00
Lawrence
a0a4f842b4 Updating install script and removing unneeded configuration file 2017-10-22 19:46:52 +08:00
Joseph Haig
354b387327 Change php5-cgi to php-cgi 2017-10-22 11:10:28 +01:00
Lawrence
908f0de8cb Updated install and uninstall scripts to append to rc.local rather than overwrite the file 2017-10-21 22:39:29 +08:00
Lawrence
1fc0615452 Updated install script with new sudoers lines required. Updated uninstall script to resolve lighttpd directory contents not being removed
Updated dashboard.php file to remove IP addresses when taking wlan0 down.
2017-10-04 01:28:57 +08:00
Lawrence
0be196d708 Updated version numbers. Fixed up Sudoers file to include latest ip commands. 2017-10-04 01:06:47 +08:00
Lawrence
f507a0b8cf Created the uninstall script 2017-10-03 13:09:55 +08:00
Lawrence
0b7b0a4d96 Updated installer to properly make symlinks to latest backup 2017-10-03 12:19:35 +08:00
Lawrence
036b7a3050 I forgot a couple of renames. Fixed 2017-10-02 03:36:51 +08:00
Lawrence
de7303883b Updated installer script to backup more configuration files and appends dates when renaming old installation files when doing an inplace reinstall 2017-10-02 03:34:14 +08:00
Lawrence
a6b1d85013 Fixed up installation script to allow for reinstalls over existing installs. 2017-10-01 23:22:07 +08:00
Lawrence
a36e525f98 Fixed up PHP notices. Added text when IP Address, MAC Address, and Subnet mask aren't found.
Also added function to backup configuration files /etc/network/interfaces and /etc/hostapd/hostapd.conf files if found.
2017-10-01 20:54:16 +08:00
Bill Zimmerman
58c6b67f49 Added welcome + clarified install dirs 2017-05-19 16:33:01 +00:00
Joe Haig
cc96885ec9 Fix 'else' clause 2017-01-27 09:31:26 +00:00
Joe Haig
bfb635636b Various small fixes
* Append `.old` to old web directory instead of moving to `/tmp`
* Do not give the user a choice of install location
* Better detection of Debian version
* List username and password in Quick Start instructions
2017-01-27 09:21:53 +00:00
Joe Haig
f0cf084202 Add rc.local file to set up NAT routing 2016-11-13 17:42:50 +00:00
Joe Haig
2d992fb4ac Revert back to using /etc/init.d
Don't change too many things at once.
2016-10-23 20:08:17 +01:00
Joe Haig
c5cb30f9e7 Install dnsmasq 2016-10-23 18:25:07 +01:00
Joe Haig
ec03171e74 Reboot at end of installation 2016-10-23 17:37:29 +01:00
Joe Haig
a3ea51077d Some more default config files
* /etc/default/hostapd
* /etc/dhcpcd.conf
* /etc/dnsmasq.conf
2016-10-23 17:02:52 +01:00
Joe Haig
a3bfa51c70 Default hostapd configuration 2016-10-23 16:39:33 +01:00
Joe Haig
58bd439b4d Replace /etc.init.d with service 2016-10-22 22:02:39 +01:00
Joe Haig
fd20d867dc Install hostapd as a dependency 2016-10-21 22:31:51 +01:00
Joe Haig
b8b3fd1d31 Move old install directory if it exists 2016-10-21 22:28:00 +01:00
Joe Haig
54ef4de291 Make /etc/visudo file a bit more readable 2016-09-18 16:00:27 +00:00
Joe Haig
bf2002e72f Fix typo 2016-09-11 21:48:26 +01:00
Bill Zimmerman
c8cca832c8 Merge branch 'master' of https://github.com/billz/raspap-webgui 2016-08-31 16:30:44 +02:00
Bill Zimmerman
17d1b69805 Detect Raspian version and set lighttpd webroot. Fixes #29 2016-08-31 16:30:28 +02:00