nexryai / lance-light

Yet another human-friendly firewall
https://lance.sda1.net/
MIT License
13 stars 0 forks source link

Ubuntu24.04で Error: Chain of type "nat" is not supported, perhaps kernel support is missing? になってNATが設定できない #25

Open nexryai opened 1 month ago

nexryai commented 1 month ago
nexryai@raiden:~$ sudo llfctl offline
✘ ERROR: Fatal error: exit status 1
  ↳ Failed to exec. | "nft -f /etc/nftables.lance.conf" >>> /etc/nftables.lance.conf:30:3-39: Error: Chain of type "nat" is not supported, perhaps kernel support is missing?
                type nat hook prerouting priority 100; policy accept;
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
nexryai commented 1 month ago

Ubuntu22.04とDebianでは普通に設定できる

nexryai commented 1 month ago

そもそもpreroutingに設定されてるtype自体がおかしい気がするけど逆に何で今まで動いてたのか謎
正しい書き方でした

nexryai commented 1 month ago
nexryai commented 1 month ago

filterにしてもError: Chain of type "filter" is not supportedでコケる

nexryai commented 1 month ago

これ、最悪のパターンは既存の22.04の環境をアップデートしたら知らないうちにルールが適用できなくなってて起動時に有効化するコマンドが効かなくなって無防備な状態で放置されるってパターンなので割と緊急かもしれない