在Ubuntu下,可以使用nft命令行工具来管理nftables规则集。以下是一些常用的nftables规则集管理方法:
sudo nft add table ip filter
sudo nft add rule ip filter input tcp dport 22 accept
sudo nft list table filter
sudo nft delete rule ip filter input tcp dport 22 accept
sudo nft flush table filter
sudo nft list table filter > /etc/nftables.conf
sudo nft -f /etc/nftables.conf
通过上述方法,可以方便地管理nftables规则集在Ubuntu系统上。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
相关推荐:Ubuntu下SQL Server的日志管理方法有哪些