我想从 切换到isc-dhcp-server
,systemd.networkd
但在systemd.networkd
. 是否可以配置systemd.networkd
DHCP 服务器为 DHCP 客户端分配静态地址?
主页
/
user-237921
Sergey's questions
Sergey
Asked:
2020-01-20 01:28:16 +0800 CST
mytable
我在表链中有许多规则mychain
:
> sudo nft -a list table mytable
table ip mytable { # handle 8
chain mychain { # handle 1
type filter hook input priority filter; policy accept;
tcp dport 5550 accept # handle 18
tcp dport 5551 accept # handle 19
tcp dport 5552 accept # handle 20
tcp dport 5553 accept # handle 21
tcp dport 5554 accept # handle 22
}
}
根据nftables wiki,应该可以从指定的链中删除所有规则。但是以下命令返回错误:
> sudo nft delete rule mytable mychain
Error: syntax error, unexpected newline, expecting handle
delete rule mytable mychain
^
mychain
在不迭代规则句柄的情况下删除所有规则的正确命令是什么?
Sergey
Asked:
2018-12-27 04:38:33 +0800 CST