宝塔面板屏蔽IP,提示面板运行时发生错误提示:FileNotFoundError: [Errno 2] No such file or directory: ‘/etc/firewalld/ipsets/47.110.180.32-47.110.180.63.xml’

2023-02-10 0 815

宝塔面板屏蔽IP,提示面板运行时发生错误提示:FileNotFoundError: [Errno 2] No such file or directory: '/etc/firewalld/ipsets/47.110.180.32-47.110.180.63.xml'

REQUEST_DATE: 2023-02-10 11:09:31
 PAN_VERSION: 7.9.7
  OS_VERSION: CentOS  7.4.1708 x86_64(Py3.7.9)
 REMOTE_ADDR: 113.77.147.245
 REQUEST_URI: POST /safe/firewall/create_ip_rules?
REQUEST_FORM: {'data': '{"address":"47.110.180.32-47.110.180.63","types":"drop","brief":""}'}
  USER_AGENT: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36
Traceback (most recent call last):
  File "/www/server/panel/BTPanel/__init__.py", line 1845, in publicObject
    return run_exec().run(toObject, defs, get)
  File "/www/server/panel/BTPanel/__init__.py", line 1797, in run
    result = getattr(toObject,get.action)(get)
  File "class/panelSafeController.py", line 75, in model
    result = PluginLoader.module_run(module_name,def_name,pdata)
  File "/www/server/panel/class/safeModel/firewallModel.py", line 1073, in create_ip_rules
    self.handle_firewall_ip(address, types)
  File "/www/server/panel/class/safeModel/firewallModel.py", line 1011, in handle_firewall_ip
    tree.parse(xml_path)
  File "/www/server/panel/pyenv/lib/python3.7/xml/etree/ElementTree.py", line 587, in parse
    source = open(source, "rb")
FileNotFoundError: [Errno 2] No such file or directory: '/etc/firewalld/ipsets/47.110.180.32-47.110.180.63.xml'

 

解答:

登陆ssh,bt 16执行试试

回复:

已经解决,我小白一个什么不懂,谢谢你的帮助

1. 本站所有资源来源于用户上传和网络,因此不包含技术服务请大家谅解!如有侵权请邮件联系客服!cheeksyu@vip.qq.com
2. 本站不保证所提供下载的资源的准确性、安全性和完整性,资源仅供下载学习之用!如有链接无法下载、失效或广告,请联系客服处理!
3. 您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容资源!如用于商业或者非法用途,与本站无关,一切后果请用户自负!
4. 如果您也有好的资源或教程,您可以投稿发布,成功分享后有积分奖励和额外收入!
5.严禁将资源用于任何违法犯罪行为,不得违反国家法律,否则责任自负,一切法律责任与本站无关

源码下载

发表评论
暂无评论