Fixed firewall rules restoring on system reboot

devel
Alexey Berezhok 8 months ago
parent be4171edb0
commit ef861e9c28

@ -185,7 +185,7 @@ if [ -n "$FIREWALL_EXTENSION" ]; then
fi fi
# Clean up and saving rules to the master iptables file # Clean up and saving rules to the master iptables file
if [ -d "/etc/sysconfig" ]; then if [ -d "/etc/sysconfig" ] && [ ! -e /etc/redhat-release ]; then
/sbin/iptables-save | sed -e 's/[[0-9]\+:[0-9]\+]/[0:0]/g' -e '/^-A fail2ban-[A-Z]\+ -s .\+$/d' > /etc/sysconfig/iptables /sbin/iptables-save | sed -e 's/[[0-9]\+:[0-9]\+]/[0:0]/g' -e '/^-A fail2ban-[A-Z]\+ -s .\+$/d' > /etc/sysconfig/iptables
else else
/sbin/iptables-save | sed -e 's/[[0-9]\+:[0-9]\+]/[0:0]/g' -e '/^-A fail2ban-[A-Z]\+ -s .\+$/d' > /etc/iptables.rules /sbin/iptables-save | sed -e 's/[[0-9]\+:[0-9]\+]/[0:0]/g' -e '/^-A fail2ban-[A-Z]\+ -s .\+$/d' > /etc/iptables.rules

@ -2,8 +2,8 @@
%global _hardened_build 1 %global _hardened_build 1
Name: hestia Name: hestia
Version: 1.8.5 Version: 1.8.6
Release: 1%{dist}.bayrepo.1 Release: 1%{dist}
Summary: Hestia Control Panel Summary: Hestia Control Panel
Group: System Environment/Base Group: System Environment/Base
License: GPLv3 License: GPLv3
@ -179,6 +179,9 @@ fi
%{_tmpfilesdir}/%{name}.conf %{_tmpfilesdir}/%{name}.conf
%changelog %changelog
* Thu Sep 05 2024 Alexey Berezhok <a@bayrepo.ru> - 1.8.6-1
- Fixed firewall rules restoring on system reboot
* Fri Aug 30 2024 Alexey Berezhok <a@bayrepo.ru> - 1.8.5-1.bayrepo.1 * Fri Aug 30 2024 Alexey Berezhok <a@bayrepo.ru> - 1.8.5-1.bayrepo.1
- Added php cli selector support - Added php cli selector support
- Move mo/po files local - Move mo/po files local

Loading…
Cancel
Save