⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

veridian_kernel/net/firewall/
mod.rs

1//! Netfilter-style firewall for VeridianOS
2//!
3//! Provides packet filtering, connection tracking, and NAT capabilities
4//! modeled on the Linux netfilter/iptables architecture with five hook
5//! points (PreRouting, Input, Forward, Output, PostRouting).
6
7#![allow(dead_code)]
8
9pub mod chain;
10pub mod conntrack;
11pub mod nat;
12pub mod rules;
13
14use crate::error::KernelError;
15
16/// Initialize the firewall subsystem
17pub fn init() -> Result<(), KernelError> {
18    chain::init()?;
19    conntrack::init()?;
20    nat::init()?;
21    Ok(())
22}