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

190 Commits

Author SHA1 Message Date
billz
ba13a592cc Standardize service name raspapd 2020-03-22 13:40:34 +00:00
billz
409545f4c3 Direct output to /dev/null, error handling 2020-03-22 11:48:33 +00:00
billz
d799fc1de0 WIP: raspap.service changes 2020-03-22 09:06:23 +00:00
billz
26a28a0123 Persist IP forwarding + iptables, update raspapd 2020-03-21 23:37:05 +00:00
billz
a943942bdd Refactor configure_networking, create get_linux_distro 2020-03-21 17:31:38 +00:00
billz
15d829c0b1 Create configure_networking 2020-03-21 08:07:40 +00:00
billz
0b135fb231 WIP: Ubuntu 18.04 LTS support 2020-03-20 20:13:33 +00:00
billz
8216a3f4ec Added load sysctl settings 2020-03-20 17:21:07 +00:00
billz
8dfed88ed3 Exec update-alternatives to use iptables-legacy. nftables replaces iptables on Debian 10 2020-03-20 16:18:42 +00:00
billz
63dc8442ba Fix: /etc/iptables/ dir absent on Raspbian 2020-03-20 14:20:21 +00:00
billz
125c203884 Fix: tee output w/ sudo 2020-03-20 13:49:06 +00:00
billz
96aed21bb5 Quote vars + remove whitespace 2020-03-20 12:07:50 +00:00
billz
6e713e6857 Bugfix IP forwarding + error handling 2020-03-20 11:04:03 +00:00
billz
1f538d4a77 Externalized sudoers, - superfluous code from patch_system_files 2020-03-20 09:55:49 +00:00
billz
df3d84b570 Postpone start of raspap.service 2020-03-20 09:16:18 +00:00
billz
21273774a5 Fix raspap.service install path, add error handling 2020-03-20 08:04:50 +00:00
billz
f6599ae815 Update iptables.rules naming for consistency 2020-03-20 07:48:24 +00:00
billz
4b30be5c54 Align installer w/ Debian's modern SYSV style. Resolves #127 2020-03-20 07:32:23 +00:00
billz
c649246614 Update sudoers file handling. Resolves #41. Addresses #127 2020-03-19 09:37:05 +00:00
billz
c52487c671 Minor: rename version > release 2020-03-17 20:05:41 +00:00
Bill Zimmerman
ead1f354d7
operand bugfix 2020-03-17 19:22:07 +01:00
billz
8e148e683b Update w/ OS, version detect & install dhcpcd5 2020-03-17 11:55:40 +00:00
Bill Zimmerman
f3dd4cc67d Update install_dependencies w/ dhcpcd5 2020-03-17 10:56:07 +00:00
billz
57734e837f Update installed php-cgi to v7.3 (buster) 2020-03-16 23:29:48 +00:00
Taikuh
8082430c30 ovpn, uap0 compatibility; readme 2020-03-15 19:02:20 +08:00
Taikuh
5d57765669 Merge billz:master into bridge-mode 2020-03-13 14:08:11 +08:00
Taikuh
8823c0602e Add bridged-routed toggle to webgui 2020-03-10 19:07:15 +08:00
Bill Zimmerman
8bda81adcb
Merge branch 'master' into bridge-mode 2020-03-10 00:05:46 +01:00
Taikuh
57bcb79310 download_latest_files follows quick installer 2020-03-09 20:11:11 +08:00
Taikuh
9800b23e4d Add bridged-routed toggle script 2020-03-09 01:16:05 +08:00
billz
1b87d57af4 Bugfix: Escape backslashes 2020-03-07 09:17:02 +00:00
billz
cff02c86fb Update rc.local to set log ownership. Resolves #518 2020-03-05 18:34:21 +00:00
billz
ea389e1a13 Add create_dnsmasq_log 2020-03-05 10:34:46 +00:00
glaszig
695ea7b969 show wifi qr code in "hotspot > security" section
resolves #469.
2020-02-27 02:37:00 +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
Bill Zimmerman
75451fb25f Rollback patch wpa_supplicant 2019-12-19 13:21:21 -08:00
billz
78b09cc4b4 Initialize wpa_supplicant, create if absent. Resolves #452 2019-12-13 16:54:01 +00:00
Jeff Eberl
03a0c5d2f2
Change cmds count to always be right. 2019-11-30 15:08:16 -07:00
billz
edbb996b57 Call optimize_php after create_raspap_dirs. Resolves #441 2019-11-25 13:54:36 +00:00
billz
a6117b47cb Check ovpn_option for automated install. Resolves #436 2019-11-22 14:05:49 +00:00
billz
a06de39da2 Deprecate Raspbian 8 / php5 support. Resolves #438 2019-11-22 13:01:59 +00:00
billz
671baf587d Enable openvpn-client service. Resolves #437 2019-11-22 12:41:19 +00:00
billz
11e71a638f Specify terminal device /dev/tty for input 2019-11-19 11:42:06 +00:00
billz
e8c9587f5a Added OpenVPN install option. addresses #147 2019-11-18 11:51:59 +00:00
billz
47af4c7815 Update sudoers 2019-11-17 18:46:39 +00:00
billz
40ac95af59 Update openvpn client path 2019-11-17 18:17:46 +00:00
billz
e0bb18b283 Update openvpn-client sudoers 2019-11-16 17:42:55 +00:00
billz
21cff18275 Added create_openvpn_scripts, update svc controls to systemd 2019-11-15 08:57:17 +00:00
billz
21ae039589 Minor: update legacy version check 2019-11-11 09:17:35 +00:00
billz
cbec3c40d2 Added create_lighttpd_scripts() 2019-11-10 22:21:55 +00:00
billz
1a533234d4 Hotfix. Resolves #430 2019-11-08 10:54:05 +00:00
billz
61fe3cc6ee Removed trailing slash on webroot prompt 2019-11-07 10:35:17 +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
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
83e6f60cb7 Fix handling of command-line options 2019-09-30 18:58:12 +01:00
billz
44f6762cb1 Updated with unattended install option. Resolves #397 2019-09-30 18:42:04 +01: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
Bill Zimmerman
acd58ce557
Minor update to version_msg 2019-06-29 09:51:36 +02:00
billz
913ce3b5c0 Updated php version for Raspbian 10.0 (Buster) 2019-06-25 07:40:02 +00:00
billz
13aa0864d0 Updated to detect Raspbian 10.0 (Buster). Resolves #337 2019-06-24 21:57:49 +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
f73dcd4e99 Install raspap.service daemon 2019-04-19 11:36:09 +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
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
a2829dcf78 Added iptables nat rules for uap0 config 2019-03-07 10:15:51 +00:00
billz
5bb549868b Minor: move service control script 2019-03-06 19:13:17 +00:00
billz
7fcf22e4c3 Update create_hostapd_scripts, sudoers 2019-03-06 10:48:18 +00:00
billz
22976669ee Added wpa_cli -i wlan[0-9] select_network, thanks @PRO2XY 2018-11-13 22:21:02 +00: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
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