GithubHelp home page GithubHelp logo

raspap / raspap-webgui Goto Github PK

View Code? Open in Web Editor NEW
4.3K 139.0 781.0 22.94 MB

Simple wireless AP setup & management for Debian-based devices

Home Page: https://raspap.com/

License: GNU General Public License v3.0

CSS 1.20% JavaScript 6.80% PHP 69.04% Shell 18.64% HTML 0.49% Python 3.82%
raspberry-pi hostapd rpi iot dnsmasq wifi lighttpd debian armbian orangepi

raspap-webgui's People

Contributors

billz avatar d9ping avatar dependabot[bot] avatar eldstal avatar emmanuelgeoffray avatar fiav1 avatar glaszig avatar jeffeb3 avatar johnthenerd avatar jrmhaig avatar julialblnd avatar lukas-heinrich avatar marek-guran avatar nl-tch avatar nsdoukos avatar p0lycarpio avatar pack3tl0ss avatar puregrain avatar randyoo avatar readmecritic avatar reedy avatar robertduncan42 avatar royord avatar sfoerster avatar sirlagz avatar sunnybank101 avatar taikuh avatar weylin-fr avatar zbchristian avatar zlolz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

raspap-webgui's Issues

Other install folder

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.

RaspAP INSTALL ERROR: Unable to download files from github

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"
}

Sub Settings won't open on all pages

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.

Changes to sudoers file

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.

Client wireless Discover

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:

captura de pantalla 2016-09-06 a las 19 25 26

After:

captura de pantalla 2016-09-06 a las 19 26 41

CUPS Integration

Hello,

have anyone an idea, how i can open the Cups Interface from the menu?

Can be used as a client for setting wifi bridge WPA instead of as a hotspot?

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?

Unit Lighttpd.service entered failed state

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!

Use isc-dhcp-server instead of dnsmasq

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.

Get IP address from DHCP when configured as client

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.

Support multiple wireless interfaces

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.

Forgotten Password Or Change Password

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...

Drop Box for Countries (Contribution)

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.

Feature request: Support for more hostapd options

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=

Dashboard doesn't display ESSID with special characters

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 );

Client settings - How to manually switch from one wifi to another

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 ?

Dashboard access admin/secret not working after fresh install

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!

include modem 3g/4g as source for internet

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.

Pi zero

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"

Default clone folder in walktrough

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/"

Please parse ESSID properly and escape HTML entities when printing it

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>

how would you add a reboot button?

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?

Installation: Editing sudoers file fails

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.

INSTALLATION LOGIC

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.

RaspAP INSTALL ERROR: Cannot enable fastcgi-php for lighttpd

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?

Display signal level appropriately for how it is reported

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.

'Wireless Information' on Dashboard?

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.

Add OpenVPN support

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.

Hostapd Not Restarting

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?

Quick installer improvements

It's a good time to revisit the installer and add some enhancements, including:

  • Add a welcome message
  • Report detected Raspian version, destination directories prior to install
  • Provide option of securing .local domain by generating a self-signed SSL certificate
  • Optionally, install the PiVPN project
  • Save settings to /etc/raspap/raspap.conf (used to enable OpenVPN, initially)

raspap-install

Do not request PSK for open networks

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

Eth0 Static IP Configuration

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

Update lighttpd directory in installation script

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:

  • Detect the version of Raspbian
  • Install RaspAP into /var/www or /var/www/html as appropriate

Only a question of possibility

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

Use ssl

Lighttpd should be configured to use https rather than http.

Feature request: Support for more dnsmasq options

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

Client UI only

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?

Copy SD to new Raspi 3

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.