RaspAP WiFi配置门户

为基于 Debian 的设备提供简单的无线 AP 设置和管理。「Simple wireless AP setup & management for Debian-based devices」

Github stars Tracking Chart

RaspAP WiFi 配置门户

RaspAP 使您可以快速启动并运行 WiFi 接入点,以共享许多流行的基于 Debian 的设备(包括 Raspberry Pi)的连接性。 我们流行的快速安装程序创建了一个众所周知的默认配置,该配置在所有当前的所有带板载无线 Raspberry Pi 上都“正常工作”。 响应式界面使您可以控制相关服务和网络选项。包括高级DHCP设置、OpenVPN 客户端支持、SSL、安全审核、主题和多语言选项。

RaspAP 已在 InstructablesAdafruitRaspberry Pi WeeklyAwesome Raspberry Pi 等网站上得到推荐,并在无数项目中实施。

我们希望您喜欢使用 RaspAP,这乐趣和我们创建它一样多。告诉我们您如何在自己的项目中使用它的。

先决条件

从全新安装 Raspberry Pi OS(32位)Lite 的最新版本开始。 不支持 Raspberry Pi OS 桌面和 64位 Beta 发行版。

  1. 更新 Raspbian,包括内核和固件,然后重新启动:
sudo apt-get update
sudo apt-get dist-upgrade
sudo reboot
  1. 在 raspi-config 的 Localisation Options(本地化选项)中设置 WiFi 国家: sudo raspi-config
  2. 如果您的设备没有板载 WiFi 芯片组,则 Edimax Wireless 802.11b/g/n nano USB 适配器 是一个很好的选择 -- 它体积小,价格便宜并且具有良好的驱动程序支持。

完成前提条件后,您可以继续执行以下快速安装程序或手动安装步骤。

快速安装

从设备的外壳程序提示符安装 RaspAP:

curl -sL https://install.raspap.com | bash

安装程序将为您完成手动安装(以下)中的步骤。

安装结束后重启后,无线网络将被配置为如下所示的访问点:

  • IP address: 10.3.141.1
    • Username: admin
    • Password: secret
  • DHCP range: 10.3.141.50 to 10.3.141.255
  • SSID: raspi-webgui
  • Password: ChangeMe

注意:顾名思义,快速安装程序是快速设置新 AP 的好方法。 但是,它不会自动检测系统的唯一配置。 通过使用 wlan0 连接到以太网(eth0)或作为 WiFi 客户端(也称为托管模式)可以获得最佳结果。 对于后者,请参阅此常见问题解答此处提供有关 Pi Zero W 的特殊说明。

报告问题之前,请先阅读此内容

广告拦截

此功能使用 DNS 黑名单来阻止对广告、跟踪器和其他不良主机的请求。要启用广告屏蔽,只需在安装过程中响应提示即可。作为测试版,我们鼓励 RaspAP 用户进行测试和反馈。

此处提供详细信息。

桥接 AP

默认情况下,RaspAP 为您的客户端配置要连接的路由 AP。 桥接的 AP 配置也是可能的。 滑动“Configure hotspot(配置热点)”的“Advanced(高级)”选项卡下的“Bridged AP mode(桥接AP模式)”切换,然后保存并重新启动热点。

注意:在桥接模式下,所有路由功能均由上游路由器处理。由于路由器将 IP 地址分配给设备的热点及其客户端,因此您可能无法从默认的 10.3.141.1 地址访问 RaspAP Web 界面。而是使用 RPi 的主机名后跟 .local 来访问 RaspAP Web 界面。使用 Raspbian 默认设置时,该外观应类似于 raspberrypi.local。本文讨论了其他方法。

有关桥接 AP 模式的更多信息,请参见 我们的wiki

同时 AP 和 Wifi 客户端

RaspAP 允许您使用 Wifi 客户端配置(通常称为 AP-STA 模式)创建 AP。将系统配置为托管模式后,通过滑动 “Wifi client AP mode(Wifi 客户端 AP 模式)”开关,从“Configure hotspot(配置热点)”的“Advanced(高级)”选项卡中启用 AP。保存设置并启动热点。受管模式 AP 无需重启即可正常工作。

注意:禁用此选项,直到您将系统配置为无线客户端为止。对于在没有 eth0 连接的托管模式下运行的设备,必须在重新引导之前启用此配置。

支持我们

RaspAP 是免费软件,但由您提供支持。如果您发现 RaspAP 对您的个人或商业项目有用,请 成为 GitHub 赞助商,在 Open Collective 上加入该项目,或通过 PayPal 一次性捐款。这些选项中的任何一个都有很大的不同!

手动安装

我们的 wiki Wiki 上提供了详细的手动设置说明。

802.11ac 5GHz 支持

RaspAP 为受支持的硬件(当前为 RPi 3B +/4 和兼容的 Orange Pi 型号)和无线监管域提供 802.11ac 无线模式选项。 有关更多信息,请参见此常见问题解答

支持的操作系统

RaspAP 最初是为 Raspbian 制作的,但现在也可以安装在以下基于 Debian 的发行版中。

