Yunohost piratebox/partagebox app https://github.com/labriqueinternet/piratebox_ynh

Julien VAUBOURG a3195e0503 Add web admin il y a 10 ans
conf a3195e0503 Add web admin il y a 10 ans
scripts a3195e0503 Add web admin il y a 10 ans
sources a3195e0503 Add web admin il y a 10 ans
LICENSE 8896e7ff21 init il y a 10 ans
README.md 15a686e5b9 README - rename repo il y a 10 ans
manifest.json a3195e0503 Add web admin il y a 10 ans
screenshot.png c23c811366 New version with php-piratebox insteaf of DropCenter il y a 10 ans

README.md

PirateBox

Overview

PirateBox app for YunoHost.

Based on php-piratebox.

Features

The YunoHost administration is only available through the wired connection.

Requirements

You have to install the Wifi Hotspot app for YunoHost before and disable the wifi secure access mode thanks to the friendly web interface.

How It Works

Explanations:

  1. all packets to port 53 are redirected to the port 4253,
  2. a fake DNS resolver listens on the port 4253, and systematically responds the IPv4 address of the server (a fake DNS resolver is mandatory for responding to any requests, without internet connection),
  3. a MASQUERADE rule allows the fake DNS to respond in place of the initially requested resolver,
  4. all packets to port 80 are redirected to the port 4280,
  5. a Nginx vhost listens on the port 4280, and redirects to the PirateBox web page.

Limitations

  • IPv4-only because the NAT table is not available for IPv6 before the kernel 3.9.0 and iptables 1.4.18 (not in Debian stable for now)
  • Don't redirect to the PirateBox web page with explicit HTTPS requests (in order to avoid offering self-signed certificates on well-known domains)