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

Alexandre Aubin 86010db20c Add check_process 5 years ago
conf 1dc83bcce6 Add proxy_max_temp_file_size 7 years ago
scripts 19029e9954 Use systemctl helper to avoid deadlocks with ynh 2.7 and check path avaibility with no deprecated method 6 years ago
sources 4d8cb8aa1f Add max_space option slider 8 years ago
LICENSE 8896e7ff21 init 9 years ago
README.md 727bc55c23 point to dev.yunohost.org in README 8 years ago
check_process 86010db20c Add check_process 5 years ago
manifest.json 13297a80e9 Fix i18n FR and add some sudo to restore script 8 years ago
screenshot_admin.png 1dbc706ded Update admin screenshot 8 years ago
screenshot_app.png 0f52b249f4 Add screenshot for the admin 9 years ago

README.md

PirateBox

Overview

PirateBox app for YunoHost.

Based on php-piratebox.

Features

The YunoHost administration is only available through the wired connection.

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.

Prerequisites

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)

BUG REPORTS SHOULD BE OPEN HERE