RaspAP / raspap-webgui

Simple wireless AP setup & management for Debian-based devices
https://raspap.com/
GNU General Public License v3.0
4.47k stars 792 forks source link

[Bug]: iptables: Failed to initialize nft: Protocol not supported #1582

Closed arky closed 6 months ago

arky commented 6 months ago

Code of Conduct

Issue reporting checklist

Operating System

Raspberry Pi OS (64-bit) Lite Bookworm

Quick install or Manual setup?

Quick install

Onboard wireless chipset or external adapter?

Onboard wireless chipset

Hardware

Raspberry Pi 3 Model B+

RaspAP version

3.1.3 (Latest)

Other software or services running with RaspAP?

Yes (specify below)

Contact details (optional)

No response

Bug description

Debian has moved to used NFtables. During installation you'll get following errors related to iptables.

Unable to execute iptables 
    /usr/bin/grep: /etc/iptables/rules.v4: No such file or directory
    Adding rule: -t nat -A POSTROUTING -s 192.168.50.0/24 ! -d 192.168.50.0/24 -j MASQUERADE

 Unable to execute iptables 
Persisting IP tables rules
 sudo: unable to resolve host arky-thinkpad: Name or service not known
 sudo: unable to resolve host arky-thinkpad: Name or service not known
 iptables-save/1.8.9 (nf_tables) Failed to initialize nft: Protocol not supported
 Unable to execute iptables-save 

Steps to reproduce

Run the install on latest Raspberry Pi OS image curl -sL https://install.raspap.com | sudo bash -s -- --yes --openvpn 0 --adblock 0 --branch 2.9.8

Screenshots

-

Additional context

https://gitlab.com/likebutter/butterbox-rpi/-/issues/73

Relevant log output

Unable to execute iptables 
    /usr/bin/grep: /etc/iptables/rules.v4: No such file or directory
    Adding rule: -t nat -A POSTROUTING -s 192.168.50.0/24 ! -d 192.168.50.0/24 -j MASQUERADE

 Unable to execute iptables 
Persisting IP tables rules
 sudo: unable to resolve host arky-thinkpad: Name or service not known
 sudo: unable to resolve host arky-thinkpad: Name or service not known
 iptables-save/1.8.9 (nf_tables) Failed to initialize nft: Protocol not supported
 Unable to execute iptables-save 
billz commented 6 months ago

Duplicate of #1513 See also https://github.com/RaspAP/raspap-webgui/issues/1512#issuecomment-1925919260