[RPi5] Wi-Fi Access Point / ConnMan tethering fails – NAT initialization error

  • System information

    • Device: Raspberry Pi 5
    • Operating system: LibreELEC (community build)
    • LibreELEC version: 13.0 (Piers), nightly build nightly-20261105-8fcc76f
    • Architecture: RPi5.aarch64
    • Kernel: Linux 6.18.60
    • ConnMan version: 2.0
    • Wi-Fi driver: brcmfmac
    • Wi-Fi firmware/driver version: 7.45.16.144
    • Network connection: Ethernet connected to a FRITZ!Box router
    • Wi-Fi interface: wlan0
    • Access point frequency: 2437 MHz (channel 6)

    Problem description

    I am trying to use the Raspberry Pi 5 as a Wi-Fi access point, with internet access provided through its Ethernet connection.

    The access point is initially enabled, but ConnMan fails to complete the tethering setup. The access point is subsequently disabled again.

    The same problem occurs when enabling the Wi-Fi access point through the LibreELEC/Kodi settings: the switch turns on, but after approximately five seconds it automatically switches back off.

    Steps to reproduce

    1. Connect the Raspberry Pi 5 to the network via Ethernet.
    2. Open LibreELEC/Kodi network settings.
    3. Enable the Wi-Fi access point (tethering).
    4. Wait approximately five seconds.

    Actual result: The access point is disabled again automatically.

    The same behavior can be reproduced using connmanctl:

    Code
    connmanctl tether wifi on TheKingPI5 "********" 2437

    ConnMan initially reports:

    Code
    Wifi SSID set
    Wifi passphrase set
    Wifi access point frequency set
    Enabled tethering for wifi

    However, connmanctl technologies subsequently reports:

    Code
    WiFi
      Powered = True
      Connected = False
      Tethering = False
      TetheringIdentifier = TheKingPI5
      TetheringFreq = 2437

    Important observations

    1. Wi-Fi access point itself appears to work

    The Wi-Fi interface supports AP mode.

    When a smartphone connects to the access point, the connection is established at the Wi-Fi level.

    Output of:

    Code
    iw dev wlan0 station dump

    shows the connected smartphone as:

    Code
    Station d8:e3:74:6a:ae:6f (on wlan0)
        authorized: yes
        authenticated: yes
        associated: yes

    RX and TX packet counters increase while the smartphone is connected.

    This indicates that Wi-Fi beaconing, authentication and association are working.

    2. ConnMan fails during NAT initialization

    The following messages appear in the system log when tethering is enabled:

    Code
    connmand: Can't add listener tether to DNS proxy
    connmand: DHCP server: option_code 1 option_value 255.255.255.0
    connmand: DHCP server: option_code 3 option_value 192.168.0.1
    connmand: DHCP server: option_code 6 option_value 8.8.8.8
    connmand: iptables support missing error 92 (Protocol not available)
    connmand: Cannot enable NAT -22/Invalid argument

    Afterwards, ConnMan removes the tether interface:

    Code
    address 192.168.0.1/24 label tether
    ...
    tether {dellink}
    ...
    tether {remove}

    The DHCP configuration appears to be prepared, but the tethering setup is aborted when NAT initialization fails.

    3. Firewall / iptables information

    The installed iptables version is:

    Code
    iptables v1.8.13 (nf_tables)

    The iptables command itself works. For example, manually adding a NAT rule succeeds:

    Code
    iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

    The rule is visible afterwards and can be removed again.

    However, the traditional iptables kernel interface appears to be missing:

    Code
    cat /proc/net/ip_tables_names

    returns:

    Code
    No such file or directory

    Also:

    Code
    modprobe -n ip_tables
    modprobe -n iptable_nat

    returns:

    Code
    Module ip_tables not found
    Module iptable_nat not found

    The system does have nftables-related components and libraries installed, including:

    • libnftables
    • libnftnl
    • libmnl
    • nf_tables
    • nft_chain_nat
    • xt_MASQUERADE

    The nftables ruleset currently contains an empty NAT POSTROUTING chain:

    Code
    table ip nat {
        chain POSTROUTING {
            type nat hook postrouting priority srcnat; policy accept;
        }
    }

    4. ConnMan configuration

    The relevant settings in /etc/connman/main.conf are:

    Code
    TetheringTechnologies = ethernet,wifi
    PersistentTetheringMode = true
    PreferredTechnologies = ethernet,wifi,cellular

    No custom firewall rules or other network modifications have been made.

    5. Network configuration

    Ethernet is working correctly:

    Code
    eth0: 192.168.178.59/24
    Gateway: 192.168.178.1

    The default route is:

    Code
    default via 192.168.178.1 dev eth0

    The Wi-Fi interface is wlan0, using the brcmfmac driver.

    Expected behavior

    The Raspberry Pi should provide a working Wi-Fi access point.

    A smartphone should be able to:

    1. Connect to the access point.
    2. Receive an IPv4 address via DHCP.
    3. Use the Raspberry Pi's Ethernet connection to access the internet.

    The access point should remain enabled.

    Question for the LibreELEC developers

    Could this be a ConnMan 2.0 firewall backend / kernel compatibility issue in the current LibreELEC 13 nightly build?

    The log message:

    Code
    iptables support missing error 92 (Protocol not available)
    Cannot enable NAT -22/Invalid argument

    suggests that ConnMan cannot initialize its NAT functionality.

    The installed iptables command uses the nftables compatibility backend, while the traditional iptables kernel modules (ip_tables / iptable_nat) are not present.

    Is ConnMan in this LibreELEC build compiled with the legacy iptables firewall backend instead of the nftables backend?

    Is there a known fix, configuration change, or test build available for the Raspberry Pi 5?

    I have not modified the LibreELEC installation or replaced any system binaries. All tests were performed using SSH and the standard LibreELEC tools.

    Thanks for your help.