
我需要翻譯這些規則:
iptables -A firewall -p udp –dest 239.250.0.0/16 -j ACCEPT
iptables -A firewall -p igmp –dest 239.250.0.0/16 -j ACCEPT
遵守 UFW 規則。不知道如何設定-A -dest -j。我已經嘗試過這個規則但不起作用。
sudo ufw allow proto udp to 239.250.0.0/16
UFW 的命令應該如何?
答案1
經過大量搜索和詢問後,我被建議從 UFW 切換到 nftables。然後我使用iptables-translate
命令創建我需要的規則,所以它是這樣的:
iptables-translate -A firewall -p igmp --destination 239.250.0.0/16 -j ACCEPT
我能夠像這樣解決這個問題...