在/etc/nftables.conf
,我有define ntp_server={ 0.pool.ntp.org, 1.pool.ntp.org, 2.pool.ntp.org, 3.pool.ntp.org }
,
0.pool.ntp.org
从数字开始,然后我遇到错误nft -f
。
$ sudo nft -v
$ nftables v0.9.0 (Fearless Fosdick)
$ sudo nft -f /etc/nftables.conf
/etc/nftables.conf:8:7-19: Error: syntax error, unexpected string, expecting comma or '}'
0.pool.ntp.org,
^^^^^^^^^^^^^
/etc/nftables.conf:9:6-6: Error: syntax error, unexpected number
1.pool.ntp.org,
^
/etc/nftables.conf:10:6-6: Error: syntax error, unexpected number
2.pool.ntp.org,
^
/etc/nftables.conf:11:6-6: Error: syntax error, unexpected number
3.pool.ntp.org
^
/etc/nftables.conf:12:1-1: Error: syntax error, unexpected '}'
}
如何解决这个问题呢?