Skip to content

v0.6.0

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Nov 04:26
· 49 commits to main since this release
0a820d5

Netrex v0.6.0.

Install on the gateway laptop:

sudo apt install ./netrex_0.6.0_all.deb

Or, with the apt repository configured (see README):

sudo apt-get update && sudo apt-get install netrex

Other distros:

# Fedora / RHEL family
sudo dnf install ./netrex-0.6.0-1.noarch.rpm

# Arch / Manjaro
sudo pacman -U netrex-0.6.0-1-any.pkg.tar.zst

# Any other systemd distro
tar xzf netrex-0.6.0.tar.gz && cd netrex-0.6.0 && sudo ./install.sh

The package configures the network stack, installs the Python
dependencies into /opt/quota-manager/.venv, wires the
quota-gateway systemd service and starts it. See the README for
the post-install router steps (disable DHCP, disable IPv6/RA).


Added:

  • Internet schedule (new page). Turn the internet off at set times of the week for chosen people (all their devices) or single devices: bedtime on school nights, study time, meal times. One click starts from a ready plan ("School nights", "Every night", "Study time", "Meal times"); a schedule can have several times, a time can run past midnight, and dates can be marked as days off (holidays, Eid). Bonus time gives a few extra minutes without changing the schedule. Always allowed sites (a school platform, a study site) keep working during every schedule. While a schedule is on, the device's card shows when the internet comes back, the home network (printer, shared drives, the dashboard) keeps working, and the cut is done by the gateway itself, so it works on any phone, tablet, TV or console with no app. Each device gets its end time in the system kernel, so it comes back online on time even if the gateway service restarts or stops. Sites on the "always allowed" list only open on devices that look names up through the gateway; a phone with Private DNS (or a browser with secure DNS) turned on keeps them blocked during a schedule. Contributed by @amr-elgharip2006. Closes #32.

  • UPnP and NAT-PMP (Security → UPnP, off by default). Games, consoles, torrent clients and cameras can open the ports they need by themselves instead of you writing port-forwards by hand. Each device can only open ports for itself, a port range and your own blocked-ports list limit what can be opened, and the dashboard and remote-admin ports can never be opened. The page shows every open port with the device that asked for it, and you can remove one or clear them all. On the direct (PPPoE) connection it works by itself. Behind your provider's router the gateway also asks the router to open the same port (the router needs UPnP turned on and a public IP, not a shared CGNAT address); the page says clearly when something is missing. One click installs the service on Debian, Ubuntu and Kali. IPv4 only.

Changed:

  • The gateway service can now also be reached as netrex: sudo systemctl status netrex, sudo journalctl -u netrex. The old name quota-gateway keeps working too, so nothing you already use changes. The link is added the next time the gateway updates.
  • The packages are now named Netrex. The files are netrex_<version>_all.deb, netrex-<version>-1.noarch.rpm, netrex-<version>-1-any.pkg.tar.zst and netrex-<version>.tar.gz, and the apt command is sudo apt-get install netrex. If you installed it as quota-manager, the dashboard updater, apt-get install netrex and dnf install move you over by themselves: the old package is replaced, and your settings, data and users stay where they were. Nothing else was renamed (service, folders and database are unchanged).
  • A new version is now published only after all the tests and the install checks on Debian, Ubuntu, Fedora and Arch pass on exactly that version. Contributed by @compnew2006.

Fixed:

  • Country blocking and the dashboard port in the firewall rules. Blocking countries had no effect even when switched on, and when the dashboard was opened on the internet (WAN mode) the firewall rule always used port 8080 instead of the port you set. Both now follow your settings.
  • A short hiccup while the gateway updated its list of cut-off devices could switch off counting and blocking for everyone until a restart, or let a cut-off device through for a moment. The list is now changed in one step: if that step fails, the old list stays in force and the gateway simply tries again 15 seconds later. Contributed by @compnew2006.
  • If saving usage failed for a moment (for example the database was busy), those 15 seconds of usage were lost and the check that cuts off people over their limit was skipped for that round. The usage is now kept and saved on the next round, and the check always runs. Reported by @compnew2006 in #52.
  • A guest who typed a valid code could get an error even though the code was accepted, and then be told the code was already used. The approval now always comes back, and a guest who retries gets the same approval again. Contributed by @compnew2006.
  • The security filter on the dashboard (for access from outside the home) now checks a request's size as it arrives and keeps its memory bounded, so a flood of large or never-ending requests can no longer slow the gateway down. Access from inside the home is unchanged. Contributed by @compnew2006.
  • README: a one-line, safe way to back up the gateway's data while it runs, plus a restore guide. Contributed by @compnew2006.
  • Share (files sent between devices at home) can no longer fill the gateway's disk: one file can be up to 4 GB, all shared files together up to 16 GB, and the gateway always keeps 1 GB free for itself. A file that does not fit is refused with a clear message instead of being half-saved. Contributed by @compnew2006.
  • The guest waiting page: entering a guest code now also works when the same browser is logged in to the dashboard, the "start browsing" button gets the focus after approval, hidden parts stay hidden, and the pulsing animation stops for people who turned off motion on their device. Contributed by @compnew2006.
  • Website block/allow rules were rebuilt every time the gateway started, so their numbers changed on each restart. They are now kept as they are. If an older version was interrupted in the middle of that rebuild (for example by a power cut), the rules it left behind are put back on the next start instead of being lost. Reported by @rmustafar3-gif in #71. Contributed by @compnew2006.