Browse Source

Merge branch 'RaspAP:master' into master

pull/1111/head
SmartMarmot - Andrea Dalle Vacche 4 months ago
committed by GitHub
parent
commit
c3f06e4bbe
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      .github/ISSUE_TEMPLATE/bug_report.md
  2. 67
      BACKERS.md
  3. 3
      README.md
  4. 10
      ajax/bandwidth/get_bandwidth.php
  5. 9
      ajax/bandwidth/get_bandwidth_hourly.php
  6. 2
      app/js/huebee.js
  7. 13
      app/lib/system.php
  8. 2
      config/hostapd.conf
  9. 11
      config/raspap-bridge-br0.netplan
  10. 2
      dist/raspap/css/style.css
  11. 4
      includes/adblock.php
  12. 2
      includes/defaults.php
  13. 2
      includes/dhcp.php
  14. 2
      includes/functions.php
  15. 7
      includes/hostapd.php
  16. 11
      includes/internetRoute.php
  17. 2
      includes/networking.php
  18. 4
      includes/system.php
  19. 6
      index.php
  20. 96
      installers/common.sh
  21. 1
      installers/raspap.sudoers
  22. 13
      installers/raspbian.sh
  23. 2
      installers/uninstall.sh
  24. BIN
      locale/en_US/LC_MESSAGES/messages.mo
  25. 12
      locale/en_US/LC_MESSAGES/messages.po
  26. BIN
      locale/fr_FR/LC_MESSAGES/messages.mo
  27. 305
      locale/fr_FR/LC_MESSAGES/messages.po
  28. BIN
      locale/pt_BR/LC_MESSAGES/messages.mo
  29. 593
      locale/pt_BR/LC_MESSAGES/messages.po
  30. 3
      templates/hostapd/advanced.php
  31. 23
      templates/networking.php
  32. 6
      templates/system/basic.php
  33. 29
      yarn.lock

10
.github/ISSUE_TEMPLATE/bug_report.md

@ -11,10 +11,12 @@ assignees: ''
<!--
Thanks for reporting a bug for RaspAP.
Before creating a new bug report, all submitters MUST read the issue reporting guidelines:
Important: If you are NOT using a clean installation of a compatible OS, start with a fresh SD card, install RaspAP and replicate your bug BEFORE reporting an issue.
All submitters MUST read the issue policy and reporting guidelines:
https://docs.raspap.com/issues/
Refer to the frequently asked questions (FAQ) and official documentation here:
Refer to the frequently asked questions (FAQ) and official documentation:
https://docs.raspap.com/faq/
Do you have a question or want to suggest a new feature? Start a Discussion here:
@ -27,6 +29,8 @@ Be sure there are no issues similar to yours that are already open. You can chec
## Checklist
<!-- IMPORTANT! Fill in the boxes that apply by marking them like so: [x] -->
- [ ] This is a bug report
- [ ] I observed this bug on a clean install of the OS
- [ ] I have followed the project prerequisites
- [ ] I have searched this repository for existing issues
- [ ] I checked the FAQ and official documentation before creating this issue
- [ ] I have read and understand the issue reporting guidelines
@ -38,7 +42,7 @@ Be sure there are no issues similar to yours that are already open. You can chec
1. Operating System: **ENTER HERE** <!-- RPi OS 32-bit Lite, Armbian, Debian, etc. -->
2. Hardware and version: <!-- RPi Zero/3B+/4, OrangePi 3, etc. -->
3. RaspAP version: <!-- reported by the Quick Installer or About page -->
4. Followed the project prerequisites? <!-- Yes/No -->
4. Clean install of a compatible operating system? <!-- Yes/No -->
5. RaspAP Quick Install or Manual setup? <!-- Quick Install/Manual -->
6. Using default configuration? <!-- Yes/No -->
7. Simultaneous AP and managed mode? <!-- Yes/No -->

67
BACKERS.md

