Исправлены runtime-баги firewall policy и парсера swapon для Debian 13
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user