Исправлены runtime-баги firewall policy и парсера swapon для Debian 13

This commit is contained in:
2026-05-12 13:15:14 +05:00
parent bbefd299fd
commit c463e64205
2 changed files with 28 additions and 7 deletions
+1 -4
View File
@@ -153,7 +153,7 @@ fn build_host_firewall_batch_script(cfg: &Config, policy: &str) -> String {
let mut batch = String::new();
batch.push_str(&format!("add table inet {HOST_FW_TABLE}\n"));
batch.push_str(&format!(
"add chain inet {HOST_FW_TABLE} input {{ type filter hook input priority filter; policy accept; }}\n"
"add chain inet {HOST_FW_TABLE} input {{ type filter hook input priority filter; policy {policy}; }}\n"
));
batch.push_str(&format!(
"add rule inet {HOST_FW_TABLE} input iif \"lo\" accept\n"
@@ -180,9 +180,6 @@ fn build_host_firewall_batch_script(cfg: &Config, policy: &str) -> String {
"add rule inet {HOST_FW_TABLE} input ip6 nexthdr icmpv6 accept\n"
));
}
batch.push_str(&format!(
"set chain inet {HOST_FW_TABLE} input {{ policy {policy}; }}\n"
));
batch
}