Distribution Release Architecture Support
Raspberry Pi OS (32-bit) Lite Buster ARM Official
Armbian Buster ARM Official
Debian Buster ARM / x86_64 Beta
Ubuntu 18.04 LTS / 19.10 ARM / x86_64 Beta

我们发现 Armbian 特别适合该项目。 请注意,“supported(受支持)”不是保证。 如果您能够改善对首选发行版的支持,我们鼓励您积极参与该项目。

多语种支持

RaspAP 使用 GNU Gettext 来管理多语言消息。为了将 RaspAP 与我们支持的翻译之一一起使用,您必须在 RPi 上配置相应的语言包。要列出系统上当前安装的语言,请在 shell 提示符下使用 locale -a。要生成新的语言环境,请运行 sudo dpkg-reconfigure 语言环境,然后选择任何其他所需的语言环境。有关详细信息,请参见我们的 wiki

该项目当前维护以下翻译:

  • Čeština
  • 正體中文 (Chinese traditional)
  • 简体中文 (Chinese Simplified)
  • Dansk
  • Deutsch
  • Español
  • Finnish
  • Français
  • Ελληνικά (Greek)
  • Indonesian
  • Italiano
  • 日本語 (Japanese)
  • 한국어 (Korean)
  • Nederlands
  • Português
  • Русский
  • Svenska
  • Türkçe
  • Tiếng Việt (Vietnamese)

如果您的语言不在上面的列表中,为什么不贡献翻译?贡献者将获得原译者的荣誉。

HTTPS 支持

快速安装程序可用于通过 mkcert 生成 SSL 证书。 安装程序将自动执行Wiki 中描述的手动步骤,包括使用 SSL 支持配置 lighttpd。

只需将 -c 或 --cert 选项附加到快速安装程序中,如下所示:

curl -sL https://install.raspap.com | bash -s -- --cert

注意:这只会安装 mkcert 并使用您提供的输入生成 SSL 证书。 它不会(重新)安装 RaspAP。

有关 SSL 证书和 HTTPS 支持的更多信息,请参见我们的 wiki


许可

请参阅许可文件


(The first version translated by vz on 2020.07.26)

Overview

Name With OwnerRaspAP/raspap-webgui
Primary LanguagePHP
Program languageCSS (Language Count: 6)
PlatformRaspbian
License:GNU General Public License v3.0
Release Count73
Last Release Name3.1.3 (Posted on )
First Release Namev1.0 (Posted on )
Created At2015-02-27 15:17:59
Pushed At2024-04-01 15:16:57
Last Commit At2024-04-01 17:15:31
Stargazers Count4.3k
Watchers Count139
Fork Count781
Commits Count3k
Has Issues Enabled
Issues Count773
Issue Open Count18
Pull Requests Count292
Pull Requests Open Count5
Pull Requests Close Count50
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private


Release 2.8.1 Awesome Join Insiders https://travis-ci.com/github/raspap/raspap-webgui/ Crowdin Twitter URL Subreddit subscribers

RaspAP is feature-rich wireless router software that just works on many popular Debian-based devices, including the Raspberry Pi. Our popular Quick installer creates a known-good default configuration for all current Raspberry Pis with onboard wireless. A fully responsive, mobile-ready interface gives you control over the relevant services and networking options. Advanced DHCP settings, WireGuard and OpenVPN support, SSL certificates, security audits, captive portal integration, themes and multilingual options are included.

RaspAP has been featured on sites such as Instructables, Adafruit, Raspberry Pi Weekly and Awesome Raspberry Pi and implemented in countless projects.

We hope you enjoy using RaspAP as much as we do creating it. Tell us how you use this with your own projects.





Contents

Prerequisites

Start with a clean install of the latest release of Raspberry Pi OS (32-bit) Lite. The Raspberry Pi OS desktop and 64-bit beta distros are unsupported.

  1. Update Raspbian, including the kernel and firmware, followed by a reboot:
sudo apt-get update
sudo apt-get full-upgrade
sudo reboot
  1. Set the "WLAN country" option in raspi-config's Localisation Options: sudo raspi-config

  2. If you have a device without an onboard wireless chipset, the Edimax Wireless 802.11b/g/n nano USB adapter is an excellent option – it's small, cheap and has good driver support.

With the prerequisites done, you can proceed with either the Quick installer or Manual installation steps below.

Quick installer

Install RaspAP from your device's shell prompt:

curl -sL https://install.raspap.com | bash

The installer will complete the steps in the manual installation (below) for you.

After the reboot at the end of the installation the wireless network will be
configured as an access point as follows:

  • IP address: 10.3.141.1
    • Username: admin
    • Password: secret
  • DHCP range: 10.3.141.50 — 10.3.141.255
  • SSID: raspi-webgui
  • Password: ChangeMe

Note: As the name suggests, the Quick Installer is a great way to quickly setup a new AP. However, it does not automagically detect the unique configuration of your system. Best results are obtained by connecting to ethernet (eth0) or as a WiFi client, also known as managed mode, with wlan0. For the latter, refer to this FAQ. Special instructions for the Pi Zero W are available here.

