[英]Windows Snort Error--ERROR: C:\Snort\etc\snort.conf(0) Failed to parse the IP address: 32.0.0.0/35.0.0.0
[英]How to put `0.pool.ntp.org` in `/etc/nftables.conf` without any error?
在/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 '}'
}
如何解決這個問題呢?
ntp.org 池包含許多主機,因此0.pool.ntp.org, 1.pool.ntp.org, 2.pool.ntp.org, 3.pool.ntp.org
將在您查詢時解析為不同的 IP 地址他們隨着時間的推移。
我建議使用命名集並定期用腳本更新它。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.