raspap / raspap-webgui Goto Github PK
View Code? Open in Web Editor NEWSimple wireless AP setup & management for Debian-based devices
Home Page: https://raspap.com/
License: GNU General Public License v3.0
Simple wireless AP setup & management for Debian-based devices
Home Page: https://raspap.com/
License: GNU General Public License v3.0
I installed it into /var/www/html/raspap.
Wireless client works fine, but when trying to configure hotspot, it redirect me to a wrong page.
I searched for a base url parameter but did'nt find.
having trouble using the installer script.
I think there needs to be a .git at line 72... of common.sh install
relevant section:
# Fetches latest files from github to webroot
function download_latest_files() {
if [ ! -d "$webroot_dir" ]; then
install_error "Web root directory doesn't exist"
fi
install_log "Cloning latest files from github"
sudo git clone https://github.com/billz/raspap-webgui "$webroot_dir" || install_error "Unable to download files from github"
}
should be (?):
# Fetches latest files from github to webroot
function download_latest_files() {
if [ ! -d "$webroot_dir" ]; then
install_error "Web root directory doesn't exist"
fi
install_log "Cloning latest files from github"
sudo git clone https://github.com/billz/raspap-webgui.git "$webroot_dir" || install_error "Unable to download files from github"
}
When i click on a sub-menu for any Setting, it won't open to see them. It just add the #openvpnserver (for example) at the end of the url. Testet it with Firefox, Opera, Chrome.
Upgrading to the latest Raspbian it appears that the default sudoers file has changed. The file /etc/sudoers.d/README
says:
#
# As of Debian version 1.7.2p1-1, the default /etc/sudoers file created on
# installation of the package now includes the directive:
#
# #includedir /etc/sudoers.d
#
# This will cause sudo to read and parse any files in the /etc/sudoers.d
# directory that do not end in '~' or contain a '.' character.
#
# Note that there must be at least one file in the sudoers.d directory (this
# one will do), and all files in this directory should be mode 0440.
#
# Note also, that because sudoers contents can vary widely, no attempt is
# made to add this directive to existing sudoers files on upgrade. Feel free
# to add the above directive to the end of your /etc/sudoers file to enable
# this functionality for existing installations if you wish!
#
# Finally, please note that using the visudo command is the recommended way
# to update sudoers content, since it protects against many failure modes.
# See the man page for visudo for more information.
#
This should make it easier to manage the permissions for www-data as a single file can be created and then simply dropped into /etc/sudoers.d
with the correct permissions set. I am not making the change yet as some backwards compatibility should be thought about first.
Congratulations for the work. I have a question:
In the old version, on the part of wifi client settings before you allow for an discover the wifis networks and select the desired. In the new version the option "Scan networks" does not appear and only works if you add the networks are defined in the wpa_supplicant.conf file.
The new version does not allow me not from the web, create the network in manual mode, but does not find a Discover Network
You're working on this feature? or you'll have to create the wireless connection manually?
Thank you
Before:
After:
Hello,
have anyone an idea, how i can open the Cups Interface from the menu?
Does the "client" page link in your screenshot mean that this webgui can be used to set the WPA key/pw for the adaptor to act as a simple client to another WAP?
I am setting up a wifi bridge (internet=>wifi=>ethernet) as opposed to a hotspot router and just need to be a able to set the WPA passwords conveniently instead of having the VNC/SSH to the RPi. This is going in my travel trailer to it will be connecting frequently to different WAPs.
If so should I just do the manual install?
Getting this error on syslog when I want to go to the "Configure client" tab. I'm not able to input my wifi information on it either.
I'm a bit confused. Are we able to connect via hostap via wifi, scan the wifi networks and then connect to a wifi network of choice?
Hello,
Using a fresh installation of Raspbian Jessie Lite and the quick installer script, everything went well. After rebooting, I connected to the new access point I tried to access the web UI. The connection was refused because Lighttpd failed.
Running sudo service lighttpd status
gives the following:
● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled)
Active: failed (Result: exit-code) since Thu 2017-05-11 16:37:39 UTC; 2s ago
Process: 2785 ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf (code=exited, status=255)
Process: 2775 ExecStartPre=/usr/sbin/lighttpd -t -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
Main PID: 2785 (code=exited, status=255)
May 11 16:37:39 raspberrypi lighttpd[2775]: Syntax OK
May 11 16:37:39 raspberrypi systemd[1]: Started Lighttpd Daemon.
May 11 16:37:39 raspberrypi systemd[1]: lighttpd.service: main process exited, code=exited, status=255/n/a
May 11 16:37:39 raspberrypi systemd[1]: Unit lighttpd.service entered failed state.
The folder /etc/lighttpd/conf-enabled
contains two configuration. if I remove either one of them and run sudo service lighttpd restart
, then when I try to access the web page again, it responds with 403 - Forbidden error.
What could be the problem?
Thanks!
Hello,
I rewrited this project using some frameworks and tools in PHP and Python.
You could take a look here: https://github.com/webnull/raspap-webgui
Greetings,
Damian
I had a working raspberry pi AP previously configured using isc-dhcp-server. I installed RaspAP which I think is an awesome webgui to easily controlling the AP. However, it looks like it cannot coexist with isc-dhcp-server and uses dnsmasq to handling the assignment of the IP addresses, DNS, etc to the connected clients. Is it possible to get RaspAP to use isc-dhcp-server instead of dnsmasq. The config file for isc-dhcp-server is located at /etc/dhcp/dhcpd.conf
Thank you.
When connecting to a wireless network as a client the IP address that is allocated via DHCP should be used but currently it keeps the default 10.3.141.1. The workaround, as indicated in #45, is to remove or comment out the following lines from /etc/dhcpcd.conf
:
static ip_address=10.3.141.1/24
static routers=10.3.141.1
static domain_name_server=8.8.8.8 8.8.4.4
This issue is related to the suggestion mentioned in issue #31.
Multiple wireless interfaces will allow, for example, RaspAP to be configured as a wireless extender.
It is possible with some devices to configure multiple interfaces. In particular, this can be done with the built in wireless on the Raspberry Pi 3.
How would you change the password. In the raspap.php file it has a 'admin_pass' => line but if run it through a hash decrypter it fails. Thanks...
I have added a drop box for the countries and it is working fine. Uses a javascript function to set the selected country from the php,
Let me know if you want the code.
Whenever refresh the page after POST the resubmission alert window pops up.
I've tried to use meta tags and redirect to the same page but all it was failed.
it would be great to have the option to ban clients from the client list by adding them to
/etc/hostapd/hostapd.deny
in addition, other nice features are
ignore_broadcast_ssid=
ap_max_inactivity=
You should add sudo before /etc/init.d/lighttpd restart .
The Dashboard will not display an ESSID that contains special characters.
This is caused by this line only matching alpha-numeric characters-
preg_match( '/ESSID:\"([a-zA-Z0-9\s]+)\"/i',$strWlan0,$result );
I suggest it's updated to-
preg_match( '/ESSID:\".+)\"/i',$strWlan0,$result );
add 802.11a channel support
36, 40, 44, 48, 52, 56, 60, 64, 149, 153, 157, 161, 165
http://twimgs.com/networkcomputing/news/2013/10/graphic-80211-acChannels-all.png
RPi 3 has wifi built-in. Would this be possible to add support for this? Thanks for a great project.
Hi guys , 1st of all thank you for this great job !
I actualy use my Rpi3 build in wifi connection in adhoc mode (as an access point or a repeater if you want) meaning that I can join my Rpi wifi network with my phone for example.
Than , when i go to Raspap webpage under client settings,
i would like to enter a password for one or another available network and activate it.
The problem is that when i click on update , the wifi wont come up anymore . it just stops.
I can I change this behaviour to get my wifi stating up again on the one i choose ?
There is a welcome file in /var/www/html
which causes the installation script to exit.
Very Nice project!!
How can I trace errors?
The only thing I changed from the default installation config was the path of the app to /usr/local/bin/
If I connect to the "raspi-webgui" and go to the default IP address admin/secret won't work and I will keep getting the user/pass screen.
Please help!
It would be great if we were able to use and configure 3g/4g modems as source for internet, using the web UI.
May be using "wvdial" for the configuration and "usb-modeswitch" for the mode switch of the 3g/4g stick.
After i did the automatic install and i rebooted, the pi won't to connect to WiFi or over USB to the PC with otg mode enabled.
I'm an ower of the new pi zero w, my modem range ip is "192.168.1.2" to "192.168.1.250"
Add a button and a script to switch between AP only, AP with bridge and simple client.
Lightttpd has default webfolder /var/www/http/ not /var/www as is the place where you clone to following the walktrough
this can be resolved either with changeing the clone to folder to /var/www/html/
or change the confing in /etc/lighttpd/lighttpd.conf
on the line witch states
server.document-root = "/var/www/html/"
to
server.document-root = "/var/www/"
If the WiFi interface Nikname contains some HTML entities, the "Configure client" page (index.php?page=wpa_conf) get scrambled. My WiFi adapter has a nickname like this:
wlan0 IEEE 802.11bg ESSID:"Rigacci.Org" Nickname:"<WIFI@REALTEK>"
and the page is badly composed:
<input type="hidden" name="ssid0" value="Rigacci.Org" Nickname:"<WIFI@REALTEK>" /> Rigacci.Org" Nickname:"<WIFI@REALTEK> </td> <td><span class="label label-warning">X</span></td>
It might be useful for the page to be able to restart the pi.
(sudo reboot)
what do you think the best way to implement this would be?
I get this error when editing the sudoers file using the installation script
>>> /etc/sudoers: syntax error near line 30 <<<
Using the lines from manuall installation described in the README works.
In the $revisions array in the RPiVersion() function in "includes/system.php", the key for the "PiZero W" is "9000C1", but it should be "9000c1". Well, that's the revision value for my PiZero W.
NO WHERE IN THE README OR SOMEWHERE IN THE INSTALLATION DOC IT DOESN'T SAY
"CAUTION IT DELETES YOUR CURRENT /VAR/WWW/HTML/ DIRECTORY"
Guys why remove ?
Just make a new folder under /var/www/html
B..S...
Thnks so much.
Are there any settings that the Internet connection via WLAN and 3G? Or is it planned?
Best Regards Mike
Thanks for the great work. RaspAP seems to be exactly what I am looking for!
But I have problems getting it working.
When using the automatic installer I am getting this error message:
RaspAP INSTALL ERROR: Cannot enable fastcgi-php for lighttpd
If I follow the steps for manual installation, everything installs fine (also enabling PHP for lighttpd works), but after the final reboot, calling the IP-adress of the Pi from a PC just gives me "404 - Not Found" page.
It does not seem to make a difference, if the PC is connected with the same LAN as the Pi or directly with the wifi the Pi is hosting.
What am I missing?
As noted in #24, the 'Signal level' can be reported by iwconfig
either as dBm or as a ratio (possibly always over 100, so effectively a percentage) depending on the hardware and software drivers of the wireless interface. A suitable regex at:
could be used to determine which format this is and then the display at:
can be changed to a single text field or bar graph as appropriate.
I am unsure of the purpose of the 'Wireless Information' section on the main dashboard page. For me it is (mostly) blank and I presume that it only has information when the wireless adapter is configured as a client attached to another SSID. This, however, seems to defeat the object of having an AP.
Is the intention to be able to connect to an existing wireless network and then, with a second wireless interface, provide an extension?
I am in the process of re-doing the dashboard so that, for instance, it includes information about eth0 and I am inclined to remove this section unless it has some value.
PiVPN is a robust OpenVPN project specifically for the RPi. Stub support for OpenVPN exists in RaspAP. This could potentially be extended to manage PiVPN from RaspAP (add/list/revoke client ovpn profiles) with the pivpn
command.
A simple way to implement this is to write a value to /etc/raspap/raspap.conf
if the user opts to configure PiVPN with the Quick Install (see #73) and use this to enable the OpenVPN panel in the web interface.
Good afternoon folks. Thanks for all the help in advance. I've tried a few things and cannot seem to get this to work.
First thing is I set my /etc/dhcpcd.conf to comment out static IP settings because if I don't I do not get internet connection through my router after I setup as AP because it assigns me a local IP of 10.3.141.??.
If I configure the AP to my Router password it grabs an IP from my router and I can switch back to my network and log into the web interface again.
Here is where the problem is:
If I remove the password for the access point and just want to go back to local access it hangs. It does not restart the hostapd service. It's dropping the IP and everything but it's not refreshing and picking back up a local IP. I have to stop and restart the hostapd settings or reboot the system.
Any ideas?
Hello, is there a way to use just the dynamic IP address assigned by a wifi router when the raspberry wifi is working as a client?
Thanks.
Hi,
does anyone know if this is compatible with PHP7?
It's a good time to revisit the installer and add some enhancements, including:
/etc/raspap/raspap.conf
(used to enable OpenVPN, initially)From the Configure client page,
When I'm trying to connect to an open network (without any password) the "Save" button is disabled for that network. I think we should allow an option, or at least recognize that open networks do not require passwords to be saved.
Maybe also it would be nice to add a field for identity="" and password in case the WiFi network requires authentication
I think this is a must-have tool for every Raspberry PI. In my opinion the only thing missing is a configuration page for the eth0, it would be nice to be able to set the static IP of eth0 from this interface. What about this feature in a future release? Just need to edit the file /etc/dhcpcd.conf to configure eth0 static IP.
Let me know.
Thanks
In Raspbian Jessie the default home location for lighttpd changed from /var/www
to /var/www/html
and this has broken the automated installation script.
To fix this issue the installation script needs to:
hey all,
i like this Project. ist now very simple to set the raspi Wifi.
Is there may also a possibility to set all the Network Settings including the LAN IP Address?
I´m happy to Hearing from you.
Regards
Felix
Lighttpd should be configured to use https rather than http.
raspap currently crushes each config file when you save, so it would be nice to have a few more options with dnsmasq so that our extra setting don't vanish
#which address to listen on
listen-address=
#support for interface binding
bind-interfaces=
# to tell dhcp clients which dns host to use
dhcp-option=6,8.8.8.8,8.8.6.6
#other nice to have options
dhcp-option=1 netmask
dhcp-option=3 router
dhcp-option=15 domain-name
dhcp-option=119 domain-search
# to disble dns server
port=0
#to enable dns server
port=53
server=
#option to not load /etc/resolv.conf
no-resolv
#support for multiple interfaces
interface=br0
interface=wlan0
interface=wlan1
interface=eth0
interface=eth1
dhcp-range=br0,192.168.4.3,192.168.4.252,255.255.255.0,12h
dhcp-range=wlan0,192.168.5.3,192.168.5.252,255.255.255.0,12h
dhcp-range=wlan1,192.168.6.3,192.168.6.252,255.255.255.0,12h
dhcp-range=eth0192.168.7.3,192.168.7.252,255.255.255.0,12h
dhcp-range=eth1,192.168.8.3,192.168.8.252,255.255.255.0,12h
#support for creating infinite leases from the list of clients
dhcp-host=11:22:33:44:55:66,192.168.0.60,infinite
Sorry for posting this in the wrong place... If I only want to use the client-section of your GUI for connecting my RPi to the internet, what would I have to comment out/delete?
Hello folks and good day. I have the software running on a Raspi 3 and it's working great, although when I make a copy of the SD and move it to another Raspi, the Wifi Does not want to come up for nothing. Any ideas?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.