Files
NetAlertX/front/plugins/freebox
Matthieu Houdebine ded15aa628 Update freebox.py: do not fail if unknown device type
If a new device type has not been mapped yet, do not fail the scan but return "Unknown" instead
2025-06-11 22:56:04 +02:00
..
2025-02-08 10:53:43 +11:00
2025-01-19 23:19:26 +11:00

Overview

Plugin to pull devices, IPs, and their names from a Freebox or Iliadbox gateway.

Pairing

Requirements:

  • Physical access to the Freebox
  • Network access to the same lan as the Freebox

Regardless of which setup you will choose, you will first need to pair NetAlertX to your Freebox. To pair, the device running NetAlertX must be connected on the same lan as the Freebox. After pairing, the device can access your Freebox even from the Internet (se remote setup).

To pair, you can leave the settings to their default values (same as quick setup), though other configurations will work as well if you can't use the default one.

When you run the plugin the first time, it will send a pairing request to the Freebox, if you look at the logs you will see a message saying to "Continue the pairing on your Freebox". At this point, on the front panel of the Freebox you will see an authorization request, confirm it using the buttons on the front panel to complete the pairing. If you don't see the message on the logs, something is preventing the plugin from running.

Note: You can screen and revoke any previous authorization (completed or attempted) from the web interface of your Freebox.

Quick setup

Note: read pairing first.

By default the plugin will connect to the address mafreebox.freebox.fr on the HTTPS port 443, if you have an Iliadbox, replace the address with myiliadbox.iliad.it. This will work in most cases, but has some limitations.

Limitations:

  • It requires internet access
  • The Freebox must be your gateway
  • The device must be in the same lan as the Freebox

Use this configuration if you wish to connect to your Freebox even when you are offline, or the Freebox is not your gateway.

Find the local IP address of your Freebox, if it is your gateway, you can find the address on your computer/smartphone network configuration (usually it's 192.168.1.1). Go in the plugin settings and set the IP as address and 80 as the port (do not use 443 as the port). This configuration works regardless of your internet connection and poses little limitations.

Limitations:

  • If there is no internet connection, the plugin will fallback to HTTP (not HTTPS)

For more detail: the plugin will connect to the specified address and port to fetch information about the Freebox, then it will either connect in HTTPS through the Freebox's unique domain name, or connect over HTTP if there is no internet connection. The freebox does offer an HTTPS port on the local network, but the certificate will be invalid for the local IP, and the connection will be aborted.

Remote setup

Use this configuration if you wish to connect to your Freebox through the internet. You still need to pair from the local network.

If the Freebox is not your gateway, configure a NAT and follow the offline setup.

If the Freebox is your gateway you need to find its HTTPS (or HTTP if you prefer) public port. This can be found either in the Freeboxe's web interface and by navigating to settings>access management, or (just for the HTTPS port) by visiting http://mafreebox.freebox.fr:80/api_version from the local network (you can use the local ip as well). This is the port you need to access your Freebox through the internet

As address, you can either use the public IP of the Freebox, or the unique domain name you found on http://mafreebox.freebox.fr:80/api_version listed as api_domain.

Other info