Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] The ufw firewall of the debain12 system disables ping, and will become pingable after restarting the ufw service or restarting the server. #7454

Open
mjsoftking opened this issue Dec 20, 2024 · 11 comments
Assignees

Comments

@mjsoftking
Copy link

Contact Information

No response

1Panel Version

1.10.22

Problem Description

image
debain12系统的ufw防火墙禁ping,会在重启ufw服务或重启服务器后变为可ping的状态

Steps to Reproduce

  • 启用禁ping,测试无法ping通服务器,正常;
  • 重启ufw服务,禁ping状态一直保持开启,测试可以ping通服务器,异常;
  • 重启服务器,禁ping状态一直保持开启,测试可以ping通服务器,异常;

The expected correct result

No response

Related log output

No response

Additional Information

No response

@wanghe-fit2cloud wanghe-fit2cloud changed the title [Bug] debain12系统的ufw防火墙禁ping,会在重启ufw服务或重启服务器后变为可ping的状态 [Bug] The ufw firewall of the debain12 system disables ping, and will become pingable after restarting the ufw service or restarting the server. Dec 20, 2024
@wanghe-fit2cloud
Copy link
Member

感谢反馈,我们先在 Debian 12 服务器中验证一下上述问题,并测试一下兼容性。

@mjsoftking
Copy link
Author

感谢反馈,我们先在 Debian 12 服务器中验证一下上述问题,并测试一下兼容性。

可以复现吗,我试用了其他的服务器,安装Debian 12,测试是一样的结果

@wanghe-fit2cloud
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Thanks for the feedback, we will first verify the above problem in the Debian 12 server and test the compatibility.

Can it be reproduced? I tried other servers and installed Debian 12. The test results are the same.

@ssongliu
Copy link
Member

开发环境已经复现该问题,看起来是防火墙重启后,sysctl.conf 没有正常生效,手动执行 sysctl -p 就好使了。

@wanghe-fit2cloud
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


The problem has been reproduced in the development environment. It seems that after the firewall is restarted, sysctl.conf does not take effect normally. Manually executing sysctl -p will solve the problem.

@mjsoftking
Copy link
Author

开发环境已经复现该问题,看起来是防火墙重启后,sysctl.conf 没有正常生效,手动执行 sysctl -p 就好使了。

好的,确定问题就好,目前重新开关一下禁ping选项也是可以的

@wanghe-fit2cloud
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


This problem has been reproduced in the development environment. It seems that after the firewall is restarted, sysctl.conf does not take effect normally. Manually executing sysctl -p will work.

Okay, just confirm the problem. Now you can turn on and off the ping ban option again.

@ssongliu
Copy link
Member

开发环境已经复现该问题,看起来是防火墙重启后,sysctl.conf 没有正常生效,手动执行 sysctl -p 就好使了。

好的,确定问题就好,目前重新开关一下禁ping选项也是可以的

image

@wanghe-fit2cloud
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


This problem has been reproduced in the development environment. It seems that after the firewall is restarted, sysctl.conf does not take effect normally. Manually executing sysctl -p will work.

Okay, just confirm the problem. It is also possible to turn the ping ban option on again.

image

@mjsoftking
Copy link
Author

是说重启ufw后自动被改成0了吗,
重启后
image
这个开关检测到的还是开启的

@wanghe-fit2cloud
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Does it mean that it will be automatically changed to 0 after restarting ufw?
After restart
image
The switch detected is still on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants