新手 iptable 問題

本帖最後由 milanolarry 於 2025-8-22 22:32 編輯

從前防火牆是在 /etc/rc.local  打一些 iptables command,在新的版本 iptables 沒有了, /etc/rc.local 也消失了。因為只需要打數行 command ,所以不想花時間學 UFW。試過裝 iptables,這個沒問題,但裝後 /etc/rc.local 仍是不見,不知 command 可打在哪裡?謝謝。

從前防火牆是在 /etc/rc.local  打一些 iptables command,在新的版本 iptables 沒有了, /etc/rc.local 也 ...
milanolarry 發表於 2025-8-22 22:30



    nftables

TOP

用 systemd 服務替代 /etc/rc.local

TOP

你用緊嘅Linux Distro,應該已經用nftables代替iptables了 (或者用iptables-nft)

如果用RedHat系,應該要裝FirewallD
如果用Ubuntu系,都係UFW啦

TOP

吾該

TOP