Please read this before reporting an issue.

Join Insiders

RaspAP is free software, but powered by your support. If you find RaspAP useful for your personal or commercial projects, become an Insider and get early access to exclusive features in the Insiders Edition.

A tangible side benefit of sponsorship is that Insiders are able to help steer future development of RaspAP. This is done through Insiders' team access to discussions, feature requests, issues and more in the private GitHub repository.

WireGuard support

WireGuard® is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography. It aims to be considerably more performant than OpenVPN, and is generally regarded as the most secure, easiest to use, and simplest VPN solution for modern Linux distributions.

WireGuard may be optionally installed by the Quick Installer. Once this is done, you can manage local (server) settings, create a peer configuration and control the wg-quick service with RaspAP.

Details are provided here.

OpenVPN support

OpenVPN may be optionally installed by the Quick Installer. Once this is done, you can manage client configurations and the openvpn-client service with RaspAP.

To configure an OpenVPN client, upload a valid .ovpn file and, optionally, specify your login credentials. RaspAP will store your client configuration and add firewall rules to forward traffic from OpenVPN's tun0 interface to your configured wireless interface.

See our OpenVPN documentation for more information.

Ad Blocking

This feature uses DNS blacklisting to block requests for ads, trackers and other undesirable hosts. To enable ad blocking, simply respond to the prompt during the installation. As a beta release, we encourage testing and feedback from users of RaspAP.

Details are provided here.

Bridged AP

By default RaspAP configures a routed AP for your clients to connect to. A bridged AP configuration is also possible. Slide the Bridged AP mode toggle under the Advanced tab of Configure hotspot, then save and restart the hotspot.

Note: In bridged mode, all routing capabilities are handled by your upstream router. Because your router assigns IP addresses to your device's hotspot and its clients, you might not be able to reach the RaspAP web interface from the default 10.3.141.1 address. Instead use your RPi's hostname followed by .local to access the RaspAP web interface. With Raspbian default settings, this should look like raspberrypi.local. Alternate methods are discussed here.

More information on Bridged AP mode is provided in our documentation.

Simultaneous AP and Wifi client

RaspAP lets you create an AP with a Wifi client configuration, often called AP-STA mode. With your system configured in managed mode, enable the AP from the Advanced tab of Configure hotspot by sliding the Wifi client AP mode toggle. Save settings and start the hotspot. The managed mode AP is functional without restart.

Note: This option is disabled until you configure your system as a wireless client. For a device operating in managed mode without an eth0 connection, this configuration must be enabled before a reboot.

Manual installation

Detailed manual setup instructions are provided on our documentation site.

802.11ac 5GHz support

RaspAP provides an 802.11ac wireless mode option for supported hardware (currently the RPi 3B+/4 and compatible Orange Pi models) and wireless regulatory domains. See this FAQ for more information.

Supported operating systems

RaspAP was originally made for Raspbian, but now also installs on the following Debian-based distros.

Distribution Release Architecture Support
Raspberry Pi OS (32-bit) Lite Bullseye ARM Official
Armbian Bullseye ARM Official
Debian Bullseye ARM / x86_64 Beta
Ubuntu 18.04 LTS / 19.10 ARM / x86_64 Beta

We find Armbian particularly well-suited for this project. Please note that "supported" is not a guarantee. If you are able to improve support for your preferred distro, we encourage you to actively contribute to the project.

Multilingual support

RaspAP uses GNU Gettext to manage multilingual messages. In order to use RaspAP with one of our supported translations, you must configure a corresponding language package on your RPi. To list languages currently installed on your system, use locale -a at the shell prompt. To generate new locales, run sudo dpkg-reconfigure locales and select any other desired locales. Details are provided on our documentation site.

See this list of supported languages that are actively maintained by volunteer translators. If your language is not supported, why not contribute a translation? Contributors will receive credit as the original translators.

HTTPS support

The Quick Installer may be used to generate SSL certificates with mkcert. The installer automates the manual steps described here, including configuring lighttpd with SSL support.

Simply append the -c or --cert option to the Quick Installer, like so:

curl -sL https://install.raspap.com | bash -s -- --cert

Note: this only installs mkcert and generates an SSL certificate with the input you provide. It does not (re)install RaspAP.

More information on SSL certificates and HTTPS support is available in our documentation.

How to contribute

  1. Fork the project in your account and create a new branch: your-great-feature.
  2. Open an issue in the repository describing the feature contribution you'd like to make.
  3. Commit changes in your feature branch.
  4. Open a pull request and reference the initial issue in the pull request message.

Find out more about our coding style guidelines and recommended tools.

Reporting issues

Please read this before reporting a bug.

Contributors

Code Contributors

This project exists thanks to all the awesome people who contribute their time and expertise.

Financial Contributors

Development of RaspAP is made possible thanks to a sponsorware release model. This means that new features are first exclusively released to sponsors as part of Insiders.

Learn more about how sponsorship works, and how easy it is to get access to Insiders.

License

See the LICENSE file.

To the top