@ -1,27 +1,26 @@
## Insiders
<img width="465" alt="Insiders logo" src="https://user-images.githubusercontent.com/229399/115766971-e19e1900-a3a8-11eb-8c6f-379deb4313d2.png">
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**](https://github.com/sponsors/RaspAP). Read on to learn how sponsorship works, and how easy it is to get access to Insiders.
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**. Read on to learn how sponsorship works, and how easy it is to get access to Insiders.
<img width="461" alt="Untitled" src="app/img/insiders.png">
### How sponsorship works
## How sponsorship works
New features first land in **Insiders**, which means that *sponsors will have access to them immediately*. Every feature is tied to a funding goal in monthly subscriptions. When a funding goal is hit, the features that are tied to it are merged back into the [public RaspAP repository](https://github.com/RaspAP/raspap-webgui) and released for general availability. Bugfixes and minor enhancements are always released simultaneously in both editions.
Don't want to sponsor? No problem, RaspAP already has tons of features available, so chances are that most of your requirements are already satisfied. See the list of exclusive features to learn which features are currently only available to sponsors.
Don't want to sponsor? No problem, RaspAP already has tons of features available, so chances are that most of your requirements are already satisfied. See the list of **exclusive features** to learn which features are currently only available to sponsors.
### How to become a sponsor
You can [become a sponsor](https://github.com/sponsors/RaspAP) using your individual or organization's GitHub account. Just pick any tier from $10/month and complete the checkout. Then, after a few hours, you will be added as a team member to the super-secret private GitHub repository containing the Insiders edition, which has all exclusive features. In addition, you get access to Insiders-only team discussions and content.
## How to become a sponsor
You can become a sponsor using your individual or organization's GitHub account. Just pick any tier from $10/month and complete the checkout. Then, after a few hours, you will be added as a team member to the super-secret private GitHub repository containing the Insiders edition, which has all exclusive features. In addition, you get access to Insiders-only team discussions and content.
> ℹ️ **Important**: If you're sponsoring [RaspAP](https://github.com/RaspAP/sponsors) through a GitHub organization, please send a short email to [sponsors@raspap.com](mailto:sponsors@raspap.com) with the name of your organization and the account that should be added as a collaborator.
> :information_source: **Important**: If you're sponsoring [RaspAP](https://github.com/RaspAP/sponsors) through a GitHub organization, please send a short email to [sponsors@raspap.com](mailto:sponsors@raspap.com) with the name of your organization and the account that should be added as a collaborator.
### Exclusive features
## Exclusive features
The following features are currently available exclusively to sponsors. A tangible side benefit of sponsorship is that Insiders are able to help steer future development of RaspAP. This is done through Insiders' access to discussions, feature requests, issues and pull requests in the private GitHub repository.
✅ [Network device management](https://docs.raspap.com/net-devices/)
✅ [Firewall settings](https://docs.raspap.com/firewall/)
✅ [Firewall settings](https://docs.raspap.com/firewall/)
✅ [WPA3-Personal AP security](https://docs.raspap.com/ap-basics/#wpa3-personal)
✅ [802.11w Protected Management Frames](https://docs.raspap.com/ap-basics/#80211w)
✅ [802.11w Protected Management Frames](https://docs.raspap.com/ap-basics/#80211w)
✅ [Printable Wi-Fi signs](https://docs.raspap.com/ap-basics/#printable-signs)
✅ [Drag & drop dashboard widgets](https://docs.raspap.com/ap-basics/#drag-drop-widgets)
⚙️ Traffic shaping (in progress)
Look for the list above to grow as we add more exclusive features. Be sure to visit this page from time to time to learn about what's new, check the [Insiders docs page](https://docs.raspap.com/insiders/) and follow [@RaspAP on Twitter](https://twitter.com/rasp_ap) to stay updated.
@ -35,43 +34,15 @@ The second **Insiders Edition** includes the features listed above.
### $500
The [first Insiders Edition goal](https://docs.raspap.com/insiders/#500-1st-insiders-edition) was reached in December 2021. Thank you sponsors!
### Frequently asked questions
#### How do I install Insiders?
*How do I install Insiders?*
Invoke the [Quick Installer](https://docs.raspap.com/quick/) with the `--insiders` switch, like so:
```
curl -sL https://install.raspap.com | bash -s -- --insiders
```
This will automatically pull from the private Insiders repo during the installation process.
#### Upgrading
*I have an existing RaspAP installation. How do I upgrade to Insiders?*
Upgrading is easy. Invoke the [Quick Installer](https://docs.raspap.com/quick/) with the `--upgrade` switch, specifying the private Insiders edition, like so:
```
curl -sL https://install.raspap.com | bash -s -- --upgrade --insiders
```
If you haven't [added SSH keys to your GitHub account](https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh) you will be prompted to authenticate. If so, just enter your GitHub credentials during the install:
```
RaspAP Install: Cloning latest files from github
Cloning into '/tmp/raspap-webgui'...
Username for 'https://github.com': octocat
Password for 'https://octocat@github.com':
```
## Quarterly giving
Beginning in 2022, each quarter 15% of all proceeds from Insiders will be donated directly to the [Raspberry Pi Foundation](https://www.raspberrypi.org/). The Raspberry Pi Foundation is a UK-based charity that works to put the power of computing and digital making into the hands of people all over the world.
> ℹ️ **Note**: your password is sent securely via SSH to GitHub. The above prompt is actually from GitHub, so the installer does _not_ know your credentials.
[![Get involved with the Raspberry Pi Foundation](https://img.youtube.com/vi/dEzg92g1LHw/0.jpg)](https://www.youtube.com/watch?v=dEzg92g1LHw)
#### Terms
*We're using RaspAP for a commercial project. Can we use Insiders under the same terms and conditions?*
When you become an Insider, not only do you support development of RaspAP but you also help inspire young people by harnessing the power of computing to solve problems and express themselves creatively.
Yes. Whether you're an individual or a company, you may use RaspAP Insiders precisely under the same terms as RaspAP, which are defined by the GNU GPL 3.0 license. However, we kindly ask you to respect the following guidelines:
## Frequently asked questions
We've covered all you need to know [here](https://docs.raspap.com/insiders/#frequently-asked-questions).
* Please **don't distribute the source code** of Insiders. You may freely use it for public, private or commercial projects, fork it, mirror it, do whatever you want with it, but please don't release the source code, as it would counteract the sponsorware strategy.
* If you cancel your subscription, you're removed as a collaborator and will miss out on future updates of Insiders. However, you may *use the latest version* that's available to you as long as you like. Just remember that [GitHub deletes private forks](https://docs.github.com/en/github/setting-up-and-managing-your-github-user-account/removing-a-collaborator-from-a-personal-repository).
### Terms
See our [official project documentation](https://docs.raspap.com/insiders/#terms).

3
README.md

@ -1,5 +1,5 @@
![](https://i.imgur.com/xeKD93p.png)
[![Release 2.8.4](https://img.shields.io/badge/release-v2.8.4-green)](https://github.com/raspap/raspap-webgui/releases) [![Awesome](https://awesome.re/badge.svg)](https://github.com/thibmaek/awesome-raspberry-pi) [![Join Insiders](https://img.shields.io/static/v1?label=Join%20Insiders&message=%E2%9D%A4&logo=GitHub&color=ff69b4)](https://github.com/sponsors/RaspAP) ![https://travis-ci.com/github/raspap/raspap-webgui/](https://api.travis-ci.org/RaspAP/raspap-webgui.svg) [![Crowdin](https://badges.crowdin.net/raspap/localized.svg)](https://crowdin.com/project/raspap) [![Twitter URL](https://img.shields.io/twitter/url?label=%40RaspAP&logoColor=%23d8224c&url=https%3A%2F%2Ftwitter.com%2Frasp_ap)](https://twitter.com/rasp_ap) [![Subreddit subscribers](https://img.shields.io/reddit/subreddit-subscribers/RaspAP?style=social)](https://www.reddit.com/r/RaspAP/)
[![Release 2.8.5](https://img.shields.io/badge/release-v2.8.5-green)](https://github.com/raspap/raspap-webgui/releases) [![Awesome](https://awesome.re/badge.svg)](https://github.com/thibmaek/awesome-raspberry-pi) [![Join Insiders](https://img.shields.io/static/v1?label=Join%20Insiders&message=%E2%9D%A4&logo=GitHub&color=ff69b4)](https://github.com/sponsors/RaspAP) ![https://travis-ci.com/github/raspap/raspap-webgui/](https://api.travis-ci.org/RaspAP/raspap-webgui.svg) [![Crowdin](https://badges.crowdin.net/raspap/localized.svg)](https://crowdin.com/project/raspap) [![Twitter URL](https://img.shields.io/twitter/url?label=%40RaspAP&logoColor=%23d8224c&url=https%3A%2F%2Ftwitter.com%2Frasp_ap)](https://twitter.com/rasp_ap) [![Subreddit subscribers](https://img.shields.io/reddit/subreddit-subscribers/RaspAP?style=social)](https://www.reddit.com/r/RaspAP/)
RaspAP is feature-rich wireless router software that _just works_ on many popular [Debian-based devices](#supported-operating-systems), including the Raspberry Pi. Our popular [Quick installer](#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](https://docs.raspap.com/ssl-quick/), security audits, [captive portal integration](https://docs.raspap.com/captive/), themes and [multilingual options](https://docs.raspap.com/translations/) are included.
@ -123,6 +123,7 @@ RaspAP was originally made for Raspbian, but now also installs on the following
| Distribution | Release | Architecture | Support |
|---|:---:|:---:|:---:|
| Raspberry Pi OS | (32-bit) Lite Bullseye | ARM | Official |
| Raspberry Pi OS | (64-bit) Lite Bullseye | ARM | Official |
| Armbian | Bullseye | [ARM](https://docs.armbian.com/#supported-socs) | Official |
| Debian | Bullseye | ARM / x86_64 | Beta |
| Ubuntu | 18.04 LTS / 19.10 | ARM / x86_64 | Beta |

10
ajax/bandwidth/get_bandwidth.php

@ -49,6 +49,7 @@ if ($timeunits === 'm') {
}
$datasizeunits = filter_input(INPUT_GET, 'dsu');
$dsu_factor = $datasizeunits == "mb" ? 1024 * 1024 : 1024;
header('X-Content-Type-Options: nosniff');
header('Content-Type: application/json');
echo '[ ';
@ -73,13 +74,8 @@ for ($i = count($jsonData) - 1; $i >= 0; --$i) {
echo ',';
}
if ($datasizeunits == 'mb') {
$datasend = round($jsonData[$i]['tx'] / 1024, 0);
$datareceived = round($jsonData[$i]['rx'] / 1024, 0);
} else {
$datasend = $jsonData[$i]['rx'];
$datareceived = $jsonData[$i]['rx'];
}
$datasend = round($jsonData[$i]['tx'] / $dsu_factor, 0);
$datareceived = round($jsonData[$i]['rx'] / $dsu_factor, 0);
if ($timeunits === 'm') {
echo '{ "date": "' , $dt->format('Y-m') , '", "rx": "' , $datareceived ,

9
ajax/bandwidth/get_bandwidth_hourly.php

@ -39,11 +39,14 @@ if (filter_input(INPUT_GET, 'tu') == 'h') {
exit('vnstat error');
}
$datasizeunits = filter_input(INPUT_GET, 'dsu');
$dsu_factor = $datasizeunits == "mb" ? 1024 * 1024 : 1024;
$jsonobj = json_decode($jsonstdoutvnstat[0], true)['interfaces'][0];
$jsonData = $jsonobj['traffic']['hour'];
for ($i = count($jsonData) - 1; $i >= 0; --$i) {
$data_template[$jsonData[$i]['time']['hour']]['rx'] = round($jsonData[$i]['rx'] / 1024, 0);
$data_template[$jsonData[$i]['time']['hour']]['tx'] = round($jsonData[$i]['tx'] / 1024, 0);
for ($i = count($jsonData) - 1; $i >= 0 && $i >= count($jsonData)-25; --$i) {
$data_template[$jsonData[$i]['time']['hour']]['rx'] = round($jsonData[$i]['rx'] / $dsu_factor, 0);
$data_template[$jsonData[$i]['time']['hour']]['tx'] = round($jsonData[$i]['tx'] / $dsu_factor, 0);
}
$data = array();

2
app/js/huebee.js

@ -11,7 +11,7 @@ var hueb = new Huebee( elem, {
// Set custom color if defined
var color = getCookie('color');
if (color == null || color == '') {
color = '#d8224c';
color = '#2b8080';
}
hueb.setColor(color);

13
app/lib/system.php

@ -42,7 +42,7 @@ class Sysinfo
public function usedMemory()
{
$used = shell_exec("free -m | awk '/Mem:/ { total=$2 ; used=$3 } END { print used/total*100}'");
$used = shell_exec("free -m | awk 'NR==2{ total=$2 ; used=$3 } END { print used/total*100}'");
return floor($used);
}
@ -75,5 +75,16 @@ class Sysinfo
return $status;
}
public function operatingSystem()
{
$os_desc = shell_exec("lsb_release -sd");
return $os_desc;
}
public function kernelVersion()
{
$kernel = shell_exec("uname -r");
return $kernel;
}
}

2
config/hostapd.conf

@ -11,7 +11,7 @@ wpa_passphrase=ChangeMe
interface=wlan0
wpa=2
wpa_pairwise=CCMP
country_code=
country_code=GB
## Rapberry Pi 3 specific to on board WLAN/WiFi
#ieee80211n=1 # 802.11n support (Raspberry Pi 3)
#wmm_enabled=1 # QoS support (Raspberry Pi 3)

11
config/raspap-bridge-br0.netplan

@ -0,0 +1,11 @@
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: no
bridges:
br0:
dhcp4: yes
interfaces:
- eth0

2
dist/raspap/css/style.css

@ -48,7 +48,7 @@ span.ra-wireguard:before {
.ra-raspap:before {
font-size: 4.35rem;
content: "\e901";
color: #d8224c;
color: #2b8080;
margin-left: 0.1em;
}

4
includes/adblock.php

@ -78,8 +78,8 @@ function DisplayAdBlockConfig()
$adblock_custom_content = file_get_contents(RASPI_ADBLOCK_LISTPATH .'custom.txt');
$adblock_log = '';
exec('sudo chmod o+r '. RASPI_DHCPCD_LOG);
$handle = fopen("/tmp/dnsmasq.log", "r");
exec('sudo chmod o+r '.RASPI_DHCPCD_LOG);
$handle = fopen(RASPI_DHCPCD_LOG, "r");
if ($handle) {
while (($line = fgets($handle)) !== false) {
if (preg_match('/(0.0.0.0)/', $line)) {

2
includes/defaults.php

@ -6,7 +6,7 @@ if (!defined('RASPI_CONFIG')) {
$defaults = [
'RASPI_BRAND_TEXT' => 'RaspAP',
'RASPI_VERSION' => '2.8.4',
'RASPI_VERSION' => '2.8.5',
'RASPI_CONFIG_NETWORK' => RASPI_CONFIG.'/networking/defaults.json',
'RASPI_ADMIN_DETAILS' => RASPI_CONFIG.'/raspap.auth',
'RASPI_WIFI_AP_INTERFACE' => 'wlan0',

2
includes/dhcp.php

@ -120,7 +120,7 @@ function validateDHCPInput()
{
define('IFNAMSIZ', 16);
$iface = $_POST['interface'];
if (!preg_match('/^[a-zA-Z0-9]+$/', $iface)
if (!preg_match('/^[^\s\/\\0]+$/', $iface)
|| strlen($iface) >= IFNAMSIZ
) {
$errors .= _('Invalid interface name.').'<br />'.PHP_EOL;

2
includes/functions.php

@ -787,7 +787,7 @@ class validation
*/
function get_public_ip()
{
exec('wget https://ipinfo.io/ip -qO -', $public_ip);
exec('wget --timeout=5 --tries=1 https://ipinfo.io/ip -qO -', $public_ip);
return $public_ip[0];
}

7
includes/hostapd.php

@ -7,6 +7,9 @@ require_once 'includes/config.php';
getWifiInterface();
$system = new \RaspAP\System\Sysinfo;
$os = $system->operatingSystem();
/**
* Initialize hostapd values, display interface
*
@ -15,6 +18,7 @@ function DisplayHostAPDConfig()
{
$status = new StatusMessages();
$system = new \RaspAP\System\Sysinfo;
$operatingSystem = $system->operatingSystem();
$arrConfig = array();
$arr80211Standard = [
'a' => '802.11a - 5 GHz',
@ -119,7 +123,8 @@ function DisplayHostAPDConfig()
"arrEncType",
"arrTxPower",
"txpower",
"arrHostapdConf"
"arrHostapdConf",
"operatingSystem"
)
);
}

11
includes/internetRoute.php

@ -55,3 +55,14 @@ function getRouteInfo($checkAccess)
return $rInfo;
}
/*
* Fetches raw output of ip route
*
* @return string
*/
function getRouteInfoRaw()
{
exec('ip route list', $routes);
return $routes;
}

2
includes/networking.php

@ -14,6 +14,7 @@ function DisplayNetworkingConfig()
exec("ls /sys/class/net | grep -v lo", $interfaces);
$routeInfo = getRouteInfo(true);
$routeInfoRaw = getRouteInfoRaw();
$arrHostapdConf = parse_ini_file(RASPI_CONFIG.'/hostapd.ini');
$bridgedEnabled = $arrHostapdConf['BridgedEnable'];
@ -21,6 +22,7 @@ function DisplayNetworkingConfig()
"status",
"interfaces",
"routeInfo",
"routeInfoRaw",
"bridgedEnabled")
);
}

4
includes/system.php

@ -159,6 +159,8 @@ function DisplaySystem()
$hostname = $system->hostname();
$uptime = $system->uptime();
$cores = $system->processorCount();
$os = $system->operatingSystem();
$kernel = $system->kernelVersion();
// mem used
$memused = $system->usedMemory();
@ -215,6 +217,8 @@ function DisplaySystem()
"hostname",
"uptime",
"cores",
"os",
"kernel",
"memused",
"memused_status",
"memused_led",

6
index.php

@ -5,16 +5,16 @@
*
* Simple AP setup & WiFi management for Debian-based devices.
* Enables use of simple web interface rather than SSH to control WiFi and related services on the Raspberry Pi.
* Recommended distribution is Raspberry Pi OS (32-bit) Lite. Specific instructions to install the supported software are
* Recommended distribution is Raspberry Pi OS (64-bit) Lite. Specific instructions to install the supported software are
* in the README and original post by @SirLagz. For a quick run through, the packages required for the WebGUI are:
* lighttpd (version 1.4.59 installed via apt)
* php-cgi (version 7.4.25 installed via apt)
* php-cgi (version 7.4.28 installed via apt)
* along with their supporting packages, php7.3 will also need to be enabled.
*
* @author Lawrence Yau <sirlagz@gmail.com>
* @author Bill Zimmerman <billzimmerman@gmail.com>
* @license GNU General Public License, version 3 (GPL-3.0)
* @version 2.8.4
* @version 2.8.5
* @link https://github.com/RaspAP/raspap-webgui/
* @link https://raspap.com/
* @see http://sirlagz.net/2013/02/08/raspap-webgui/

96
installers/common.sh

@ -41,10 +41,11 @@ function _install_raspap() {
_display_welcome
_config_installation
_update_system_packages
_manage_systemd_services
_install_dependencies
_enable_php_lighttpd
_check_for_old_configs
_create_raspap_directories
_check_for_old_configs
_optimize_php
_download_latest_files
_change_file_ownership
@ -139,7 +140,7 @@ function _get_linux_distro() {
# Sets php package option based on Linux version, abort if unsupported distro
function _set_php_package() {
case $RELEASE in
18.04|19.10|11*) # Ubuntu Server & Debian 11
22.04|20.04|18.04|19.10|11*) # Ubuntu Server, Debian 11 & Armbian 22.05
php_package="php7.4-cgi"
phpcgiconf="/etc/php/7.4/cgi/php.ini" ;;
10*|11*)
@ -149,20 +150,55 @@ function _set_php_package() {
php_package="php7.0-cgi"
phpcgiconf="/etc/php/7.0/cgi/php.ini" ;;
8)
_install_status 1 "${DESC} and php5 are not supported. Please upgrade." ;;
_install_status 1 "${DESC} and php5 are not supported. Please upgrade."
exit 1 ;;
*)
_install_status 1 "${DESC} is unsupported. Please install on a supported distro." ;;
_install_status 1 "${DESC} is unsupported. Please install on a supported distro."
exit 1 ;;
esac
}
# Prompts the user to stop & disable Debian's systemd-networkd services.
# It isn't possible to mix Debian networking with dhcpcd.
# On Ubuntu 20.04 / Armbian 22, the systemd-resolved service uses port 53
# by default which prevents dnsmasq from starting.
function _manage_systemd_services() {
_install_log "Checking for systemd network services"
services=( "systemd-networkd" "systemd-resolved" )
for svc in "${services[@]}"; do
# Prompt to disable systemd service
if systemctl is-active --quiet "$svc".service; then
echo -n "Stop and disable ${svc} service? [Y/n]: "
if [ "$assume_yes" == 0 ]; then
read answer < /dev/tty
if [ "$answer" != "${answer#[Nn]}" ]; then
echo -e
else
sudo systemctl stop "$svc".service || _install_status 1 "Unable to stop ${svc}.service"
sudo systemctl disable "$svc".service || _install_status 1 "Unable to disable ${svc}.service"
fi
else
sudo systemctl stop "$svc".service || _install_status 1 "Unable to stop ${svc}.service"
sudo systemctl disable "$svc".service || _install_status 1 "Unable to disable ${svc}.service"
fi
else
echo "${svc}.service is not running (ok)"
fi
done
_install_status 0
}
# Runs a system software update to make sure we're using all fresh packages
function _install_dependencies() {
_install_log "Installing required packages"
_set_php_package
if [ "$php_package" = "php7.4-cgi" ] && [ ${OS,,} = "ubuntu" ]; then
if [ "$php_package" = "php7.4-cgi" ] && [ ${OS,,} = "ubuntu" ] && [[ ${RELEASE} =~ ^(22.04|20.04|18.04|19.10|11) ]]; then
echo "Adding apt-repository ppa:ondrej/php"
sudo apt-get install $apt_option software-properties-common || _install_status 1 "Unable to install dependency"
sudo add-apt-repository $apt_option ppa:ondrej/php || _install_status 1 "Unable to add-apt-repository ppa:ondrej/php"
else
echo "${php_package} will be installed from the main deb sources list"
fi
if [ ${OS,,} = "debian" ] || [ ${OS,,} = "ubuntu" ]; then
dhcpcd_package="dhcpcd5"
@ -184,6 +220,13 @@ function _enable_php_lighttpd() {
# Verifies existence and permissions of RaspAP directory
function _create_raspap_directories() {
if [ "$upgrade" == 1 ]; then
if [ -f $raspap_dir/raspap.auth ]; then
_install_log "Moving existing raspap.auth file to /tmp"
sudo mv $raspap_dir/raspap.auth /tmp || _install_status 1 "Unable to backup raspap.auth to /tmp"
fi
fi
_install_log "Creating RaspAP directories"
if [ -d "$raspap_dir" ]; then
sudo mv $raspap_dir "$raspap_dir.`date +%F-%R`" || _install_status 1 "Unable to move old '$raspap_dir' out of the way"
@ -267,7 +310,6 @@ function _install_lighttpd_configs() {
_install_status 0
}
# Prompt to install ad blocking
function _prompt_install_adblock() {
_install_log "Configure ad blocking (Beta)"
@ -275,7 +317,7 @@ function _prompt_install_adblock() {
if [ "$assume_yes" == 0 ]; then
read answer < /dev/tty
if [ "$answer" != "${answer#[Nn]}" ]; then
echo -e
_install_status 0 "(Skipped)"
else
_install_adblock
fi
@ -339,7 +381,7 @@ function _prompt_install_openvpn() {
if [ "$assume_yes" == 0 ]; then
read answer < /dev/tty
if [ "$answer" != "${answer#[Nn]}" ]; then
echo -e
_install_status 0 "(Skipped)"
else
_install_openvpn
fi
@ -357,7 +399,7 @@ function _prompt_install_wireguard() {
if [ "$assume_yes" == 0 ]; then
read answer < /dev/tty
if [ "$answer" != "${answer#[Nn]}" ]; then
echo -e
_install_status 0 "(Skipped)"
else
_install_wireguard
fi
@ -420,13 +462,14 @@ function _download_latest_files() {
_install_log "Cloning latest files from github"
git clone --branch $branch --depth 1 -c advice.detachedHead=false $git_source_url /tmp/raspap-webgui || _install_status 1 "Unable to download files from github"
sudo mv /tmp/raspap-webgui $webroot_dir || _install_status 1 "Unable to move raspap-webgui to web root"
if [ "$upgrade" == 1 ]; then
_install_log "Applying existing configuration to ${webroot_dir}/includes"
sudo mv /tmp/config.php $webroot_dir/includes || _install_status 1 "Unable to move config.php to ${webroot_dir}/includes"
if [ -f /tmp/raspap.auth ]; then
_install_log "Applying existing authentication file to ${raspap_dir}"
sudo mv /tmp/raspap.auth $raspap_dir || _install_status 1 "Unable to restore authentification credentials file to ${raspap_dir}"
fi
fi
@ -449,10 +492,6 @@ function _check_for_old_configs() {
if [ "$upgrade" == 1 ]; then
_install_log "Moving existing configuration to /tmp"
sudo mv $webroot_dir/includes/config.php /tmp || _install_status 1 "Unable to move config.php to /tmp"
if [ -f $raspap_dir/raspap.auth ]; then
sudo mv $raspap_dir/raspap.auth /tmp || _install_status 1 "Unable to backup raspap.auth to /tmp"
fi
else
_install_log "Backing up existing configs to ${raspap_dir}/backups"
if [ -f /etc/network/interfaces ]; then
@ -514,17 +553,21 @@ function _default_configuration() {
sudo cp $webroot_dir/config/dhcpcd.conf /etc/dhcpcd.conf || _install_status 1 "Unable to move dhcpcd configuration file"
sudo cp $webroot_dir/config/defaults.json $raspap_network || _install_status 1 "Unable to move defaults.json settings"
echo "Changing file ownership of ${raspap_network}/defaults.json"
echo "Changing file ownership of ${raspap_network}defaults.json"
sudo chown $raspap_user:$raspap_user "$raspap_network"/defaults.json || _install_status 1 "Unable to change file ownership for defaults.json"
echo "Checking for existence of /etc/dnsmasq.d"
[ -d /etc/dnsmasq.d ] || sudo mkdir /etc/dnsmasq.d
echo "Copying bridged AP config to /etc/systemd/network"
sudo systemctl stop systemd-networkd
sudo systemctl disable systemd-networkd
sudo cp $webroot_dir/config/raspap-bridge-br0.netdev /etc/systemd/network/raspap-bridge-br0.netdev || _install_status 1 "Unable to move br0 netdev file"
sudo cp $webroot_dir/config/raspap-br0-member-eth0.network /etc/systemd/network/raspap-br0-member-eth0.network || _install_status 1 "Unable to move br0 member file"
# Copy OS-specific bridge default config
if [ ${OS,,} = "ubuntu" ] && [[ ${RELEASE} =~ ^(22.04|20.04|19.10|18.04) ]]; then
echo "Copying bridged AP config to /etc/netplan"
sudo cp $webroot_dir/config/raspap-bridge-br0.netplan /etc/netplan/raspap-bridge-br0.netplan || _install_status 1 "Unable to move br0 netplan file"
else
echo "Copying bridged AP config to /etc/systemd/network"
sudo cp $webroot_dir/config/raspap-bridge-br0.netdev /etc/systemd/network/raspap-bridge-br0.netdev || _install_status 1 "Unable to move br0 netdev file"
sudo cp $webroot_dir/config/raspap-br0-member-eth0.network /etc/systemd/network/raspap-br0-member-eth0.network || _install_status 1 "Unable to move br0 member file"
fi
echo "Copying primary RaspAP config to includes/config.php"
if [ ! -f "$webroot_dir/includes/config.php" ]; then
@ -577,7 +620,7 @@ function _configure_networking() {
if [ "$assume_yes" == 0 ]; then
read answer < /dev/tty
if [ "$answer" != "${answer#[Nn]}" ]; then
echo -e
_install_status 0 "(Skipped)"
else
_enable_raspap_daemon
fi
@ -606,6 +649,15 @@ function _patch_system_files() {
_install_log "Unmasking and enabling hostapd service"
sudo systemctl unmask hostapd.service
sudo systemctl enable hostapd.service
# Set correct DAEMON_CONF path for hostapd (Ubuntu20 + Armbian22)
if [ ${OS,,} = "ubuntu" ] && [[ ${RELEASE} =~ ^(22.04|20.04|19.10|18.04) ]]; then
conf="/etc/default/hostapd"
key="DAEMON_CONF"
value="/etc/hostapd/hostapd.conf"
echo "Setting default ${key} path to ${value}"
sudo sed -i -E "/^#?$key/ { s/^#//; s%=.*%=\"$value\"%; }" "$conf" || _install_status 1 "Unable to set value in ${conf}"
fi
_install_status 0
}
@ -675,7 +727,7 @@ function _install_complete() {
# Prompt to reboot if wired ethernet (eth0) is connected.
# With default_configuration this will create an active AP on restart.
if ip a | grep -q ': eth0:.*state UP'; then
echo -n "The system needs to be rebooted as a final step. Reboot now? [y/N]: "
echo -n "The system needs to be rebooted as a final step. Reboot now? [Y/n]: "
read answer < /dev/tty
if [ "$answer" != "${answer#[Nn]}" ]; then
echo "Installation reboot aborted."

1
installers/raspap.sudoers

@ -63,4 +63,5 @@ www-data ALL=(ALL) NOPASSWD:/bin/cat /etc/wireguard/*.conf
www-data ALL=(ALL) NOPASSWD:/bin/cat /etc/wireguard/wg-*.key
www-data ALL=(ALL) NOPASSWD:/bin/rm /etc/wireguard/*.conf
www-data ALL=(ALL) NOPASSWD:/bin/rm /etc/wireguard/wg-*.key
www-data ALL=(ALL) NOPASSWD:/usr/sbin/netplan

13
installers/raspbian.sh

@ -21,6 +21,7 @@
# -u, --upgrade Upgrades an existing installation to the latest release version
# -i, --insiders Installs from the Insiders Edition (RaspAP/raspap-insiders)
# -v, --version Outputs release info and exits
# -n, --uninstall Loads and executes the uninstaller
# -h, --help Outputs usage notes and exits
#
# Depending on options passed to the installer, ONE of the following
@ -29,6 +30,8 @@
# https://raw.githubusercontent.com/raspap/raspap-webgui/master/installers/common.sh
# - or -
# https://raw.githubusercontent.com/raspap/raspap-webgui/master/installers/mkcert.sh
# - or -
# https://raw.githubusercontent.com/raspap/raspap-webgui/master/installers/uninstall.sh
#
# You are not obligated to bundle the LICENSE file with your RaspAP projects as long
# as you leave these references intact in the header comments of your source files.
@ -96,6 +99,9 @@ function _parse_params() {
-v|--version)
_version
;;
-n|--uninstall)
uninstall=1
;;
-*|--*)
echo "Unknown option: $1"
_usage
@ -141,6 +147,7 @@ OPTIONS:
-u, --upgrade Upgrades an existing installation to the latest release version
-i, --insiders Installs from the Insiders Edition (RaspAP/raspap-insiders)
-v, --version Outputs release info and exits
-n, --uninstall Loads and executes the uninstaller
-h, --help Outputs usage notes and exits
Examples:
@ -245,11 +252,17 @@ function _load_installer() {
if [[ ! -z "$acctoken" ]]; then
header=(--header "Authorization: token $acctoken")
fi
if [ "${install_cert:-}" = 1 ]; then
source="mkcert"
wget "${header[@]}" -q ${UPDATE_URL}installers/${source}.sh -O /tmp/raspap_${source}.sh
source /tmp/raspap_${source}.sh && rm -f /tmp/raspap_${source}.sh
_install_certificate || _install_status 1 "Unable to install certificate"
elif [ "${uninstall}" = 1 ]; then
source="uninstall"
wget "${header[@]}" -q ${UPDATE_URL}installers/${source}.sh -O /tmp/raspap_${source}.sh
source /tmp/raspap_${source}.sh && rm -f /tmp/raspap_${source}.sh
_remove_raspap || _install_status 1 "Unable to uninstall RaspAP"
else
source="common"
wget "${header[@]}" -q ${UPDATE_URL}installers/${source}.sh -O /tmp/raspap_${source}.sh

2
installers/uninstall.sh

@ -202,7 +202,7 @@ function _remove_installed_packages() {
fi
echo -n "Remove the following installed packages? lighttpd hostapd iptables-persistent $php_package $dhcpcd_package vnstat qrencode [y/N]: "
read answer
if [ "$answer" != 'n' ] && [ "$answer" != 'N' ]; then
if [ "$answer" == 'y' ] || [ "$answer" == 'Y' ]; then
echo "Removing packages."
sudo apt-get remove lighttpd hostapd iptables-persistent $php_package $dhcpcd_package vnstat qrencode || _install_error "Unable to remove installed packages"
sudo apt-get autoremove || _install_error "Unable to run apt autoremove"

BIN
locale/en_US/LC_MESSAGES/messages.mo

12
locale/en_US/LC_MESSAGES/messages.po

@ -679,6 +679,12 @@ msgstr "Error saving network configuration to file"
msgid "Unable to detect interface"
msgstr "Unable to detect interface"
msgid "Routing table"
msgstr "Routing table"
msgid "raw output"
msgstr "raw output"
#: includes/system.php
msgid "System Information"
msgstr "System Information"
@ -731,6 +737,12 @@ msgstr "Web server port"
msgid "Web server bind address"
msgstr "Web server bind address"
msgid "OS"
msgstr "OS"
msgid "Kernel"
msgstr "Kernel"
#: includes/themes.php
msgid "Theme settings"
msgstr "Theme settings"

BIN
locale/fr_FR/LC_MESSAGES/messages.mo

305
locale/fr_FR/LC_MESSAGES/messages.po

@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: raspap\n"
"Report-Msgid-Bugs-To: Bill Zimmerman <billzimmerman@gmail.com>\n"
"POT-Creation-Date: 2017-10-19 08:56+0000\n"
"PO-Revision-Date: 2021-06-12 19:03\n"
"PO-Revision-Date: 2022-06-28 09:13\n"
"Last-Translator: Bill Zimmerman <billzimmerman@gmail.com>\n"
"Language-Team: French\n"
"Language: fr_FR\n"
@ -146,9 +146,33 @@ msgstr "Dissimuler"
msgid "Not configured"
msgstr "Pas configuré"
msgid "Connected"
msgstr "Connecté"
msgid "Known"
msgstr "Connu"
msgid "Nearby"
msgstr "À proximité"
msgid "<strong>Note:</strong> WEP access points appear as 'Open'. RaspAP does not currently support connecting to WEP"
msgstr "<strong>Remarque:</strong> Les points d'accès WEP apparaissent comme 'ouverts'. RaspAP ne prend actuellement pas en charge la connexion via WEP"
msgid "No Wifi stations found"
msgstr "Aucune station Wi-Fi trouvée"
msgid "Reinitializing wpa_supplicant"
msgstr "Réinitialisation de wpa_supplicant"
msgid "Click 'Rescan' to search for nearby Wifi stations."
msgstr "Cliquez sur « Re-scanner » pour rechercher les stations Wifi à proximité."
msgid "Click 'Reinitialize' to force reinitialize <code>wpa_supplicant</code>."
msgstr "Cliquez sur \"Réinitialiser\" pour forcer la réinitialisation de <code>wpa_supplicant</code>."
msgid "Reinitialize"
msgstr "Réinitialiser"
#: includes/dashboard.php
msgid "Interface Information"
msgstr "Informations d'interface"
@ -243,6 +267,60 @@ msgstr "Arrêtez wlan0"
msgid "Connected Devices"
msgstr "Appareils connectés"
msgid "Client: Ethernet cable"
msgstr "Client : câble Ethernet"
msgid "Ethernet"
msgstr "Ethernet"
msgid "Client: Smartphone (USB tethering)"
msgstr "Client : Smartphone (partage de connexion USB)"
msgid "Smartphone"
msgstr "Smartphone"
msgid "WiFi"
msgstr "Wi-Fi"
msgid "Mobile Data Client"
msgstr "Client de données mobiles"
msgid "Mobile Data"
msgstr "Données mobiles"
msgid "No information available"
msgstr "Pas d'information disponible"
msgid "Interface name invalid"
msgstr "Nom d'interface invalide"
msgid "Required exec function is disabled. Check if exec is not added to php <code>disable_functions</code>."
msgstr "La fonction exec requise est désactivée. Vérifiez si exec n'est pas ajouté à php <code>disable_functions</code>."
msgid "Waiting for the interface to start ..."
msgstr "En attente du démarrage de l'interface..."
msgid "Stop the Interface"
msgstr "Arrêter l'interface"
msgid "Connection mode"
msgstr "Mode de connexion"
msgid "Signal quality"
msgstr "Qualité du signal"
msgid "WAN IP"
msgstr "IP WAN"
msgid "Web-GUI"
msgstr "Interface web"
msgid "Signal strength"
msgstr "Intensité du signal"
msgid "No Client device or not yet configured"
msgstr "Aucun appareil client ou pas encore configuré"
#: includes/dhcp.php
msgid "DHCP server settings"
msgstr "Paramètres du serveur DHCP"
@ -289,6 +367,9 @@ msgstr "Temps d'expiration"
msgid "MAC Address"
msgstr "Adresse Mac"
msgid "Optional comment"
msgstr "Commentaire optionnel"
msgid "Host name"
msgstr "Nom d'hôte"
@ -404,8 +485,8 @@ msgstr "Type de sécurité"
msgid "Encryption Type"
msgstr "Type de chiffrement"
msgid "PSK"
msgstr "PSK"
msgid "Pre-shared key (PSK)"
msgstr "Clé pré-partagée (PSK)"
msgid "Advanced settings"
msgstr "Réglages avancés"
@ -417,7 +498,7 @@ msgid "Information provided by hostapd"
msgstr "Informations fournies par hostapd"
msgid "Attempting to start hotspot"
msgstr "Tentative de démarrage du hotspot"
msgstr "Tentative de démarrage du point d'accès"
msgid "Attempting to stop hotspot"
msgstr "Tentative d'arrêt du hotspot"
@ -441,7 +522,7 @@ msgid "Country code must be blank or two characters"
msgstr "Le code du pays doit être vide ou deux caractères"
msgid "Wifi Hotspot settings saved"
msgstr "Paramètres de hotspot WI-FI enregistrés"
msgstr "Paramètres de point d'accès WI-FI enregistrés"
msgid "Unable to save wifi hotspot settings"
msgstr "Impossible d'enregistrer le réglage du hotspot Wi-Fi"
@ -473,8 +554,8 @@ msgstr "Masquer le SSID en diffusion"
msgid "Maximum number of clients"
msgstr "Nombre maximum de clients"
msgid "Configures the max_num_sta option of hostapd. The default and maximum is 2007. If empty or 0, the default applies."
msgstr "l'option max_num_sta de hostapd. La valeur par défaut et maximum est 2007. Si vide ou 0, la valeur par défaut s'applique."
msgid "Configures the <code>max_num_sta</code> option of hostapd. The default and maximum is 2007. If empty or 0, the default applies."
msgstr "Configure l'option <code>max_num_sta</code> de hostapd. La valeur par défaut et maximum est 2007. Si vide ou 0, la valeur par défaut s'applique."
msgid "Beacon interval"
msgstr "intervalle balise Beacon"
@ -489,11 +570,53 @@ msgid "Executing RaspAP service start"
msgstr "Démarrage du service RaspAP"
msgid "Close"
msgstr "Fermé"
msgstr "Fermer"
msgid "Enable this option to log <code>hostapd</code> activity."
msgstr "Activer les logs d'activité avec l'option <code>hostapd</code>"
msgid "Transmit power (dBm)"
msgstr "Puissance de transmission (dBm)"
msgid "Sets the <code>txpower</code> option for the AP interface and the configured country."
msgstr "Définit l'option <code>txpower</code> pour le point d'accès et le pays configuré."
msgid "dBm is a unit of level used to indicate that a power ratio is expressed in decibels (dB) with reference to one milliwatt (mW). 30 dBm is equal to 1000 mW, while 0 dBm equals 1.25 mW."
msgstr "dBm est une unité de mesure utilisée pour indiquer qu'un rapport de puissance est exprimé en décibels (dB) avec une référence à un milliwatt (mW). 30 dBm est égal à 1000 mW, tandis que 0 dBm équivaut à 1,25 mW."
msgid "WPA and WPA2"
msgstr "WPA et WPA2"
msgid "WPA2 and WPA3-Personal (transitional mode)"
msgstr "WPA2 et WPA3-Personal (mode transitoire)"
msgid "WPA3-Personal (required)"
msgstr "WPA3-Personnel (obligatoire)"
msgid "Enabled (for supported clients)"
msgstr "Activé (pour les clients pris en charge)"
msgid "Required (for supported clients)"
msgstr "Requis (pour les clients pris en charge)"
msgid "802.11w extends strong cryptographic protection to a select set of robust management frames, including Deauthentication, Disassociation and certain categories of Action Management frames. Collectively, this is known as Management Frame Protection (MFP)."
msgstr "La norme 802.11w étend la protection cryptographique forte à un ensemble sélectionné de trames de gestion robustes, notamment la désauthentification, la dissociation et certaines catégories de trames de gestion d'action. L'ensemble de ces éléments est connu sous le nom de Management Frame Protection (MFP)."
msgid "Scan this QR code directly or %s %sprint a sign%s for your users."
msgstr "Scannez ce code QR directement ou %s %simprimez un panneau%s pour vos utilisateurs."
msgid "Printable Wi-Fi sign"
msgstr "Panneau Wi-Fi imprimable"
msgid "To connect with your phone or tablet, scan the QR code above with your camera app."
msgstr "Pour vous connecter à votre téléphone ou tablette, scannez le QR code ci-dessus avec votre application caméra."
msgid "For other devices, use the login credentials below."
msgstr "Pour les autres appareils, utilisez les identifiants ci-dessous."
msgid "Network"
msgstr "Réseau"
#: includes/networking.php
msgid "Summary"
msgstr "Sommaire"
@ -537,6 +660,57 @@ msgstr "Appliquer les paramètres"
msgid "Information provided by /sys/class/net"
msgstr "Informations fournies par /sys/class/net"
msgid "Network Devices"
msgstr "Périphériques réseau"
msgid "Mobile Data Settings"
msgstr "Paramètres des données mobiles"
msgid "Properties of network devices"
msgstr "Propriétés des périphériques réseau"
msgid "Device"
msgstr "Appareil"
msgid "MAC"
msgstr "MAC"
msgid "USB vid/pid"
msgstr "USB vid/pid"
msgid "Device type"
msgstr "Type d'appareil"
msgid "Fixed name"
msgstr "Nom fixe"
msgid "Change"
msgstr "Modifier"
msgid "Settings for Mobile Data Devices"
msgstr "Paramètres pour les périphériques de données mobiles"
msgid "PIN of SIM card"
msgstr "PIN de la carte SIM"
msgid "APN Settings (Modem device ppp0)"
msgstr "Paramètres APN (modem ppp0)"
msgid "Access Point Name (APN)"
msgstr "Nom du point d'accès (APN)"
msgid "Password"
msgstr "Mot de passe"
msgid "Successfully Updated Network Configuration"
msgstr "Configuration réseau mise à jour"
msgid "Error saving network configuration to file"
msgstr "Erreur lors de l'enregistrement du fichier de configuration réseau"
msgid "Unable to detect interface"
msgstr "Impossible de détecter l'interface"
#: includes/system.php
msgid "System Information"
msgstr "Informations du système"
@ -883,14 +1057,44 @@ msgstr "Un Host personnalisée non valide a été trouvée sur la ligne "
msgid "Tunnel settings"
msgstr "Paramètres du tunnel"
msgid "Configuration Method"
msgstr "Méthode de configuration"
msgid "Upload file"
msgstr "Charger un fichier"
msgid "Create manually"
msgstr "Créer manuellement"
msgid "Upload a WireGuard config"
msgstr "Charger une configuration WireGuard"
msgid "This option uploads and installs an existing WireGuard <code>.conf</code> file on this device."
msgstr "Cette option télécharge et installe un fichier WireGuard <code>.conf</code> existant sur cet appareil."
msgid "Apply iptables rules for AP interface"
msgstr "Appliquer les règles iptables au point d'accès"
msgid "Recommended if you wish to forward network traffic from the wg0 interface to clients connected on the AP interface."
msgstr "Recommandé si vous souhaitez transférer le trafic réseau de l'interface wg0 aux clients connectés au point d'accès."
msgid "This option adds <strong>iptables</strong> <code>Postup</code> and <code>PostDown</code> rules for the configured AP interface (%s)."
msgstr "Cette option ajoute des règles <strong>iptables</strong> <code>Postup</code> et <code>PostDown</code> pour l'interface AP configurée (%s)."
msgid "Select WireGuard configuration file (.conf)"
msgstr "Sélectionner le fichier de configuration WireGuard (.conf)"
msgid "Create a local WireGuard config"
msgstr "Créer une configuration locale WireGuard"
msgid "Enable server"
msgstr "Activer le serveur"
msgid "Enable this option to encrypt traffic by creating a tunnel between RaspAP and configured peers."
msgstr "Active cette option pour chiffrer le trafic en créant un tunnel entre RaspAP et les pairs configurés."
msgid "Enable this option to secure network traffic by creating an encrypted tunnel between RaspAP and configured peers."
msgstr "Activer cette option pour sécuriser le trafic réseau en créant un tunnel chiffré entre RaspAP et les pairs configurés."
msgid "This option adds <code>wg0.conf</code> to the WireGuard configuration."
msgstr "Cette option ajoute <code>wg0.conf</code> à la configuration de WireGuard."
msgid "This setting generates a new WireGuard <code>.conf</code> file on this device."
msgstr "Ce paramètre génère un nouveau fichier WireGuard <code>.conf</code> sur cet appareil."
msgid "Local public key"
msgstr "Clé publique locale"
@ -928,11 +1132,11 @@ msgstr "Adresses IP autorisées"
msgid "Persistent keepalive"
msgstr "Keepalive persistant"
msgid "Display WireGuard status"
msgstr "Afficher le statut WireGuard"
msgid "Enable this option to display an updated <code>wg-quick</code> debug log."
msgstr "Activer cette option pour afficher un journal de débogage de <code>wg-quick</code>."
msgid "Enable this option to display an updated WireGuard status."
msgstr "Activer cette option pour afficher un statut WireGuard mis à jour."
msgid "WireGuard debug log updated"
msgstr "Journal de débogage WireGuard mis à jour"
msgid "Scan this QR code with your client to connect to this tunnel"
msgstr "Scannez ce code QR avec votre client pour vous connecter à ce tunnel"
@ -964,3 +1168,72 @@ msgstr "Configuration de WireGuard mise à jour avec succès"
msgid "WireGuard configuration failed to be updated"
msgstr "La configuration WireGuard n'a pas pu être mise à jour"
msgid "Client Firewall"
msgstr "Pare-feu client"
msgid "Firewall is ENABLED"
msgstr "Le pare-feu est activé"
msgid "Firewall is OFF"
msgstr "Le pare-feu est désactivé"
msgid "The default firewall will only allow outgoing and already established traffic."
msgstr "Le pare-feu par défaut n'autorisera que le trafic sortant et déjà établi."
msgid "No incoming UDP traffic is allowed."
msgstr "Aucun trafic UDP entrant n'est autorisé."
msgid "There are no restrictions for the access point <code>%s</code>."
msgstr "Il n'y a pas de restrictions pour le point d'accès <code>%s</code>."
msgid "Exception: Service"
msgstr "Exception : service"
msgid "allow SSH access on port 22"
msgstr "Autoriser l'accès SSH sur le port 22"
msgid "allow access to the RaspAP GUI on port 80 or 443"
msgstr "Autoriser l'accès à l'interface RaspAP sur le port 80 ou 443"
msgid "Allow incoming connections for some services from the internet side."
msgstr "Autoriser les connexions entrantes pour certains services Internet."
msgid "Exception: network device"
msgstr "Exception : périphérique réseau"
msgid "Exclude device(s)"
msgstr "Exclure le(s) appareil(s)"
msgid "Exclude the given network device(s) (separated by a blank or comma) from firewall rules."
msgstr "Exclure le(s) périphérique(s) réseau (séparés par un vide ou une virgule) des règles de pare-feu."
msgid "Current client devices: <code>%s</code>"
msgstr "Périphériques clients actuels : <code>%s</code>"
msgid "The access point <code>%s</code> is per default excluded."
msgstr "Le point d'accès <code>%s</code> est exclu par défaut."
msgid "Exception: IP-Address"
msgstr "Exception : adresse IP"
msgid "Allow incoming connections from"
msgstr "Autoriser les connexions entrantes depuis"
msgid "For the given IP-addresses (separated by a blank or comma) the incoming connection (via TCP and UDP) is accepted."
msgstr "Pour les adresses IP fournies (séparées par un vide ou une virgule) la connexion entrante (via TCP et UDP) est acceptée."
msgid "This is required for an OpenVPN via UDP or Wireguard connection."
msgstr "Ceci est requis pour une connexion OpenVPN via UDP ou Wireguard."
msgid "The list of configured VPN server IP addresses: <code><b>%s</b></code>"
msgstr "La liste des adresses IP du serveur VPN configurées : <code><b>%s</b></code>"
msgid "Disable Firewall"
msgstr "Désactiver le pare-feu"
msgid "Enable Firewall"
msgstr "Activer le pare-feu"
msgid "Apply changes"
msgstr "Appliquer les modifications"

BIN
locale/pt_BR/LC_MESSAGES/messages.mo

593
locale/pt_BR/LC_MESSAGES/messages.po

@ -1,22 +1,21 @@
# RaspAP Portable Object file
# Project home: https://github.com/billz/raspap-webgui
# Licensed under the GNU General Public License v3.0
# This file is distributed under the same license as the RaspAP package
# FIRST AUTHOR billzimmerman@gmail.com, 2017
#
msgid ""
msgstr ""
"Project-Id-Version: 1.2.1\n"
"Project-Id-Version: raspap\n"
"Report-Msgid-Bugs-To: Bill Zimmerman <billzimmerman@gmail.com>\n"
"POT-Creation-Date: 2017-10-19 08:56+0000\n"
"PO-Revision-Date: 2019-10-27 15:30-0300\n"
"Last-Translator: Matheus Dal Mago <matheusdalmago10@gmail.com>\n"
"Language-Team: \n"
"PO-Revision-Date: 2022-01-05 11:43\n"
"Last-Translator: Bill Zimmerman <billzimmerman@gmail.com>\n"
"Language-Team: Portuguese, Brazilian\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.2.4\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Crowdin-Project: raspap\n"
"X-Crowdin-Project-ID: 395801\n"
"X-Crowdin-Language: pt-BR\n"
"X-Crowdin-File: /master/locale/en_US/LC_MESSAGES/messages.po\n"
"X-Crowdin-File-ID: 10\n"
#: index.php
msgid "RaspAP Wifi Configuration Portal"
@ -37,8 +36,14 @@ msgstr "Cliente WiFi"
msgid "Hotspot"
msgstr "Ponto de acesso"
msgid "Memory Use"
msgstr "Uso da memória"
msgid "CPU Temp"
msgstr "Temperatura do CPU"
msgid "Networking"
msgstr "Networking"
msgstr "Rede"
msgid "DHCP Server"
msgstr "Servidor DHCP"
@ -141,9 +146,33 @@ msgstr "Esconder"
msgid "Not configured"
msgstr "Não configurado"
msgid "Connected"
msgstr ""
msgid "Known"
msgstr ""
msgid "Nearby"
msgstr ""
msgid "<strong>Note:</strong> WEP access points appear as 'Open'. RaspAP does not currently support connecting to WEP"
msgstr "<strong>Nota:</strong> pontos de acesso WEP aparecem como 'Open'. Atualmente, o RaspAP não suporta conexão com WEP"
msgid "No Wifi stations found"
msgstr ""
msgid "Reinitializing wpa_supplicant"
msgstr ""
msgid "Click 'Rescan' to search for nearby Wifi stations."
msgstr ""
msgid "Click 'Reinitialize' to force reinitialize <code>wpa_supplicant</code>."
msgstr ""
msgid "Reinitialize"
msgstr ""
#: includes/dashboard.php
msgid "Interface Information"
msgstr "Informação da Interface"
@ -178,8 +207,8 @@ msgstr "Pacotes Transferidos"
msgid "Transferred Bytes"
msgstr "Bytes Transferidos"
msgid "Wireless Information"
msgstr "Informação de Wireless"
msgid "Wireless Client"
msgstr "Cliente WiFi"
msgid "Connected To"
msgstr "Conectado em"
@ -238,6 +267,60 @@ msgstr "Parar wlan0"
msgid "Connected Devices"
msgstr "Dispositivos Conectados"
msgid "Client: Ethernet cable"
msgstr ""
msgid "Ethernet"
msgstr ""
msgid "Client: Smartphone (USB tethering)"
msgstr ""
msgid "Smartphone"
msgstr ""
msgid "WiFi"
msgstr ""
msgid "Mobile Data Client"
msgstr ""
msgid "Mobile Data"
msgstr ""
msgid "No information available"
msgstr ""
msgid "Interface name invalid"
msgstr ""
msgid "Required exec function is disabled. Check if exec is not added to php <code>disable_functions</code>."
msgstr ""
msgid "Waiting for the interface to start ..."
msgstr ""
msgid "Stop the Interface"
msgstr ""
msgid "Connection mode"
msgstr ""
msgid "Signal quality"
msgstr ""
msgid "WAN IP"
msgstr ""
msgid "Web-GUI"
msgstr ""
msgid "Signal strength"
msgstr ""
msgid "No Client device or not yet configured"
msgstr ""
#: includes/dhcp.php
msgid "DHCP server settings"
msgstr "Configurações do servidor DHCP"
@ -246,7 +329,16 @@ msgid "Client list"
msgstr "Lista de Clientes"
msgid "Interface"
msgstr "Interface"
msgstr "Inteface"
msgid "Enable DHCP for this interface"
msgstr ""
msgid "Enable this option if you want RaspAP to assign IP addresses on the selected interface."
msgstr ""
msgid "DNS Server"
msgstr "Servidor DNS"
msgid "Starting IP Address"
msgstr "Endereço IP Inicial"
@ -275,6 +367,9 @@ msgstr "Tempo para expirar"
msgid "MAC Address"
msgstr "Endereço MAC"
msgid "Optional comment"
msgstr ""
msgid "Host name"
msgstr "Nome de host"
@ -318,31 +413,55 @@ msgid "Dnsmasq is not running"
msgstr "Dnsmasq não executando"
msgid "Upstream DNS servers"
msgstr "Upstream DNS servers"
msgstr ""
msgid "Only ever query DNS servers configured below"
msgstr "Only ever query DNS servers configured below"
msgstr ""
msgid "Enable this option if you want RaspAP to <b>send DNS queries to the servers configured below exclusively</b>. By default RaspAP also uses its upstream DHCP server's name servers."
msgstr "Enable this option if you want RaspAP to <b>send DNS queries to the servers configured below exclusively</b>. By default RaspAP also uses its upstream DHCP server's name servers."
msgstr ""
msgid "This option adds <code>no-resolv</code> to the dnsmasq configuration."
msgstr "This option adds <code>no-resolv</code> to the dnsmasq configuration."
msgstr ""
msgid "Add upstream DNS server"
msgstr "Add upstream DNS server"
msgstr ""
msgid "Format"
msgstr "Format"
msgstr ""
msgid "Choose a hosted server"
msgstr "Choose a hosted server"
msgstr ""
msgid "Enable these options to log DHCP server activity."
msgstr ""
msgid "Log DHCP requests"
msgstr "Log DHCP requests"
msgstr ""
msgid "Log DNS queries"
msgstr "Log DNS queries"
msgstr ""
msgid "Restrict access"
msgstr ""
msgid "Limit network access to static clients"
msgstr ""
msgid "Enable this option if you want RaspAP to <b>ignore any clients</b> which are not specified in the static leases list."
msgstr ""
msgid "This option adds <code>dhcp-ignore</code> to the dnsmasq configuration."
msgstr ""
msgid "Clients with a particular hardware MAC address can always be allocated the same IP address."
msgstr ""
msgid "This option adds <code>dhcp-host</code> entries to the dnsmasq configuration."
msgstr ""
msgid "This toggles the <code>gateway</code>/<code>nogateway</code> option for this interface in the DHCPCD configuration."
msgstr ""
#: includes/hostapd.php
msgid "Basic"
@ -367,7 +486,7 @@ msgid "Encryption Type"
msgstr "Tipo de Criptografia"
msgid "PSK"
msgstr "PSK"
msgstr ""
msgid "Advanced settings"
msgstr "Configurações avançadas"
@ -426,28 +545,58 @@ msgstr "Arquivo de Log"
msgid "WiFi client AP mode"
msgstr "WiFi modo cliente AP"
msgid "Bridged AP mode"
msgstr ""
msgid "Hide SSID in broadcast"
msgstr "Esconder SSID em transmissão"
msgid "Maximum number of clients"
msgstr "Número máximo de clientes"
msgid "Configures the max_num_sta option of hostapd. The default and maximum is 2007. If empty or 0, the default applies."
msgstr "Configura a opção max_num_sta do hostapd. O valor padrão e máximo é 2007. Se deixado vazio ou 0, o valor padrão é aplicado."
msgid "Configures the <code>max_num_sta</code> option of hostapd. The default and maximum is 2007. If empty or 0, the default applies."
msgstr ""
msgid "Beacon interval"
msgstr ""
msgid "Disable <code>disassoc_low_ack</code>"
msgstr ""
msgid "Do not disassociate stations based on excessive transmission failures."
msgstr ""
msgid "Executing RaspAP service start"
msgstr ""
msgid "Close"
msgstr ""
msgid "Enable this option to log <code>hostapd</code> activity."
msgstr ""
msgid "Transmit power (dBm)"
msgstr ""
msgid "Sets the <code>txpower</code> option for the AP interface and the configured country."
msgstr ""
msgid "dBm is a unit of level used to indicate that a power ratio is expressed in decibels (dB) with reference to one milliwatt (mW). 30 dBm is equal to 1000 mW, while 0 dBm equals 1.25 mW."
msgstr ""
#: includes/networking.php
msgid "Summary"
msgstr "Sumário"
msgid "Internet connection"
msgstr ""
msgid "Current settings"
msgstr "Configurações atuais"
msgid "Default Gateway"
msgstr "Gateway Padrão"
msgid "DNS Server"
msgstr "Servidor DNS"
msgid "Alternate DNS Server"
msgstr "Servidor DNS Alternativo"
@ -469,12 +618,66 @@ msgstr "Desabilitado"
msgid "Static IP Options"
msgstr "Opções de IP Estático"
msgid "Metric"
msgstr ""
msgid "Apply settings"
msgstr "Aplicar Configurações"
msgid "Information provided by /sys/class/net"
msgstr "Informação Provida por /sys/class/net"
msgid "Network Devices"
msgstr ""
msgid "Mobile Data Settings"
msgstr ""
msgid "Properties of network devices"
msgstr ""
msgid "Device"
msgstr ""
msgid "MAC"
msgstr ""
msgid "USB vid/pid"
msgstr ""
msgid "Device type"
msgstr ""
msgid "Fixed name"
msgstr ""
msgid "Change"
msgstr ""
msgid "Settings for Mobile Data Devices"
msgstr ""
msgid "PIN of SIM card"
msgstr ""
msgid "APN Settings (Modem device ppp0)"
msgstr ""