nftables 1nft1321-25 Error syntax error unexpected dport expecting newline or semicolon
This error is indicating that there is a syntax error in the nftables configuration file at line 13, columns 21-25. The error is caused by an unexpected "dport" keyword, which indicates a destination port filter, where the parser was expecting a newline or semicolon.
To fix this error, you need to review the nftables configuration file and make sure that the syntax for the destination port filter is correct. Check that the "dport" keyword is used in the correct context and that all the necessary parameters are included. Also, ensure that there are no missing semicolons or other syntax errors in the file.
Once you have corrected the syntax error, save the configuration file and reload the nftables service to apply the changes. You can use the following commands to reload the nftables service:
sudo systemctl reload nftables
or
sudo service nftables reload
If the error persists, you may need to consult the nftables documentation or seek assistance from a qualified expert
原文地址: https://www.cveoy.top/t/topic/eC43 著作权归作者所有。请勿转载和采集!